JFrame not visible [message #89236] |
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.
|
|
|
Re: JFrame not visible [message #89251 is a reply to message #89236] |
Mon, 02 May 2005 21:03 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Try stepping up to VE 1.0.2.1.
1) Also, are there are any errors?
2) Is there anything in the .log file?
3) Do you get the Visual Editor up, but it is blank? Or does nothing
come up?
--
Thanks,
Rich Kulp
|
|
|
Re: JFrame not visible [message #89774 is a reply to message #89251] |
Wed, 04 May 2005 20:02 |
Eclipse User |
|
|
|
Originally posted by: schesvo.cs.ndsu.edu
Rich Kulp wrote:
> Try stepping up to VE 1.0.2.1.
> 1) Also, are there are any errors?
> 2) Is there anything in the .log file?
> 3) Do you get the Visual Editor up, but it is blank? Or does nothing
> come up?
> --
> Thanks,
> Rich Kulp
The visual editor is up but it is blank after the code is generated.
It gives the following error in the log file:
Error May 04, 2005 14:39:28.218 Exception thrown.
java.lang.ClassCastException: org.eclipse.emf.java.util.JavaResourceImpl
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.createJavaInstances(JavaSourceTranslator.java:705)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildCompositionModel(JavaSourceTranslator.java:774)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:881)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(JavaSourceTranslator.java:656)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1444)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
I also tried installing VE 1.0.2.1 but then I got:
"Setup Java Visual Editor (Error: An internal error occurred during
"Setup Java Visual Editor")
so I reverted back to the previous version.
Thanks,
Doug.
|
|
|
Re: JFrame not visible [message #89789 is a reply to message #89774] |
Wed, 04 May 2005 22:58 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
The classcast error is due to EMF Examples being installed and using VE
1.0.1. We fixed it in VE 1.0.2.1 such that it will work with EMF
Examples installed.
You should be using 1.0.2.1, but you say you get an error, what is the
stack trace from the .log when using 1.0.2.1?
--
Thanks,
Rich Kulp
|
|
|
Re: JFrame not visible [message #89926 is a reply to message #89789] |
Thu, 05 May 2005 21:34 |
Eclipse User |
|
|
|
Originally posted by: schesvo.cs.ndsu.edu
Rich Kulp wrote:
> The classcast error is due to EMF Examples being installed and using VE
> 1.0.1. We fixed it in VE 1.0.2.1 such that it will work with EMF
> Examples installed.
> You should be using 1.0.2.1, but you say you get an error, what is the
> stack trace from the .log when using 1.0.2.1?
Just for the hell of it, I tried a "revert to previous configuration" to
try
VE 1.0.2.1 again. Now it seems to work. When I installed VE 1.0.2.1 the
first
time the documentation said to restart eclipse using the -clean option. I
wasn't sure how to do this so I just restarted normally. Maybe when you do
a "revert to previous configuration" it automatically restarts with the
-clean option. Anyway, it seems to be working now. FYI the stack trace
from
when I tried the first time is as follows:
Error May 04, 2005 14:23:19.765 An internal error occurred during: "Setup
Java Visual Editor".
java.lang.NoClassDefFoundError: org/eclipse/jem/internal/temp/VETimerTests
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1510)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
Thanks a lot for your help,
Doug.
|
|
|
Re: JFrame not visible [message #89970 is a reply to message #89926] |
Fri, 06 May 2005 13:42 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
you put -clean on the command line as an option to the eclipse.exe command.
If you use the Help->Manage configurations to do the revert, then that
probably caused a clean under the covers.
--
Thanks,
Rich Kulp
|
|
|
Re: JFrame not visible [message #607300 is a reply to message #89236] |
Mon, 02 May 2005 21:03 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Try stepping up to VE 1.0.2.1.
1) Also, are there are any errors?
2) Is there anything in the .log file?
3) Do you get the Visual Editor up, but it is blank? Or does nothing
come up?
--
Thanks,
Rich Kulp
|
|
|
Re: JFrame not visible [message #607341 is a reply to message #89251] |
Wed, 04 May 2005 20:02 |
Eclipse User |
|
|
|
Originally posted by: schesvo.cs.ndsu.edu
Rich Kulp wrote:
> Try stepping up to VE 1.0.2.1.
> 1) Also, are there are any errors?
> 2) Is there anything in the .log file?
> 3) Do you get the Visual Editor up, but it is blank? Or does nothing
> come up?
> --
> Thanks,
> Rich Kulp
The visual editor is up but it is blank after the code is generated.
It gives the following error in the log file:
Error May 04, 2005 14:39:28.218 Exception thrown.
java.lang.ClassCastException: org.eclipse.emf.java.util.JavaResourceImpl
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.createJavaInstances(JavaSourceTranslator.java:705)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.buildCompositionModel(JavaSourceTranslator.java:774)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:881)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(JavaSourceTranslator.java:656)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1444)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
I also tried installing VE 1.0.2.1 but then I got:
"Setup Java Visual Editor (Error: An internal error occurred during
"Setup Java Visual Editor")
so I reverted back to the previous version.
Thanks,
Doug.
|
|
|
Re: JFrame not visible [message #607342 is a reply to message #89774] |
Wed, 04 May 2005 22:58 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
The classcast error is due to EMF Examples being installed and using VE
1.0.1. We fixed it in VE 1.0.2.1 such that it will work with EMF
Examples installed.
You should be using 1.0.2.1, but you say you get an error, what is the
stack trace from the .log when using 1.0.2.1?
--
Thanks,
Rich Kulp
|
|
|
Re: JFrame not visible [message #607351 is a reply to message #89789] |
Thu, 05 May 2005 21:34 |
Eclipse User |
|
|
|
Originally posted by: schesvo.cs.ndsu.edu
Rich Kulp wrote:
> The classcast error is due to EMF Examples being installed and using VE
> 1.0.1. We fixed it in VE 1.0.2.1 such that it will work with EMF
> Examples installed.
> You should be using 1.0.2.1, but you say you get an error, what is the
> stack trace from the .log when using 1.0.2.1?
Just for the hell of it, I tried a "revert to previous configuration" to
try
VE 1.0.2.1 again. Now it seems to work. When I installed VE 1.0.2.1 the
first
time the documentation said to restart eclipse using the -clean option. I
wasn't sure how to do this so I just restarted normally. Maybe when you do
a "revert to previous configuration" it automatically restarts with the
-clean option. Anyway, it seems to be working now. FYI the stack trace
from
when I tried the first time is as follows:
Error May 04, 2005 14:23:19.765 An internal error occurred during: "Setup
Java Visual Editor".
java.lang.NoClassDefFoundError: org/eclipse/jem/internal/temp/VETimerTests
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1510)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
Thanks a lot for your help,
Doug.
|
|
|
Re: JFrame not visible [message #607354 is a reply to message #89926] |
Fri, 06 May 2005 13:42 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
you put -clean on the command line as an option to the eclipse.exe command.
If you use the Help->Manage configurations to do the revert, then that
probably caused a clean under the covers.
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.03565 seconds