Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions src/main/java/net/sf/javaanpr/gui/windows/FrameComponentInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,37 +32,37 @@ public class FrameComponentInit extends JFrame {
* Creates new form FrameComponentInit.
*/
public FrameComponentInit() {
this.initComponents();
initComponents();
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
int width = this.getWidth();
int height = this.getHeight();
this.setLocation((screenSize.width - width) / 2, (screenSize.height - height) / 2);
this.setVisible(true);
int width = getWidth();
int height = getHeight();
setLocation((screenSize.width - width) / 2, (screenSize.height - height) / 2);
setVisible(true);
}

/**
* This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The
* content of this method is always regenerated by the Form Editor.
*/
private void initComponents() {
this.label = new JLabel();
this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
this.setTitle("Initializing system logic");
this.setAlwaysOnTop(true);
this.setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));
this.setFocusable(false);
this.setResizable(false);
this.setUndecorated(true);
this.label.setFont(new java.awt.Font("Arial", 0, 14));
this.label.setHorizontalAlignment(SwingConstants.CENTER);
this.label.setText("Starting application, please wait ...");
this.label.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
GroupLayout layout = new GroupLayout(this.getContentPane());
this.getContentPane().setLayout(layout);
label = new JLabel();
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
setTitle("Initializing system logic");
setAlwaysOnTop(true);
setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));
setFocusable(false);
setResizable(false);
setUndecorated(true);
label.setFont(new java.awt.Font("Arial", 0, 14));
label.setHorizontalAlignment(SwingConstants.CENTER);
label.setText("Starting application, please wait ...");
label.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
GroupLayout layout = new GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.LEADING)
.add(this.label, GroupLayout.DEFAULT_SIZE, 431, Short.MAX_VALUE));
.add(label, GroupLayout.DEFAULT_SIZE, 431, Short.MAX_VALUE));
layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.LEADING)
.add(this.label, GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE));
this.pack();
.add(label, GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE));
pack();
}
}