Results 1 to 3 of 3
- 05-16-2008, 02:42 PM #1
Member
- Join Date
- May 2008
- Posts
- 1
- Rep Power
- 0
- 05-16-2008, 04:56 PM #2
you cannot!!!
here is an alternative,
you can initialize first a variable with setter and getter method.... before that actionPerformed ends its task, call the setter method and store that string in that variable...
Instead of waiting the expected value from a void type(which is impossible) just call the getter method after the actionPerformed invoked....freedom exists in the world of ideas
- 05-17-2008, 05:32 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
In most cases the way sukatoa says is used. It's much easy. Better take care of defining variable in much secure way.
Similar Threads
-
Issue with Buttons and ActionPerformed
By Deathmonger in forum Advanced JavaReplies: 1Last Post: 04-17-2008, 08:47 AM -
Help with actionPerformed Statements
By wco5002 in forum New To JavaReplies: 8Last Post: 03-26-2008, 04:02 AM -
Returning a string (Partly Bold)
By TampaTechGuy in forum New To JavaReplies: 3Last Post: 02-03-2008, 09:54 AM -
actionPerformed problem
By tomitzel in forum New To JavaReplies: 1Last Post: 01-08-2008, 06:10 PM -
Problems with jButton ActionPerformed
By susan in forum AWT / SwingReplies: 3Last Post: 08-07-2007, 04:19 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks