Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: User Interface Design
Expertise: Beginner
Dec 7, 1999

JFrame Look and Feel

Question:
Is there any way I can make a JFrame look like JInternalFrame? It looks bad at runtime when you change the look-and-feel, but the main frame doesn't change.

Answer:
This is currently a deficiency in the Swing classes. A top level window is forced to assume the look-and-feel of the native window system. There is no technical reason why it would not be possible to make a borderless frame part of the standard classes. It could provide its own titlebar, border, and other decorations.

However, doing this would disable the native window manager operations, such as right-clicking on the titlebar in Windows 95/98/NT. This appears to be why it wasn't done.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap