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 GraphicsConfiguration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "GraphicsConfiguration" Watch "GraphicsConfiguration" New topic


Steven Zeng
Ranch Hand

Joined: Jan 15, 2002
Posts: 41
When using the JFrame class ,I found there is a version of constructor with the argument of GraphicsConfiguration class, but the smaple code in the jdk doc failed to compile:
JFrame f = new JFrame(GraphicsConfiguration gc);
I am sure that I have import the java.awt.*.So I want to know how to use this class-GraphicsConfiguration.

Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
the code you pasted can't work as your argument is a declaration not a reference to GraphicsConfiguration.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

The only time I have seen this constructor used is for systems with multiple displays... this forces the frame to open on a particular screen...

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: GraphicsConfiguration
It's not a secret anymore!