![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Newbie
Join Date: Oct 2006
Location: Australia - Gold Coast
Posts: 8
Rep Power: 0
![]() |
Nim... are you trying to get a multi handler going ... I mean are you trying to get one method to handle the click event for all your buttons... is this what you mean?
__________________
Everything works out in the End...so if its not all worked out...your not at the end! |
|
|
|
|
|
#12 |
|
Newbie
|
Actually i wanted to make a "Start" button that when is pushed runs an algorith which it is the action of an other button. But i found a way 2 make smth like that as i told you.
Its really important for me now to make that part: for(i=1;i<=n;i++){
jButton + i.setVisible(b);
}
//n is the quantity of my button compomentsthat will make the code much shorter and i think is very important thing to know. How is the exact code syntax for that? |
|
|
|
|
|
#13 |
|
Sexy Programmer
|
Then why dont you just set that actionlistener object to the "Start" button then? Or put everything in that you want to do in a method and call it when ever you need to execute it.
And honestly, I think you should read up on some tutorials before programming GUI components.
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#14 |
|
Newbie
|
I said i have done this. Yes i know i must read some tuts. im reading one, but i read too slow.
anyone that can help me with the syntax of that code? |
|
|
|
|
|
#15 |
|
Sexy Programmer
|
If you want me to help you then describe, in plain English, what exactly you need to do. Some us some code you've written.
I have read your previous post and it seems you dont understand what I have written.
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#16 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Frankly, you aren't going to get faster instruction here than you will get by studying. The primary purpose of the forum is to give help with what you've done, and found lacking, not to short-circuit the traditional learning process.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EXECryptor software protection | Jean5 | C++ | 35 | Oct 10th, 2006 7:10 PM |
| Little help | whoawhoayoyo | Assembly | 8 | Apr 18th, 2006 7:10 PM |
| How to post a question | nnxion | C++ | 10 | Jun 3rd, 2005 11:53 AM |
| How to post a question | nnxion | C++ | 0 | Jun 3rd, 2005 8:55 AM |
| How to post a question | nnxion | C | 0 | Jun 3rd, 2005 8:55 AM |