Results 1 to 5 of 5
Thread: A few java probs
- 06-10-2008, 02:30 PM #1
Member
- Join Date
- Jun 2008
- Posts
- 2
- Rep Power
- 0
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
-
Hello and welcome to Java.
If your JLabel is called myLabel, I believe that it can easily be removed by calling myLabel.setIcon(null).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?
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
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)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?
and all of the Sun tutorials can be found here: The Java™ Tutorials
- 06-10-2008, 02:40 PM #3
Member
- Join Date
- Jun 2008
- Posts
- 2
- Rep Power
- 0
Thx a lot for your quick answer, learning a new language takes always a lot of time ;) but I like It :D
- 06-11-2008, 06:07 AM #4
Member
- Join Date
- Jun 2008
- Posts
- 3
- Rep Power
- 0
Hiiiii M Fresher
hiii guys...m a new for java....so plzzz corporate me....and help me
- 06-11-2008, 07:59 AM #5


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks