• Post Reply Bookmark Topic Watch Topic
  • New Topic

Weird!!  RSS feed

 
Mohamad Obagi
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys

i am using netbeans to generate the GUI

and everything is great no errors

the problem is when i run it it shows a total different interface look than the one i create it

old buttons and old frame dont know why this is happening?!
 
Pavan Kumar Srinivasan
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check the LookNFeel under which the gui is running
 
Rob Spoor
Sheriff
Posts: 21048
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get and set the current look&feel using UIManager.getLookAndFeel and UIManager.setLookAndFeel.
 
Mohamad Obagi
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
} catch (Exception e) { }
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!