Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

JTextPane is not showing the messages when the window is in Iconified state

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when the JFrame(window) is in Iconified state and when i try to add text to JTextPane using setText().it is added to the JTextPane but it is not showing the message when i maximize the window.if the window(JFrame) is in maximized state(DeIconified state) and i try to add text then the message is added and visible in JTextPane.

How can i make the JTextPane show the messages when it is minimized.
please help me out....
thank you...

Here is my Code.



[MG Added code tags]
[ November 19, 2008: Message edited by: Maneesh Godbole ]
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jaheer,

In future, while posting code snippets, please do use code tags. I have added them for you this time. As you can see it makes the code more readable and easier to understand.

Have you added all your child components to the parent before calling the setVisible() on the frame? Most of the times, that is the cause of the problem you are describing.
 
Jaheer Abbas Syed
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Maneesh,

i have added the child components to the JFrame before calling setVisible().
this is my complete code.one thing is the following code is working in Eclipse but not in NetBeans why.run this code and set the message when the Chat Client is in Iconified(Minimized) state and DeIconify(Maximize) the ChatClient Window and see the message.Message is not displayed and if you select the area in JTextPane with mouse then the message is displaying.

This is the code for calling ClientMain1


This is the code of ClientMain1

 
Sheriff
Posts: 22649
126
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please Use One Thread Per Question. This is basically the same problem as this one. I've closed that one since this has more information.
 
LOOK! OVER THERE! (yoink) your tiny ad is now my tiny ad.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic