wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes how to do this with JList ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to do this with JList ?" Watch "how to do this with JList ?" New topic
Author

how to do this with JList ?

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 688

i have seen application's where people have used jlist or similar thing to present the information instead jtable
but the strange thing was , in that the jlist has a column name along with data ir rows
how to achieve such look ?
i have searched the java tutorial but didn't find what i was looking for


The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Read the API for JScrollPane. The sketch should give you an idea, but if it still doesn't click follow the link to the tutorial on How to Use Scroll Panes.


luck, db
There are no new questions, but there may be new answers.
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2152
    
    7
in that the jlist has a column name along with data ir rows how to achieve such look ?


Sounds like a single column JTable to me. At least this is the easiest way to do this.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to do this with JList ?
 
Similar Threads
Single interval selection in two lists
error linking the JRadio button with the JList
Capture "part" of a component to Image
help needed understanding code.
Adding elements in a JList