This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes swing..simple Q? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "swing..simple Q?" Watch "swing..simple Q?" New topic

swing..simple Q?

kieran pattni
Ranch Hand

Joined: Jan 19, 2004
Posts: 47
hi..simply question...why doesnt look like Jframe when i run just looks normal frame...
import javax.swing.*;
public class SimpleGui1
public static void main(String[] args)
JFrame frame = new JFrame();
JButton button = new JButton("Click me");




thanks in advance
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24193

In what way are you expecting a JFrame to look different from a Frame? Being empty windows, with decorations drawn by the host windowing system, they're going to look more or less identical.

[Jess in Action][AskingGoodQuestions]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Moving this to the Swing / JFC / AWT forum...

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
jQuery in Action, 3rd edition
subject: swing..simple Q?
It's not a secret anymore!