File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ordering Items in JList

 
aymane chetibi
Ranch Hand
Posts: 175
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all,
I am not really a GUI designer, but these days I got to design some GUIs with JLists.
Well, My first question is what is the way used to set a JList header. for example we have 3 columns in jList, the first one is "Name", the second "Age" ....
My second question : is it possible to sort using these header items by clicking on them.


Also one question related to JPAnel, I want to display a notification in a jPanel that just appears on the button right of the screen and disapears by itself after 10 seconds. is this possible.


thanks a loooooooooooooooooooooooooooooooooooooooooooooooot guys.

regards,
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A JList doesn't have columns - you will probably want to use a JTable.

Regarding your JPanel question, I didn't understand it. I would advise to start a new thread for it and give more information.
 
aymane chetibi
Ranch Hand
Posts: 175
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot.
I did what you asked!
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic