Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 17th, 2006, 11:35 PM   #11
XanFox
Newbie
 
XanFox's Avatar
 
Join Date: Oct 2006
Location: Australia - Gold Coast
Posts: 8
Rep Power: 0 XanFox is on a distinguished road
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!
XanFox is offline   Reply With Quote
Old Oct 18th, 2006, 2:22 AM   #12
Nim_
Newbie
 
Join Date: Jun 2006
Location: Secret
Posts: 8
Rep Power: 0 Nim_ is on a distinguished road
Send a message via MSN to Nim_
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 compoments

that will make the code much shorter and i think is very important thing to know. How is the exact code syntax for that?
Nim_ is offline   Reply With Quote
Old Oct 18th, 2006, 11:53 PM   #13
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
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!
ReggaetonKing is offline   Reply With Quote
Old Oct 19th, 2006, 11:32 AM   #14
Nim_
Newbie
 
Join Date: Jun 2006
Location: Secret
Posts: 8
Rep Power: 0 Nim_ is on a distinguished road
Send a message via MSN to Nim_
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?
Nim_ is offline   Reply With Quote
Old Oct 19th, 2006, 12:42 PM   #15
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
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!
ReggaetonKing is offline   Reply With Quote
Old Oct 19th, 2006, 12:46 PM   #16
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:30 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC