Results 1 to 5 of 5
  1. #1
    DaFlake is offline Member
    Join Date
    Jul 2009
    Posts
    11
    Rep Power
    0

    Default 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.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    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.

  3. #3
    DaFlake is offline Member
    Join Date
    Jul 2009
    Posts
    11
    Rep Power
    0

    Default

    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 08:01 PM.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    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.

  5. #5
    DaFlake is offline Member
    Join Date
    Jul 2009
    Posts
    11
    Rep Power
    0

    Default

    Quote Originally Posted by Fubarable View Post
    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.
    LOL, I fixed my post above to read a little better. I didn't mean to diss it as I do like it a lot, what I meant was that I won't be using the GUI building portion of it. ;)

Similar Threads

  1. Real Newbie Question - I'm sure its dumb
    By rulian in forum New To Java
    Replies: 4
    Last Post: 12-11-2008, 05:07 PM
  2. OpenGl transformation question newbie
    By ankitmcgill in forum New To Java
    Replies: 1
    Last Post: 11-16-2008, 04:46 AM
  3. Newbie question; Vectors
    By Kern in forum New To Java
    Replies: 7
    Last Post: 08-03-2008, 07:59 AM
  4. Newbie question about Static methods
    By SCS17 in forum New To Java
    Replies: 9
    Last Post: 02-06-2008, 09:03 AM
  5. Newbie guide to NetBeans CVS
    By Hiro ZA in forum NetBeans
    Replies: 1
    Last Post: 01-26-2008, 07:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •