• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Class inheritence and GUI question

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
nevermind- i got it. Had to make the textpane protected. Thought i was doing it right . Later.
 
reply
    Bookmark Topic Watch Topic
  • New Topic