mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-04-19 21:16:30 +02:00
Change text
This commit is contained in:
parent
ecbf0b9eba
commit
afd8e85754
@ -33,6 +33,7 @@ public class InstallWindow implements IUserInterface {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize the contents of the frame.
|
* Initialize the contents of the frame.
|
||||||
|
* @wbp.parser.entryPoint
|
||||||
*/
|
*/
|
||||||
private void initialize() {
|
private void initialize() {
|
||||||
frmPackwizlauncher = new JFrame();
|
frmPackwizlauncher = new JFrame();
|
||||||
@ -40,32 +41,32 @@ public class InstallWindow implements IUserInterface {
|
|||||||
frmPackwizlauncher.setBounds(100, 100, 493, 95);
|
frmPackwizlauncher.setBounds(100, 100, 493, 95);
|
||||||
frmPackwizlauncher.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
frmPackwizlauncher.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
frmPackwizlauncher.setLocationRelativeTo(null);
|
frmPackwizlauncher.setLocationRelativeTo(null);
|
||||||
|
|
||||||
JPanel panel = new JPanel();
|
JPanel panel = new JPanel();
|
||||||
panel.setBorder(new EmptyBorder(10, 10, 10, 10));
|
panel.setBorder(new EmptyBorder(10, 10, 10, 10));
|
||||||
frmPackwizlauncher.getContentPane().add(panel, BorderLayout.CENTER);
|
frmPackwizlauncher.getContentPane().add(panel, BorderLayout.CENTER);
|
||||||
panel.setLayout(new BorderLayout(0, 0));
|
panel.setLayout(new BorderLayout(0, 0));
|
||||||
|
|
||||||
progressBar = new JProgressBar();
|
progressBar = new JProgressBar();
|
||||||
progressBar.setIndeterminate(true);
|
progressBar.setIndeterminate(true);
|
||||||
panel.add(progressBar, BorderLayout.CENTER);
|
panel.add(progressBar, BorderLayout.CENTER);
|
||||||
|
|
||||||
lblProgresslabel = new JLabel("Loading...");
|
lblProgresslabel = new JLabel("Loading...");
|
||||||
panel.add(lblProgresslabel, BorderLayout.SOUTH);
|
panel.add(lblProgresslabel, BorderLayout.SOUTH);
|
||||||
|
|
||||||
JPanel panel_1 = new JPanel();
|
JPanel panel_1 = new JPanel();
|
||||||
panel_1.setBorder(new EmptyBorder(0, 5, 0, 5));
|
panel_1.setBorder(new EmptyBorder(0, 5, 0, 5));
|
||||||
frmPackwizlauncher.getContentPane().add(panel_1, BorderLayout.EAST);
|
frmPackwizlauncher.getContentPane().add(panel_1, BorderLayout.EAST);
|
||||||
GridBagLayout gbl_panel_1 = new GridBagLayout();
|
GridBagLayout gbl_panel_1 = new GridBagLayout();
|
||||||
panel_1.setLayout(gbl_panel_1);
|
panel_1.setLayout(gbl_panel_1);
|
||||||
|
|
||||||
JButton btnOptions = new JButton("Options...");
|
JButton btnOptions = new JButton("Configure...");
|
||||||
btnOptions.setAlignmentX(Component.CENTER_ALIGNMENT);
|
btnOptions.setAlignmentX(Component.CENTER_ALIGNMENT);
|
||||||
GridBagConstraints gbc_btnOptions = new GridBagConstraints();
|
GridBagConstraints gbc_btnOptions = new GridBagConstraints();
|
||||||
gbc_btnOptions.gridx = 0;
|
gbc_btnOptions.gridx = 0;
|
||||||
gbc_btnOptions.gridy = 0;
|
gbc_btnOptions.gridy = 0;
|
||||||
panel_1.add(btnOptions, gbc_btnOptions);
|
panel_1.add(btnOptions, gbc_btnOptions);
|
||||||
|
|
||||||
JButton btnCancel = new JButton("Cancel");
|
JButton btnCancel = new JButton("Cancel");
|
||||||
btnCancel.addActionListener(event -> {
|
btnCancel.addActionListener(event -> {
|
||||||
if (worker != null) {
|
if (worker != null) {
|
||||||
@ -101,7 +102,7 @@ public class InstallWindow implements IUserInterface {
|
|||||||
System.exit(1);
|
System.exit(1);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setTitle(String title) {
|
public void setTitle(String title) {
|
||||||
this.title = title;
|
this.title = title;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user