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:
parent
9ebeab9b0a
commit
0bcab23d1f
|
@ -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)));
|
CPanel content = new CPanel (new GridLayout(Math.max(rows, 3), Math.max(cols, 3)));
|
||||||
for (int i = 0; i < m_keys.length; i++)
|
for (int i = 0; i < m_keys.length; i++)
|
||||||
{
|
{
|
||||||
Color keyColor = null;
|
Color keyColor = Color.lightGray;
|
||||||
MPOSKey key = m_keys[i];
|
MPOSKey key = m_keys[i];
|
||||||
StringBuffer buttonHTML = new StringBuffer("<html><p>");
|
StringBuffer buttonHTML = new StringBuffer("<html><p>");
|
||||||
if (key.getAD_PrintColor_ID() != 0)
|
if (key.getAD_PrintColor_ID() != 0)
|
||||||
|
|
Loading…
Reference in New Issue