Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » JFrame not visible
JFrame not visible [message #607297] Mon, 02 May 2005 20:27
Eclipse UserFriend
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.
Previous Topic:jLabel.setFont(font);
Next Topic:Using FormAttachment in FormLayout
Goto Forum:
  


Current Time: Thu Apr 25 00:22:07 GMT 2024

Powered by FUDForum. Page generated in 0.02526 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top