Changeset 139 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui/ScriptBuilderFrame.java


Ignore:
Timestamp:
11/29/2017 10:23:31 AM (8 years ago)
Author:
bmcguffin
Message:

Incident properties frame now displays color hex code of currently selected color.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scriptbuilder/gui/ScriptBuilderFrame.java

    r132 r139  
    16761676        txtIncidentLength.setText("0"); 
    16771677        incidentColorField.setBackground(Color.BLACK); 
     1678        String colStr = "" + Integer.toHexString(Color.BLACK.getRed()) 
     1679                + Integer.toHexString(Color.BLACK.getGreen()) 
     1680                + Integer.toHexString(Color.BLACK.getBlue()); 
     1681        incidentColorField.setText(colStr); 
    16781682        selectedColor = Color.BLACK; 
    16791683        addIncidentDescription.setText(""); 
     
    18101814        //addIncidentLength.setValue(i.length / 60); 
    18111815        incidentColorField.setBackground(i.color); 
     1816        String colStr = "" + Integer.toHexString(i.color.getRed()) 
     1817                + Integer.toHexString(i.color.getGreen()) 
     1818                + Integer.toHexString(i.color.getBlue()); 
     1819        incidentColorField.setText(colStr); 
    18121820        selectedColor = i.color; 
    18131821        addIncidentDescription.setText(i.description); 
     
    20722080            selectedColor = newColor; 
    20732081            incidentColorField.setBackground(newColor); 
     2082            String colStr = "" + Integer.toHexString(newColor.getRed()) 
     2083                    + Integer.toHexString(newColor.getGreen()) 
     2084                    + Integer.toHexString(newColor.getBlue()); 
     2085            incidentColorField.setText(colStr); 
    20742086        } 
    20752087        //Return focus to the properties frame 
Note: See TracChangeset for help on using the changeset viewer.