• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Very Different Problem with JScrollPane

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
passwords must contain 14 characters, a number, punctuation, a small bird, a bit of cheese and a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic