Results 1 to 4 of 4
Thread: Noob problems with netbeans
- 12-10-2008, 10:12 PM #1
Member
- Join Date
- Dec 2008
- Posts
- 1
- Rep Power
- 0
Noob problems with netbeans
Hey, ive recently decided to learn java. I downloaded the netbeans ide and have two small problems.
I have created a simple GUI, in the main file wiki.java. I then added a new class to the same project called fileoptions.java.
If i go to the wiki.java right click and run file it displays the GUI no problem. However it ignores the fileoptions class.
So i went to the project, right clicked and pressed run. Everything builds fine, but no gui is displayed.
So i click on the project and build, it builds ok and but no gui appears, it tells me i can run it from command line using java -jar c:\ etc..
so i copy and paste that into a command prompt and it runs ok, but still no gui appears.
so then i locate the jar file and double click, however no gui appears.
Im not sure how to make the gui work outside of runing one file on netbeans.
- 12-29-2008, 09:17 PM #2
Can you post some code like where about's the fileoptions is referenced in your main wiki file.
- 12-30-2008, 02:59 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Basically how your classes are interact. I think there is no connection at all. You said that separately you can run and see that UI. But from one class call fileoption class you cannot see that. Either you have to instantiate that UI class in the main method of the fileoption class or something else.
It's better if you can show your code to see. Without looking that it's difficult yo answer your question.
- 01-28-2009, 03:30 AM #4
Similar Threads
-
problems with connecting to Oracle DB in NetBeans
By m16k2002 in forum Web FrameworksReplies: 6Last Post: 03-25-2009, 10:14 AM -
problems with class Splashscreen in netbeans
By ernieBob in forum NetBeansReplies: 0Last Post: 02-07-2008, 01:30 AM -
Problems with NetBeans
By gabriel in forum NetBeansReplies: 2Last Post: 11-07-2007, 09:49 PM -
problems with connecting to Oracle DB in NetBeans
By m16k2002 in forum NetBeansReplies: 0Last Post: 08-07-2007, 07:01 AM -
Problems to install NetBeans
By fred in forum NetBeansReplies: 1Last Post: 08-02-2007, 05:58 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks