Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-10-2008, 03:30 PM
Member
 
Join Date: Jun 2008
Posts: 2
Mezzie is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-10-2008, 03:38 PM
Senior Member
 
Join Date: Jun 2008
Posts: 451
Fubarable is on a distinguished road
Hello and welcome to Java.

Quote:
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

Quote:
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
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-10-2008, 03:40 PM
Member
 
Join Date: Jun 2008
Posts: 2
Mezzie is on a distinguished road
Thx a lot for your quick answer, learning a new language takes always a lot of time but I like It
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-11-2008, 07:07 AM
Member
 
Join Date: Jun 2008
Posts: 3
miir is on a distinguished road
Hiiiii M Fresher
hiii guys...m a new for java....so plzzz corporate me....and help me
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 06-11-2008, 08:59 AM
sukatoa's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 526
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
Quote:
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....
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +3. The time now is 10:11 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org