Steve Kiernan

Greenhorn
+ Follow
since Nov 07, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Steve Kiernan

I'm trying to use a table to display some data that a user enters. I have a set number of columns but,I do not want to have set nuber of rows. The data in each row will be different everytime. I would like the rows to be added as the user selects enter. How can I construct a tablemodel to accept this.
22 years ago
Fantastic, got it, Thanks

Originally posted by Manfred Leonhardt:
[B]Hi Steve,
I usually use the action command to figure out which is set. You can do something like the code below.

Regards,
Manfred.[/B]


22 years ago
I need some guidance in figuring out this little problem. I have a Scrollable JTable which needs to obtain data from a GUI that I've created. The GUI contains three different groups of checkbox's. I can't figure out what method to use to get the selected checkbox's in each group. I've tried using getSelection() with no avail. Please any examples or tips would be greatly appreciated.
22 years ago
Does anyone have any ideas on what might be the best way to print out results from a GUI. Heres my idea, Will it work? if so where do I start.
I've built this GUI using swing components. I want to take the info from the checkbox's and textfields and be able to put them into some sort of printable form when the "Print" button is clicked. I have an html form that would be perfect. Is this possible or is there a better way.
22 years ago

Originally posted by Kris Nelson:
The way I have always done it is to create two java.util.Date objects using the different times. Using each Date object, call the object's getTime() which returns a long value of the number of milliseconds January 1, 1970, 00:00:00 GMT (a.k.a epoch). If you don't care about the dates and just worrying about the times, make the Date objects the same day. Then, simply subtract one long from the other to get the number of milliseconds between them. I think you can figure out how to convert milliseconds into hh:mm:ss etc.


Sweet!! Thanks man, I knew it had to be simple
22 years ago
I am trying to figure out how to take a String "10:23" and a String "11:30" and add the total number of minutes between these two times. ex 67 minutes
These Strings are actually on JLabels
Any help will be greatly appreciated
22 years ago