aspose file tools*
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
Author

GraphicsConfiguration

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.


SCJP2
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.
try
Nathan Pruett
Bartender

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...


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: GraphicsConfiguration