954,554 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

is it possible to change the button design ?

i was wondering if its possible to change the look of the buttons?

http://peecee.dk/index.php?id=80239&noresize=yes
the left one is how it looks in Netbeans and the right one is how it looks when i run it.

i dont like the one to the right :/

is there any way to change this ?

Krimi
Newbie Poster
9 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

LookAndFeel

Google that term.

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

as far as i can see it just changes the color ?
i was hoping to change the actual shape to make it look like the buttons i windows.

Krimi
Newbie Poster
9 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

Use the following piece of code to get Windows OS Look And Feel

try {
			//org.fife.plaf.VisualStudio2005.VisualStudio2005LookAndFeel
			//de.javasoft.plaf.synthetica.SyntheticaStandardLookAndFeel
			//com.jgoodies.looks.plastic.Plastic3DLookAndFeel	
			UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			e.printStackTrace();
		}
		getContentPane().setLayout(null);
lookof2day
Junior Poster in Training
83 posts since Aug 2007
Reputation Points: 16
Solved Threads: 11
 

Thank you! Just what i was looking for :D

Krimi
Newbie Poster
9 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

And like I said, LookAndFeel. It takes about two minutes to find a tutorial on it, if you look.

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

Why does this happen: I want the first window (one.jpg) to look like the second (two.jpg). What's wrong?

Attachments one.JPG 11.71KB two.JPG 25.65KB
Buffalo101
Junior Poster
116 posts since Oct 2009
Reputation Points: 9
Solved Threads: 3
 

Start your own thread, please.

Closing this zombie.

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You