I am trying to make a feed-box that displays all the updates from the server to the client.On a Jframe
I placed a JScrollPane
, so that more number of feeds can be easily seen by the client.
Over the JScrollPane
, I tried to place a JLabel
and then it looks like this :
The label gets placed in the center and if I try to place a new JLabel
, though navigator window of the IDE shows, it has been placed, I cannot see it.Layout of the enclosing JFrame
has been set to free design by default. I tried changing to flow layout but that doesn't help.
Why does the JLabel
get placed in the center of the window ? Is this the correct way of showing feeds from the server to the client ?