Re: JScrollPane in Applet




Lukasz napisal(a):
All the import I use in my applet, I forgot to remove it from ShortVersion.

Why I mixed AWT with Swing? I needed a nice table to present data from
the database and since AWT does not have one, I used JTable and
JScrollPane, I didn't want to change all the code to use Swing.
Another reason is that I also tried wiht scrollPane, but a similar error
occured.
ScrollPane sp = new ScrollPane();
add(sp);

When this piece is in init(), scrollPane has scroll bars. But when
adding it outside init(), the scroll bars are not visible. Even when I
make them visible, they don't work.

Sorry for my irritating way of posting (and my English) :)

Thanks for Your help Andrew.

Finally, I made JScrollPane work inside Applet. Once again Andrew,
thanks for Your usefull tips.

.



Relevant Pages

  • Re: JScrollPane in Applet
    ... Why I mixed AWT with Swing? ... I needed a nice table to present data from the database and since AWT does not have one, I used JTable and JScrollPane, I didn't want to change all the code to use Swing. ... Another reason is that I also tried wiht scrollPane, ... But when adding it outside init, the scroll bars are not visible. ...
    (comp.lang.java.gui)
  • Re: generic table class?
    ... ScrollPane: usually encloses a JTable so that you can deal with a ... the JTable and your custom TableModel ... The idea is for Swing to repaint the ... Monitor what Swing asks for to render when you make various changes to ...
    (comp.lang.java.programmer)
  • Re: Applet Scrollbar and KeyListener
    ... Problem is now resolved i have migrate code from AWT to SWING and add ... SCROLLPANE size could be changed by an JDIALOG and component ... scrollable componant into JSCROLLPANE and not outside!!! ...
    (comp.lang.java.programmer)