Re: Distinguish better between active and non-active JInternalFrames



Uwe Ziegenhagen wrote:
Hello,

depending on the L & F and the monitor it is sometimes a bit hard to see
which Jinternalframe is the active one. Is there any way to change e.g.
the color of the title background without the need to reprogram a lot?

Uwe

Read about javax.swing.UIManager
Using this class you may set/change some L&F values.

For example default values:
InternalFrame.activeTitleBackground
javax.swing.plaf.ColorUIResource[r=184,g=207,b=229]
InternalFrame.inactiveTitleBackground
javax.swing.plaf.ColorUIResource[r=238,g=238,b=238]

You may change any value, but then you need to update UI:
javax.swing.SwingUtilities.updateComponentTreeUI(Component)

Always use xxxUIResources instead plain classes
(ColorUIResource instead of Color)

Changing L&F setting in very beginning of your program
doesn't require call to updateComponentTreeUI(Component)


.



Relevant Pages

  • Distinguish better between active and non-active JInternalFrames
    ... depending on the L & F and the monitor it is sometimes a bit hard to see ... which Jinternalframe is the active one. ... the color of the title background without the need to reprogram a lot? ...
    (comp.lang.java.gui)
  • Re: Checking if a view is being used
    ... you can use SQL Profiler to monitor all statements. ... You can filter on the name of the view in the "text" column. ... Depending ...
    (microsoft.public.sqlserver.programming)
  • Re: graphics from Word to PShop7 ?
    ... > It isn't your monitor, it M$. They've buggered up the image with their ... > own compreession algorithm. ... > Depending on which version of Word you have and the size of the image, ... > there are 3 possible workarounds. ...
    (alt.graphics.photoshop)
  • Re: PA
    ... outputbusses (left, right, and six monitor). ... driver, hi-freq horn, and 350W amp. ... Depending on the venue, we use 2 or 4 mains, each witha 15" driver, ...
    (alt.guitar.bass)
  • Re: Roland SPD-S with acoustic kit
    ... Cut up the .wav into the section that you want using Audacity. ... Copy the files onto a CompactFlash card (you'll need a card reader if ... depending on your monitoring situation. ... monitor / in-ears, ...
    (rec.music.makers.percussion)