Results 1 to 5 of 5
  1. #1
    Mezzie is offline Member
    Join Date
    Jun 2008
    Posts
    2
    Rep Power
    0

    Default A few java probs

    Hello everyone,

    I'm new at this forum, and I'm new with Java

    I have knowledge about C# and VB.NET
    But I want to learn Java :)

    first of all, I am using Netbeans 6.1

    I just added an icon to a label, can I programmatically change or remove this icon? so when I press a button, the icon is gone?

    2nd question ;)
    If I run my program, I get a java screen, but is it possible to open my program when netbeans is closed? can I find or create an .exe or something of my program?


    Thx in advance!

    Mezzie

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

    Default

    Hello and welcome to Java.

    I just added an icon to a label, can I programmatically change or remove this icon? so when I press a button, the icon is gone?
    If your JLabel is called myLabel, I believe that it can easily be removed by calling myLabel.setIcon(null).

    The more general answer to this question is to suggest that you get very familiar with the Java API. It usually will answer most of your questions and can be found here: Java Platform SE 6

    If I run my program, I get a java screen, but is it possible to open my program when netbeans is closed? can I find an .exe or something of my program?
    A Java program can be run from the command line quite easily, and if packaged into a Jar file, can be run by double clicking on the Jar -- no NetBeans required. Check out the Java introductory tutorials on how to compile and run Java programs without NetBeans. You can find this here: Trail: Getting Started (The Java™ Tutorials)
    and all of the Sun tutorials can be found here: The Java™ Tutorials

  3. #3
    Mezzie is offline Member
    Join Date
    Jun 2008
    Posts
    2
    Rep Power
    0

    Default

    Thx a lot for your quick answer, learning a new language takes always a lot of time ;) but I like It :D

  4. #4
    miir is offline Member
    Join Date
    Jun 2008
    Posts
    3
    Rep Power
    0

    Default Hiiiii M Fresher

    hiii guys...m a new for java....so plzzz corporate me....and help me

  5. #5
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    hiii guys...m a new for java....so plzzz corporate me....and help me
    If i know about your problem, then i can help you....
    freedom exists in the world of ideas

Posting Permissions

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