Results 1 to 6 of 6
- 12-14-2009, 06:58 PM #1
Member
- Join Date
- Oct 2009
- Posts
- 48
- Rep Power
- 0
A problem with JScrollBar and the Jbutton

In JscrollBar i can change the date value by the integrated buttons(1). This button increase or reduce the value of day of month by 1. I placed on my form another two buttons(2).this is a code described those behavior :
By this button i change a hour value by 1 up or down.But after i done it (change the hour value) i can not change the date value by the button 1 !!!.I press the upper-button on jscrollbar and it do nothing! Thats the problem?Java Code:SpinnerDateModel model = (SpinnerDateModel)jSpinner1.getModel(); Calendar calendar = Calendar.getInstance(); java.util.Date date=model.getDate(); calendar.setTime(date); calendar.add(Calendar.HOUR, -1); java.util.Date initDate=calendar.getTime(); java.util.Date earliestDate=calendar.getTime(); java.util.Date latestDate=calendar.getTime(); model = new SpinnerDateModel(initDate,earliestDate,latestDate, Calendar.YEAR); jSpinner1.setModel(model);
- 12-14-2009, 10:06 PM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 294
- Rep Power
- 0
Can we see how you change your current time?
+ It might be because ur running vista, then u must run the IDE with admin power to give it authorithy to adjust such settings on your computer.
- 12-15-2009, 03:32 PM #3
Member
- Join Date
- Oct 2009
- Posts
- 48
- Rep Power
- 0
- 12-18-2009, 04:49 PM #4
Member
- Join Date
- Oct 2009
- Posts
- 48
- Rep Power
- 0
The problem is still appear.
- 12-19-2009, 10:07 AM #5
Member
- Join Date
- Oct 2009
- Posts
- 48
- Rep Power
- 0
Sorry but i can not resolve this problem still.. This is my project. I ask somebody to help me
Скачать IV.rar с WebFile.RU
- 12-19-2009, 09:17 PM #6
Member
- Join Date
- Oct 2009
- Posts
- 48
- Rep Power
- 0
Similar Threads
-
JScrollBar
By solomon_13000 in forum AWT / SwingReplies: 1Last Post: 07-01-2009, 07:46 AM -
Problem on adding JButton on JPanel NEED HELP
By boisk in forum AWT / SwingReplies: 15Last Post: 03-15-2009, 02:27 PM -
JButton Problem
By wassim in forum AWT / SwingReplies: 6Last Post: 02-18-2009, 10:29 PM -
problem with jscrollbar in my applet
By leonard in forum Java AppletsReplies: 1Last Post: 08-03-2007, 11:39 PM -
Problem with JButton
By Marcus in forum AWT / SwingReplies: 1Last Post: 07-05-2007, 05:56 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks