This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Class inheritence and GUI question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Class inheritence and GUI question" Watch "Class inheritence and GUI question" New topic
Author

Class inheritence and GUI question

Ben Flynn
Greenhorn

Joined: Sep 21, 2004
Posts: 2
Hi all. I am working on a server program that has a GUI. I created the server code in a separate class that is in herited by a thread initiated by a button in the GUI. I would like to bounce text messages back from the server class to the GUI (and display them in a JText control)- is this possible? I tried passing the GUI class in the server class' constructor, but this just creates a new instance of the GUI class- the original GUI's public functions do not perform actions on the GUI window. Is there an elegant way around this? Thanks a lot!

Ben
Ben Flynn
Greenhorn

Joined: Sep 21, 2004
Posts: 2
nevermind- i got it. Had to make the textpane protected. Thought i was doing it right . Later.
 
Have you checked out Aspose?
 
subject: Class inheritence and GUI question
 
It's not a secret anymore!