Reputation: 0 Apprentice
- New Members
- Active Posts:
- 7 (0.03 per day)
- 01-October 12
- Profile Views:
- Last Active:
- Oct 15 2012 10:48 AM
- Dream Kudos:
Posts I've Made
Posted 15 Oct 2012Bump, can anyone help?
Posted 11 Oct 2012Hi
I have a little question. Might even seem sill too. Can I just ask why would you import the J Extensions seperately if you're going to import the entire swing lib?
import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTabbedPane; import javax.swing.JButton; import javax.swing.*; import java.awt.event.*;
Is there a reason behind it? Thanks.
I have a question about the tabbed panes for GUI. I looked at this tutorial and it makes sense how to set up the tabs. What I am confused about it where do I put my program for each tab?? I have the code working but I don't know where to place it to get it in a tab. If anyone could just help direct me on where to insert my code that would be much appreciated.
I'm sorry if i'm bring up an old thread but...
I've the same problem as this...Please if someone would be willing to explain i'm all eyes
Posted 1 Oct 2012Sorry for the double post coiuldn't find the edit button (it's not getting late a bit tired probably will go to sleep soon to look at the code with a fresher eye in the morning.) I've now looked up this video and has taken the liberty to follow this guy's way to export the Java file. http://www.youtube.c...h?v=RbhJ9sTMTD8 And realized here's the problem that's popping up for me.
Jar export finished with problems. See details for additional information.
Could not find main method from given launch configuration.
Posted 1 Oct 2012How do you run it? How do you export it? What's the error? I've successfully created a jar file of your program using Eclipse.
Well to be honest this is my first time attempting to export a java .jar file so i went through what I felt was obvious via Eclipse. File->Export->Java->Jar File and save that to desktop and attempt to run it and it says. Failed to load main class mainifest attribute from (where ever I've saved the .jar file)
If you're gonna create a jar with a simple commandline use of javas jar.exe then drop the line with package in it, and it runs fine.
Edit: it's ofcourse possible to get it to run with the package line without the use of an IDE like NetBeans or Eclipse, but it's a bit more complicated so unless you need it, skip it.
Java's jar.exe file? would that be similar to droping it into a command prompt? My .java file that is? I'd prefer to learn the method of getting the package line to work via Eclipse or if it must be netbeans .
Posted 1 Oct 2012Wow how silly me I should've thought of that that was one of instead of Double.parseDouble i did double.parseDouble all this time no wonder my code was faulty thank you guys for bearing with me.
- Member Title:
- New D.I.C Head
- Age Unknown
- Birthday Unknown
- Click here to e-mail me
hanzechin hasn't added any friends yet.