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:
Jared Gould 2006-07-25 15:52:59 +00:00
parent 44aa01cb62
commit 4747f9d050
2 changed files with 18 additions and 2 deletions

View File

@ -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);
}
}
}
}

View File

@ -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);