mirror of https://github.com/rusefi/RomRaider.git
Added font graying for locked tables
git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@175 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
parent
44aa01cb62
commit
4747f9d050
|
@ -321,6 +321,11 @@ public abstract class Table extends JPanel implements Serializable {
|
|||
centerPanel.add(data[i]);
|
||||
data[i].setYCoord(i);
|
||||
data[i].setOriginalValue(data[i].getBinValue());
|
||||
|
||||
// show locked cell
|
||||
if (tempLock) {
|
||||
data[i].setForeground(Color.GRAY);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -96,6 +96,10 @@ public class Table3D extends Table {
|
|||
ramOffset = container.getRomID().getRamOffset();
|
||||
}
|
||||
|
||||
// temporarily remove lock
|
||||
boolean tempLock = locked;
|
||||
locked = false;
|
||||
|
||||
// populate axiis
|
||||
try {
|
||||
xAxis.setRom(container);
|
||||
|
@ -135,6 +139,11 @@ public class Table3D extends Table {
|
|||
storageType));
|
||||
}
|
||||
|
||||
// show locked cell
|
||||
if (tempLock) {
|
||||
data[y][x].setForeground(Color.GRAY);
|
||||
}
|
||||
|
||||
centerPanel.add(data[y][x]);
|
||||
data[y][x].setXCoord(y);
|
||||
data[y][x].setYCoord(x);
|
||||
|
@ -142,7 +151,9 @@ public class Table3D extends Table {
|
|||
offset++;
|
||||
}
|
||||
}
|
||||
//this.colorize();
|
||||
|
||||
// reset locked status
|
||||
locked = tempLock;
|
||||
|
||||
GridLayout topLayout = new GridLayout(2, 1);
|
||||
JPanel topPanel = new JPanel(topLayout);
|
||||
|
|
Loading…
Reference in New Issue