This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing" Watch "Swing" New topic
Author

Swing

KarthikeyanBala Bala
Greenhorn

Joined: Apr 24, 2003
Posts: 3
How to add jscrollpane to jtextpane in an applet. actually, i'm using more jpanels to display diff, panels at diff time & i need to have a jtextpane in that panel which has scrollbar. this is working fine with JFrame, but not with applet, can anyone help to solve this. if i add the scrollpane to that panel, there is no display(but not in the case of JFrame).
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8833
    
    7

First, what browser are you using? Internet Explorer's Java version is primitive and does not have Swing.
Second, does your Applet extend java.applet.Applet or javax.swing.JApplet? I know there are issues mixing the "old" gui classes and the "new" Swing classes.
Third, open the Java Console and look for an exception. If you have a later JVM and a Windows system, you can click on the coffee cup in the system tray and get a menu. The option for the Java Console is on that menu.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
 
subject: Swing
 
Similar Threads
"Popping" an applet out of the page
Convert JApplet to application
Swing
how to add background image to applet
Regarding java.awt.TextArea