Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 06-08-2009
Member
 
Join Date: May 2008
Posts: 222
How to pass object to jframe

I could not find a way to reach reference of my object in action Performed method. I want to do is when the user pushes the OK button i want the Frame/Dialog to return the new Object w/ all the options the user selected. a JFrame is your main window you disabled your Jmenu and have an option of Login button and the login button calls another JDialog Class.
Reply With Quote
  #2  
Old 06-08-2009
Member
 
Join Date: Jan 2009
Posts: 163
Re: How to pass object to jframe

Now at the top of the document, before the DOCTYPE, within the php tags create two arrays * one for counties and the other one for "how did you hear about us", After you run your query, you can do something like this (I've left out the SQL code as it's our policy not to provide code unless the user has made an attempt and shows what they've done so far).
Reply With Quote
  #3  
Old 06-08-2009
Member
 
Join Date: Oct 2008
Posts: 134
Re: How to pass object to jframe

all you need is an object with a reference to both frames or both tables. That object can live in either frame or neither frame. Create an Options class that holds all the options. Create a JFrame/JDialog child class that instanciates/initializes the Options class. But basically, you need to be notified of relevant events and a reference to both frames or tables so you can programmatically react to one and update the other.
Reply With Quote
  #4  
Old 06-08-2009
Member
 
Join Date: Oct 2008
Posts: 127
Re: How to pass object to jframe

The problem is the Dialog never loads all the way do to the loop. It just becomes a gray box. If you in your MainFrame class want to refer an object then that objects scope must cover the method(s) where you want to reference the object. Any objects interested in the login status of the Adminstrator register themself at that object and change their state accordingly when they receive an event.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to pass object to jframe"
Thread Thread Starter Forum Replies Last Post
Getting HP AIO Device object server register class object failed message on my system Donoho Hardware Peripherals 6 06-06-2011 01:34 AM
Scope of Object or variable in Object oriented Programming Languages Dėfrim Software Development 3 08-01-2011 06:20 AM
Network Diagram - Configure to show Forward Pass/Backward Pass m3lyssa Microsoft Project 9 30-08-2010 04:57 PM
Pass JFrame to actionlistener Freeza 2 Software Development 5 23-08-2010 06:30 PM
What is difference between pass by value & pass by reference in java? Baran Software Development 4 25-02-2009 07:15 PM


All times are GMT +5.5. The time now is 11:06 PM.