Hi, i have this chat system that i made, and i wanna make it with rooms.
So i want the lobby gui (A JFrame) to have some images resembling rooms
that you can click on to enter a room.
I would like them to be added incrementally, and have like a scrollpane
that scrolls down so that i can add as many as i would like. Adding them
incrementally is thus the key. How do i go about adding them dynamically
to the gui with equal spacings between them and let's say at first, 6 in
one row and potentially infinity downwards?
Yanick - 11 Jan 2005 05:30 GMT
I would use a JTable. Make your own renderer to return a component (probably
a JPanel) with what you need in it.
-Yanick
> Hi, i have this chat system that i made, and i wanna make it with rooms.
> So i want the lobby gui (A JFrame) to have some images resembling rooms
[quoted text clipped - 5 lines]
> to the gui with equal spacings between them and let's say at first, 6 in
> one row and potentially infinity downwards?