File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 24195

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]
I agree. Here's the link:
subject: swing..simple Q?
It's not a secret anymore!