I have 2 forms in separate class files. I want hit button on formA and open formB (and closeA to). How? second. I want for todays date to be displayed in Jtext or Jlabel on form, how do I get date? Do i need format date too? thanks, mali
Wilfried LAURENT
Ranch Hand
Joined: Jul 13, 2001
Posts: 269
posted
0
For question n�1, what you can to do is to define a Controller class. This class should be able to listen to the event on ButtonA and ButtonB. In the callback method from ButtonA, open the formB. The pseudocode may look like:
What happens with this code is that when a click on ButtonA is performed, then an ActionEvent is created and the actionPerformed() method of the internal Controller ButtonAListener class is activated. In this method, you should put your code for opening FormB } W. }
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.