BUG #2423087 - JavaPOS Null pointer exception

SET DEFAULT COLOR FOR FUNCTION KEY IN CASE OF NO-COLOR SET IN KEY LAYOUT
This commit is contained in:
Redhuan D. Oon 2008-12-13 07:05:35 +00:00
parent 9ebeab9b0a
commit 0bcab23d1f
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ public class SubFunctionKeys extends PosSubPanel implements ActionListener
CPanel content = new CPanel (new GridLayout(Math.max(rows, 3), Math.max(cols, 3)));
for (int i = 0; i < m_keys.length; i++)
{
Color keyColor = null;
Color keyColor = Color.lightGray;
MPOSKey key = m_keys[i];
StringBuffer buttonHTML = new StringBuffer("<html><p>");
if (key.getAD_PrintColor_ID() != 0)