forked from External/mage
Some more changes to GUI to better support high screen resolutions.
This commit is contained in:
parent
a2d4c4738a
commit
1835671f3d
22 changed files with 1366 additions and 859 deletions
|
|
@ -63,6 +63,7 @@ public class ButtonColumn extends AbstractCellEditor implements TableCellRendere
|
|||
editButton = new JButton();
|
||||
editButton.setFocusPainted(false);
|
||||
editButton.addActionListener(this);
|
||||
setGUISize();
|
||||
|
||||
TableColumnModel columnModel = table.getColumnModel();
|
||||
columnModel.getColumn(column).setCellRenderer(this);
|
||||
|
|
@ -70,6 +71,15 @@ public class ButtonColumn extends AbstractCellEditor implements TableCellRendere
|
|||
table.addMouseListener(this);
|
||||
}
|
||||
|
||||
public void changeGUISize() {
|
||||
setGUISize();
|
||||
}
|
||||
|
||||
private void setGUISize() {
|
||||
renderButton.setFont(GUISizeHelper.tableFont);
|
||||
editButton.setFont(GUISizeHelper.tableFont);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getCellEditorValue() {
|
||||
return text;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue