small enhancement to layout and icon
This commit is contained in:
parent
e9ae25d459
commit
56fe52c525
|
@ -131,7 +131,7 @@ public class PosPanel extends CPanel
|
|||
}
|
||||
frame.getContentPane().add(this, BorderLayout.CENTER);
|
||||
frame.getContentPane().add(f_status, BorderLayout.SOUTH);
|
||||
this.setPreferredSize(new Dimension (800-20,500-20));
|
||||
this.setPreferredSize(new Dimension (850-20,500-20));
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
|
|
|
@ -94,7 +94,7 @@ public class SubCurrentLine extends PosSubPanel implements ActionListener {
|
|||
gbc.insets = INSETS2;
|
||||
gbc.gridy = 0;
|
||||
// --
|
||||
f_new = createButtonAction("New", KeyStroke.getKeyStroke(
|
||||
f_new = createButtonAction("Save", KeyStroke.getKeyStroke(
|
||||
KeyEvent.VK_INSERT, Event.SHIFT_MASK));
|
||||
gbc.gridx = 0;
|
||||
add(f_new, gbc);
|
||||
|
@ -170,7 +170,7 @@ public class SubCurrentLine extends PosSubPanel implements ActionListener {
|
|||
return;
|
||||
log.info( "SubCurrentLine - actionPerformed: " + action);
|
||||
// New / Reset
|
||||
if (action.equals("New"))
|
||||
if (action.equals("Save"))
|
||||
saveLine();
|
||||
else if (action.equals("Reset"))
|
||||
newLine();
|
||||
|
|
|
@ -73,7 +73,7 @@ public class SubFunctionKeys extends PosSubPanel implements ActionListener
|
|||
if (fKeys.get_ID() == 0)
|
||||
return;
|
||||
|
||||
int COLUMNS = 4; // Min Columns
|
||||
int COLUMNS = 3; // Min Columns
|
||||
int ROWS = 6; // Min Rows
|
||||
m_keys = fKeys.getKeys(false);
|
||||
int noKeys = m_keys.length;
|
||||
|
@ -117,7 +117,7 @@ public class SubFunctionKeys extends PosSubPanel implements ActionListener
|
|||
button.setBackground(Color.cyan);
|
||||
content.add (button);
|
||||
}
|
||||
content.setPreferredSize(new Dimension(cols*180, rows*50));
|
||||
content.setPreferredSize(new Dimension(cols*80, rows*50));
|
||||
add (content);
|
||||
} // init
|
||||
|
||||
|
|
Loading…
Reference in New Issue