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 02-11-2008, 12:30 AM
Member
 
Join Date: Feb 2008
Posts: 3
mikau is on a distinguished road
I need a simple programs
Hi everybody .

My java knowledge is almost null. For now, I need to know how to create combobox, text fields and buttons. I've been reading some java tutos about this but the examples they show aren't that simple and is difficult for me to learn that way.

I want simple examples, like one simple combobox with like 3 options, so I can learn where I change the combobox options names and the title of the combobox.

First message

Last edited by mikau : 02-11-2008 at 12:39 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-11-2008, 02:27 AM
Roughedge's Avatar
Member
 
Join Date: Feb 2008
Location: Dundee
Posts: 4
Roughedge is on a distinguished road
Send a message via MSN to Roughedge
Are you using an IDE to create your java code? When starting out with Java a few years ago, I found that the netbeans GUI editor was really easy to use and created pretty good code at a drag and drop style. You could use that then to re-create what you want and look at the code the IDE generates.

Good tutorial - Lesson: Learning Swing with the NetBeans IDE (The Java™ Tutorials > Creating a GUI with JFC/Swing)

If you want to manually code it all in, have a look at

Java Swing Introduction to Swing Tutorial

make sure you have the javadoc files though, best thing you can do when in doubt is look up the javadoc. Looking up that will tell you how to do
Code:
JComboBox myBox = new JComboBox(String ["Cow","Pig","Sheep","Deer"]);
All you need to worry about after that is the positioning, which, in all honesty is the harder part to get your head round. Have a look at the tutorials, they will definitely help you out.
__________________
I am so smart that sometimes I don't understand a word I am saying.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 02-11-2008, 04:37 AM
Member
 
Join Date: Feb 2008
Posts: 3
mikau is on a distinguished road
thanks. Unfortunely, I'm using JCreator and that's all I can use for now.

could somebody post the source code of a simple combobox (without images and stuff)?. I still haven't really got how the animals combobox on sun page works, so I wanna try a more simple combobox.

Simple examples of text fields and buttons would be good to

Last edited by mikau : 02-11-2008 at 04:48 AM.
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
simple GUI dim_ath New To Java 3 01-07-2008 04:00 PM
Execute small java programs through Internet.........is thst possible?? atanu.dey New To Java 1 01-05-2008 08:48 PM
simple code elizabeth New To Java 1 08-07-2007 07:49 PM
Problem while executing programs bks504 New To Java 10 08-02-2007 02:32 PM
how to take input and verify input in Java programs bilal_ali_java Advanced Java 0 07-21-2007 09:46 AM


All times are GMT +3. The time now is 05:23 PM.


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