This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Very Different Problem with JScrollPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Very Different Problem with JScrollPane" Watch "Very Different Problem with JScrollPane" New topic

Very Different Problem with JScrollPane


Joined: Feb 07, 2001
Posts: 2
Hi alls,
Friends i am workin for a chat project. I have JEditorPane in JScrollPane to show the chat messages. Initially i have two client window for chat. Chat is routed through a server. Problem starts when one user types his message in JTextArea and send this message to server to show it to next client. The vertical scrollbar on the client(that send message) comes to bottom side(as required) but in the other clients window vertical scroll bar of JScrollPane always being shifted to the top. So he always needs to scroll to see the coming message.
I have also tried to take reference of vertical scroll bar from view of JScrollPane and set its value to the JEditorPane size, but it doesn't work.
Can anybody give me suggetion in this regard or how to add Scroll Bar to JEditorPane instead of using JScrollPane.
Don't get me started about those stupid light bulbs.
subject: Very Different Problem with JScrollPane
Similar Threads
Hide a Vertical ScrollBar of JScrollPane[very...... Urgent....}
Keeping the Scroll Bar at the top of the JScrollPane
Is there any way to bring the a Vertical Scroll Bars of the Scroll Pane at the Bottom by default???
How to add slider / knob to JScrollPane