Default system look and feel does not work
Hi,
I'm trying to create a simple JFrame with a button on it, but I want this button to look like a native system one.
Here's the code
But all I get is this:
http://i040.radikal.ru/1104/a6/f57ada609d75.jpg
It doesn't look like a Windows 7 button at all.
What am I doing wrong? :confused:
Re: Default system look and feel does not work
Why are you using a Button instead of a JButton?
Re: Default system look and feel does not work
Re: Default system look and feel does not work
I found what the problem was. Such a stupid blunder of mine :D
I had to set up look and feel before creating a button:
Now the button looks like it's supposed to :)
http://s015.radikal.ru/i333/1104/f4/b37632707d85.jpg