IDEMPIERE-77 Start on the left, Cancel on the right / Revert changes for installer from changeset 367d6f7 / Implement correct fix
This commit is contained in:
parent
577ee64113
commit
7e98b67a2b
|
@ -86,13 +86,10 @@ public class KeyStoreDialog extends JDialog implements ActionListener
|
||||||
private JTextField fS = new JTextField(20);
|
private JTextField fS = new JTextField(20);
|
||||||
private JLabel lC = new JLabel("(C) Country (2 Char)");
|
private JLabel lC = new JLabel("(C) Country (2 Char)");
|
||||||
private JTextField fC = new JTextField(2);
|
private JTextField fC = new JTextField(2);
|
||||||
// Invert OK/Cancel IDEMPIERE-77
|
|
||||||
private JButton bOK = ConfirmPanel.createOKButton("");
|
|
||||||
private JButton bCancel = ConfirmPanel.createCancelButton("");
|
|
||||||
private boolean m_ok = false;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private JButton bOK = ConfirmPanel.createOKButton("OK");
|
||||||
|
private JButton bCancel = ConfirmPanel.createCancelButton("Cancel");
|
||||||
|
private boolean m_ok = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Static Layout
|
* Static Layout
|
||||||
|
@ -118,14 +115,12 @@ public class KeyStoreDialog extends JDialog implements ActionListener
|
||||||
getContentPane().add (panel, BorderLayout.CENTER);
|
getContentPane().add (panel, BorderLayout.CENTER);
|
||||||
//
|
//
|
||||||
JPanel confirmPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
|
JPanel confirmPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
|
||||||
// Invert OK/Cancel IDEMPIERE-77
|
|
||||||
confirmPanel.add(bOK);
|
confirmPanel.add(bOK);
|
||||||
confirmPanel.add(bCancel);
|
confirmPanel.add(bCancel);
|
||||||
getContentPane().add (confirmPanel, BorderLayout.SOUTH);
|
getContentPane().add (confirmPanel, BorderLayout.SOUTH);
|
||||||
//
|
//
|
||||||
bOK.addActionListener(this);
|
|
||||||
bCancel.addActionListener(this);
|
bCancel.addActionListener(this);
|
||||||
|
bOK.addActionListener(this);
|
||||||
} // jbInit
|
} // jbInit
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -24,7 +24,6 @@ import java.awt.event.ActionListener;
|
||||||
import java.awt.event.KeyEvent;
|
import java.awt.event.KeyEvent;
|
||||||
|
|
||||||
import javax.swing.Icon;
|
import javax.swing.Icon;
|
||||||
import javax.swing.ImageIcon;
|
|
||||||
import javax.swing.JButton;
|
import javax.swing.JButton;
|
||||||
import javax.swing.JDialog;
|
import javax.swing.JDialog;
|
||||||
import javax.swing.JFrame;
|
import javax.swing.JFrame;
|
||||||
|
@ -49,8 +48,7 @@ public final class ConfirmPanel extends JPanel
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 6041019802043360966L;
|
private static final long serialVersionUID = 6041019802043360966L;
|
||||||
private static ImageIcon ImagenCancel = new ImageIcon("/images/Cancel24.png");
|
|
||||||
private static ImageIcon ImagenOk = new ImageIcon("/images/Ok24.png");
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create OK Button with label text and F4 Shortcut
|
* Create OK Button with label text and F4 Shortcut
|
||||||
|
@ -63,7 +61,6 @@ public final class ConfirmPanel extends JPanel
|
||||||
JButton button = (JButton)aa.getButton();
|
JButton button = (JButton)aa.getButton();
|
||||||
button.setMargin(s_insets);
|
button.setMargin(s_insets);
|
||||||
button.setDefaultCapable(true);
|
button.setDefaultCapable(true);
|
||||||
button.setIcon(ImagenOk);
|
|
||||||
return button;
|
return button;
|
||||||
} // createOKButton
|
} // createOKButton
|
||||||
|
|
||||||
|
@ -89,7 +86,6 @@ public final class ConfirmPanel extends JPanel
|
||||||
AppsAction aa = new AppsAction (A_CANCEL, KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), text);
|
AppsAction aa = new AppsAction (A_CANCEL, KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), text);
|
||||||
JButton button = (JButton)aa.getButton();
|
JButton button = (JButton)aa.getButton();
|
||||||
button.setMargin(s_insets);
|
button.setMargin(s_insets);
|
||||||
button.setIcon(ImagenCancel);
|
|
||||||
return button;
|
return button;
|
||||||
} // createCancelButton
|
} // createCancelButton
|
||||||
|
|
||||||
|
@ -498,7 +494,6 @@ public final class ConfirmPanel extends JPanel
|
||||||
//
|
//
|
||||||
JPanel okCancel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
|
JPanel okCancel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
|
||||||
okCancel.setOpaque(false);
|
okCancel.setOpaque(false);
|
||||||
// Invert OK/Cancel IDEMPIERE-77
|
|
||||||
bOK = createOKButton(withText);
|
bOK = createOKButton(withText);
|
||||||
okCancel.add(bOK);
|
okCancel.add(bOK);
|
||||||
bCancel = createCancelButton(withText);
|
bCancel = createCancelButton(withText);
|
||||||
|
|
Loading…
Reference in New Issue