Results 1 to 2 of 2
Thread: Retaining String
- 04-05-2012, 10:24 AM #1
Senior Member
- Join Date
- Jun 2011
- Posts
- 100
- Rep Power
- 0
Retaining String
Hi again,
I wonder if there's any way to retain a string...username.
I usually put a login class before the program.
and I use
programclass.main(null) >> to open the 2nd class.
loginclass.this.dispose() >> to dispose the login class.
Problem is I can't have the username retained for the 2nd class.
I worked around it using DB as I need a login history as well (saving the value on the login n query it on the 2nd class to evaluate the value), however now I don't need history so I wonder if there's a direct way of retaining the username from the login class.
This sounds so very basic, I don't really know where I should read about this matter hence asking here.
Thanks in advance,First is to make something usable, next is to aim for perfection which means a never ending improvements.
- 04-05-2012, 10:54 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Similar Threads
-
Variable not retaining value
By MichaelT in forum New To JavaReplies: 11Last Post: 06-10-2011, 10:02 PM -
Colour increasing and retaining animation
By monica in forum Java 2DReplies: 7Last Post: 05-15-2011, 04:56 PM -
Retaining values entered by users in the installer fields when they come back to that
By salman.kagzi in forum New To JavaReplies: 0Last Post: 11-30-2010, 05:09 PM -
Retaining value of checkbox when returning back from a servlet
By sashi799 in forum Java ServletReplies: 18Last Post: 07-19-2010, 12:18 PM -
Trouble retaining transparent back color while setting opacity
By playwin2 in forum Java 2DReplies: 4Last Post: 03-26-2009, 09:42 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks