• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

How this interface could be strucured

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Swing Tutorial
 
Cp Baherwani
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic