• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDialog or JFrame with different look and feel?  RSS feed

 
Ola Ekelund
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

I'm developing an application that uses a look and feel with quite large fonts and buttons to work well on touch screen computers.
There is a help section in this application based on JavaHelp. The help section does not look good with the current look and feel. Therefore I need to display the help dialog with a different look and feel than the rest of the application. Is this possible?

I have searched everything and tried many different solutions without any successful results.
Any help is appreciated!

Thanks.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

We do not just give out solutions here at the Ranch.
What have you tried so far?

Do you have a LAF with you which you want to use?
How are you setting the LAF?
How are you ensuring the set LAF is picked up by the components?
 
Ola Ekelund
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried various methods of setting the look and feel before creating the new dialog and then restoring the old look and feel when done. This causes the entire application to change look and feel when the dialog is open and then to be changed back when the dialog closes. It does not change the dialog only.

The problem seems to be that the look and feel is set on the uimanager level, not on the dialog.
Is there any way to use a separate uimanager for a specific dialog?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try setting the LAF before the dialog is initialized but after all the reset of the UI is intialized. Also check out the SwingUtilities#updateComponentTreeUI()
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!