Results 1 to 5 of 5
- 07-30-2009, 06:11 PM #1
Member
- Join Date
- Jul 2009
- Posts
- 11
- Rep Power
- 0
Netbeans newbie question on compiling
OK,
As I mentioned in another thread, I am trying to ramp myself back up on JAVA as it has been a few years. In the process of doing that I figured I would also learn Netbeans and so far I love it. All the CLI programs that I have created compile and run fine. However, I am now working with Swing and have a question. I have created a JFrame using Netbeans. I know that it generates the custom code and I can compile it and run it fine using Netbeans. However, what if I need to hand my work to someone that is not using Netbeans? If I try to compile the .java file outside of Netbeans it is full of issues. Is there a way to save the .java file off so that it will compile and run correctly outside of Netbeans.
Thanks in advance.
-
If you create a runnable Jar file, then anyone can run it as long as they have the right Java on their system. Having said that, my recommendation regarding using NetBeans to generate code: don't, not if you are trying to learn Swing as it won't really teach you Swing.
- 07-30-2009, 06:55 PM #3
Member
- Join Date
- Jul 2009
- Posts
- 11
- Rep Power
- 0
Fair point.... I was just curious about using the IDE to be honest. I did make creating the form much easier, but the code does become readable only by Netbeans. I tried to copy and paste it to JGrasp and then compile and run and it wouldn't work.
So, I guess I am back to using standard JGrasp for now or using a standard class when building my program.Last edited by DaFlake; 07-30-2009 at 07:01 PM.
-
Don't get me wrong, NetBeans is a great IDE. I just don't like the code it produces for GUIs. It is unreadable and difficult to debug if you want to show it to other coders on a site such as this one.
- 07-30-2009, 07:04 PM #5
Member
- Join Date
- Jul 2009
- Posts
- 11
- Rep Power
- 0
Similar Threads
-
Real Newbie Question - I'm sure its dumb
By rulian in forum New To JavaReplies: 4Last Post: 12-11-2008, 04:07 PM -
OpenGl transformation question newbie
By ankitmcgill in forum New To JavaReplies: 1Last Post: 11-16-2008, 03:46 AM -
Newbie question; Vectors
By Kern in forum New To JavaReplies: 7Last Post: 08-03-2008, 06:59 AM -
Newbie question about Static methods
By SCS17 in forum New To JavaReplies: 9Last Post: 02-06-2008, 08:03 AM -
Newbie guide to NetBeans CVS
By Hiro ZA in forum NetBeansReplies: 1Last Post: 01-26-2008, 06:12 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks