I had asked down below about implementing scrolling text, like a stock ticker, in an applet. It was suggested that I could create a JPanel, get the graphics, use graphics.drawString in a loop to print the text. Then I could override the paint/paint component to print the background color over the previous text.
While implementing this, I ran into a problem. I'm pretty new to java so forgive me if this is a very basic question. When I used a regular JPanel, it would at least appear at the top of my window(with buttons under it, like it is supposed to. However, when I make the custom JPanel class, to override, it starts placing my JLabel on top of the buttons, as though it disregards the flow layout manager. Can anyone tell me what I'm doing wrong? Thanks.
While implementing this, I ran into a problem. I'm pretty new to java so forgive me if this is a very basic question. When I used a regular JPanel, it would at least appear at the top of my window(with buttons under it, like it is supposed to. However, when I make the custom JPanel class, to override, it starts placing my JLabel on top of the buttons, as though it disregards the flow layout manager. Can anyone tell me what I'm doing wrong? Thanks.