[Probably simple solution] How to make my program look like Windows?

View: New views
2 Messages — Rating Filter:   Alert me  

[Probably simple solution] How to make my program look like Windows?

by Micieri :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've been using Java for 2 days now, started making some random GUIs with NetBeans, and every time I compile it compiles as the Java interface thing, even though in NetBeans it shows the Windows one. I've Google'd for hours now and looked through every relevant help file I can find, I've looked through all of the options and have not seen an option for making it compile into a Windows interface.



I've seen .jar files with the Windows interface so there must be a way.



I promise this was my last resort and I have tried all I can think of!



Any help is greatly appreciated.



Optional: Since I'm here I may aswell ask, how do I make a title for my program? Right now it just stays blank.





[Probably simple solution] How to make my program look like Windows?

by bftanase :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

- Search google for "java look and feel".



or you can just use




Code:


UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());







- if by "title" you mean the window title bar, just call setTitle method on your frame.



Advice:

You may want to learn swing without a visual editor at first, otherwise you won't understand anything from the code netbeans visual editor generates ...