• Post Reply Bookmark Topic Watch Topic
  • New Topic

java time and date

 
joe tran
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. I am using a JCombBox. When I first open it won't let me select the first item until I have selected some other items first.

2. Also, a JComboBox doesn't seem to let me select the same item twice consecutively.

3. What are the classes to access the systems in order to obtain the date and time?

Thanks to anyone with an answer.
 
Mattias Arthursson
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The swing questions should probably be posted in the forum for that, but for Date/Time classes you should take a look at java.util.Date and java.util.Calendar.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As two thirds of the questions are to do with Swing, I'm moving this to the Swing / AWT / SWT / JFace forum...
 
George Ren
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, maybe you simply use to meet ur demand. If you want to print them in a console, just
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!