![]() |
code help (netbeans)
Well, i've search many hours b4 posting and i found nothing usefull (im using NetBeans ide 5.0) :
1. How can i jump inside a method from an other?I dont want to use it as a fuction just jump in and run whats inside.(i want to go from a button's actions method to an other's) 2.What actions a "restart" button method need to have instead to work?(Go all over again the project) i'd be glad if you help me. ty, Nim Art |
I'm not sure if anyone else can understand that, could you re-post those questions more clearly?
>What actions a "restart" button method need to have instead to work? WTF? |
..
1.i want to run a specific method which already exists 2.i want to restart the program with a button.. is it really so hard to understand?:\ |
Can you post some code? Either your examples are really vague, or you're talking about the most basics of basics, like simply calling a method... in which case you've got a lot of learning to do.
|
Quote:
Here is the best help i can provide... don't use netbeans :D |
Quote:
|
Quote:
|
lmao!
|
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt){..}" i didnt knew how to call this method.
Finally i created a new method (private void blahblah(){..}) and cut/paste the code from the first one to the second and just called the method like that blahblah(); . Forget the 1st question i made. The 2nd one? how to restart the program?. There is smth else, more important. I want to make smth like that: for(i=0;i<=n-1;i++){ jButton + i.setVisible(b); } *n is the quantity of my buttons.. sry, english is not my mother tongue (as you see) |
OMG! #1, use code tags pleeeease! #2 actionPerformed(ActionEvent e) method is automatically called when you have set that ActionListener interface with a corresponding button and or GUI component.
Example :
//it's given that the needed packages are imported |
| All times are GMT -5. The time now is 1:09 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC