Here I continue making the most comprehensive Java Video Tutorial ever. Today I’ll cover how to create list boxes using Java Swing.
More specifically I’ll cover JLists, DefaultListModel, using JScrollpane with JList and a whole bunch more.
Like always, the heavily commented code follows the video. Leave any questions below.
If you like videos like this share it [nttfblike]
Code from the Video
nice video as usual…
can you refer me any book for swing, anyone which covers more standalone applications..?
Thank you..
Thank you 🙂 I absolutely love this book Filthy Rich Clients. It covers how do create really awesome gui interfaces. It starts out simple and covers advanced techniques as well. I hope that helps
smart crash course with healthy knowledge.
these like tutorials acknowledge the beginners how to learn java.
I think it is better and better to teach and learn Java style……
thanks
Thank you 🙂 I thought it would be nice to create a tutorial that completely covered Java. I’m just getting started and plan to cover everything including good coding practices using design patterns
Hi, i was just wondering if you could give me some advice on which languages to learn and in what order? I already know html and css obviously…and am now attempting to master javascript 😛
next i was thinking the logical step would be Jquery and ajax…then maybe php and finally java?
Hi, That is the exact order I would learn them. Just make sure you have a firm grasp on how to make cross browser sites using CSS. Then JavaScript, JQuery and PHP & MySQL are logical next steps.
After that you need to decide what you want to use for application and mobile development. Java is a logical choice, but if you want to develop for Apple devices Objective C may be a better option. That is 100% up to you.
I hope that helps
Great! Thanks so much for your help, your website offers an entire online education, keep it up!
Thanks 🙂 The ultimate goal is to do just that. I plan on covering the core sciences anyway. I’m glad you like it
Hi Derek
I am a little confused with default list model and the jlist component. They have different methods, like the component can get the selected value, but the model cant.They are made to be used both for their different methods, or the models has the same methods but i don’t see them, because you said that the component methods are old and broken down.
And it came to my mind can you tell me what are Maps and Enumerations, and what are their uses. I think enumaration is an array of constants but i dont see the point of its use.
P.S I dont say thank you anymore because words cant explain my gratitude 😀
Goodbye, take care and keep on the excellent work!!!
You’re very welcome 🙂 A map is sort of a collection class that stores key value pairs of information. It is like an array, but instead of having index values it has a key which can be more descriptive. I talked about Arrays, ArrayLists, LinkedLists and Maps / HashMaps, which you can find here Java Video Tutorial.
An enum type is a datatype whose fields have a fixed set of constants. I’ve talked about them in other tutorials, but haven’t covered them on their own.
Thank you for bring those to my attention. I’ll cover them very soon on their own
Derek
Thanks Derek, wherever it is the best tutorial .
Thank you 🙂
I was just playing around with the JList and I noticed that it doesn’t have ActionListener.I can’t find a favoriteMovies.addActionListener(l);. Is it okay if I’ll use a MouseListener? I’m trying to make an event, when I’ll click an item, java will send me a message dialog with the chosen item.
It worked with the MouseListener. Thank you anyway. I think I understood.
Great I’m glad you got it fixed. Sorry I couldn’t help quicker.