JFrame not visible [message #607297] |
Mon, 02 May 2005 20:27 |
Eclipse User |
|
|
|
Originally posted by: schesvo.cs.ndsu.edu
I am new to eclipse and the visual editor. When I try and create a new
java visual class, I select "Frame" from the style window, check
"Inherited abstract methods" and then click "Finish" which generates the
following code:
--------------------------------------
/*
* Created on May 2, 2005
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package testPackage;
import javax.swing.JFrame;
/**
* @author Doug Schesvold
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class TestGUI extends JFrame {
private javax.swing.JPanel jContentPane = null;
/**
* This is the default constructor
*/
public TestGUI() {
super();
initialize();
}
/**
* This method initializes this
*
* @return void
*/
private void initialize() {
this.setSize(300,200);
this.setContentPane(getJContentPane());
this.setTitle("JFrame");
}
/**
* This method initializes jContentPane
*
* @return javax.swing.JPanel
*/
private javax.swing.JPanel getJContentPane() {
if(jContentPane == null) {
jContentPane = new javax.swing.JPanel();
jContentPane.setLayout(new java.awt.BorderLayout());
}
return jContentPane;
}
}
--------------------------------------
The problem is that nothing is displayed graphically as one would expect.
As I understand it, I should see some visual feedback of the GUI I am
creating.
The version of Eclipse I am using is:
3.0.2 Buildid: 200503110845
The version of VE that I am using is 1.0.1.1
Any help would be appreciated.
Thanks,
Doug.
|
|
|
Powered by
FUDForum. Page generated in 0.02526 seconds