• Post Reply Bookmark Topic Watch Topic
  • New Topic

Class reference  RSS feed

 
Innocent M. A
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you call/refrence a class from inside another?
Say on the click of a botton you want to pop-up a JDialog, the JDialog should in turn call a window form. :roll:
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Inoma,

Welcome to JavaRanch! We don't have too many rules around here but we do have a Naming Policy. Speficially you need to have a first and last name (look at mine for an example). Please adjust your name accordingly.

Thanks.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Innocent Agidani:
How do you call/refrence a class from inside another?
Say on the click of a botton you want to pop-up a JDialog, the JDialog should in turn call a window form. :roll:


So assuming you have something like this:



And then you might have something like this:



Is that what you are after? If not, can you be a bit more specific to your problem?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!