• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calender Object

 
faisal hameed
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i take date input in text field by using calender object in java GUI.
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you tried, and what part of this process are you currently stuck on?
 
Rob Spoor
Sheriff
Pie
Posts: 20669
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you looking for? A component that allows you to select dates? If so, there are two ways to go:
1) a JSpinner with a SpinnerDateModel.
2) a third party (i.e. not provided by Sun) calendar, like JCalendar
 
faisal hameed
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose i hava a java interface with text field along with a button.When i press button,a small calender apear in GUI where i can choose date and the date set in text field.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> Suppose i hava a java interface with text field along with a button.When i press button,a small calender apear in GUI where i can choose date and the date set in text field.

OK, that's what you want, so, re-read reply #1

unless you want someone to write the code for you, in which case try rent-a-coder
 
Rob Spoor
Sheriff
Pie
Posts: 20669
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael Dunn wrote:OK, that's what you want, so, re-read reply #1

Or reply #2, option 2).

unless you want someone to write the code for you, in which case try rent-a-coder

Correct. Faisal, we are NotACodeMill.
 
faisal hameed
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am confusing from where i should start this task.
Is there any built in component in java,that can be used?
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime already answered that in his first reply in this thread.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic