• Post Reply Bookmark Topic Watch Topic
  • New Topic

How this interface could be strucured

 
marcus don
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
how would you structure an interface like this:

http://www.ociweb.com/jnb/forecast_frame.png

Is this a simple
- JFrame with a JPanel with GridBagLayout
repeated 5 times ?

Please, consider that row number could change, I mean I can receive not five
but a larger number of Forecast (please see the picture).

Thanks,
Marcus
 
Cp Baherwani
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This could also be a JFrame containing JPanel with JScrollPane (containing JList) and JButton (close button). The list would have its rows rendered as JLabels (with icons and text to its right). The list will be scrollable when you have large number of row in the list.
 
marcus don
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chandra Prakash,
thank you for you reply.

May you plese gimme another hint?
May you please suggest me a link to a tutorial or code sample,
in order to better understand how to implement a
list would have its rows rendered as JLabels (with icons and text to its right).
?

Thanks again,
Marcus.
 
Ken Blair
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swing Tutorial
 
Cp Baherwani
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May you please suggest me a link to a tutorial or code sample,
in order to better understand how to implement


I have custom rendered JList sometime ago but donot have the code now.
Try this
http://www.google.com/search?hl=en&q=rendering+JList&btnG=Google+Search
The first result points to article on Sun's website with some examples
http://java.sun.com/developer/technicalArticles/InnerWorkings/customjlist/
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!