Results 1 to 7 of 7
Thread: jlist items
- 04-11-2009, 01:58 PM #1
Member
- Join Date
- Apr 2009
- Posts
- 10
- Rep Power
- 0
- 04-11-2009, 02:27 PM #2
Senior Member
- Join Date
- Dec 2008
- Location
- Hong Kong
- Posts
- 473
- Rep Power
- 5
if your list box is JList...
read JList (Java Platform SE 6)
if your list box is JCombobox
read JComboBox (Java Platform SE 6)
getItemAt(int index)
getItemCount()
may help you...
- 04-11-2009, 05:28 PM #3
Member
- Join Date
- Apr 2009
- Posts
- 10
- Rep Power
- 0
Thanks for the response mtyoung. It must contain the answer somewhere.
I'm a complete novice to Java but an experience vb.net programmer trying to ditch Microsoft.
Is it just me? - the link you sent seems daunting to a would be Java programmer.
I'm not asking anyone to write the code for me but the transition from Net to Java is not as trivial as I hoped.
I'll keep trying.
- 04-11-2009, 06:03 PM #4
Senior Member
- Join Date
- Nov 2008
- Posts
- 286
- Rep Power
- 5
The link that @mtyoung gave should be regarded as the reference manual; it assumes you know the basics of Java and Swing.
You need to know the basics of Java: how to declare variables, how to write a loop, how to put classes together etc. This part is surely quite different to VB. If you were a C# programmer, it would probably seem much closer.
Then, I'd recommend you go through at least parts of a basic Swing tutorial, such as Sun's Swing tutorial. I think many of the concepts of the library classes will be similar to .Net (I'm not a .Net programmer, but the bits I've seen seem pretty much a direct rip-off from Java; not sure how the UI classes work, though).Neil Coffey
Javamex - Java tutorials and performance info
- 04-12-2009, 01:11 PM #5
Member
- Join Date
- Apr 2009
- Posts
- 10
- Rep Power
- 0
Thanks Neil
I've got the basic of Java via Sams Teach yourself but it is not the best Sams that I have read. I'll take a look at the Swing tutorial.
- 04-12-2009, 05:19 PM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
At least search on the forum, or on the web. You can find lots of examples related to this. :)
- 04-12-2009, 05:30 PM #7
Member
- Join Date
- Apr 2009
- Posts
- 10
- Rep Power
- 0
Similar Threads
-
CheckBox Jlist items
By dropez in forum AWT / SwingReplies: 1Last Post: 03-26-2009, 07:39 PM -
different sort of items
By jrleonard in forum SWT / JFaceReplies: 0Last Post: 12-23-2008, 02:41 PM -
Creating a SWT table with 1,000,000 items
By Java Tip in forum SWTReplies: 0Last Post: 07-11-2008, 04:31 PM -
Display items in the JCombo Box
By eddy001 in forum AWT / SwingReplies: 1Last Post: 01-21-2008, 12:27 AM -
Using Enumeration to get items out of the session
By Java Tip in forum Java TipReplies: 0Last Post: 01-04-2008, 09:34 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks