View Single Post
  (#2 (permalink)) Old
SCODonnell Offline
Thumbs Must Hurt
 
SCODonnell's Avatar
 
Posts: 66
Join Date: Oct 2005
Location: Chicago
Model: 9530
OS: 4.7.0.75
PIN: the_tail_on_the_donkey
Carrier: Verizon
Default Color values -- not the easiest way probably - 11-03-2005, 12:47 PM

It's probably not the easiest way (it may be in a reference book somewhere), but you could use the Java Development Environment (JDE) and set breakpoints before and after you perform a color asignment. When you hit the break, check in your "Locals" watchlist to see what the int values are before and after the assignment:

Sample Code:

Code:
    ListField myList = new ListField() {
        protected void paint(Graphics g) {
            g.setBackgroundColor(Color.SKYBLUE);
            g.clear();            
            ...
Locals:

Code:
Name                 Value                 Type
------------------------------------------------
g
|--- _bgColour       8900331                int