43 |
contentPane.add(buttons); |
contentPane.add(buttons); |
44 |
|
|
45 |
setContentPane(contentPane); |
setContentPane(contentPane); |
|
SwingUtil.centerFrameOnScreen(this); |
|
46 |
|
|
47 |
} |
} |
48 |
|
|
49 |
/** |
/** |
50 |
* Is only called once! Doesn't use lazy initialization. Use |
* Is only called once! Doesn't use lazy initialization. Use |
51 |
* <code>super.createButtons.add( newButton )</code> to add buttons. |
* <code>super.createButtons.add( newButton )</code> to add buttons. |
|
* |
|
|
* @return |
|
52 |
*/ |
*/ |
53 |
protected JPanel createButtons() { |
protected JPanel createButtons() { |
54 |
final JPanel buttonsJPanel = new JPanel(new MigLayout("width 100%")); |
final JPanel buttonsJPanel = new JPanel(new MigLayout()); |
55 |
|
|
56 |
final OkButton okButton = new OkButton(new AbstractAction() { |
final OkButton okButton = new OkButton(new AbstractAction() { |
57 |
{ |
{ |