Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-30-2009, 12:03 PM
nehaa's Avatar
Member
 
Join Date: Jan 2009
Posts: 35
Rep Power: 0
nehaa is on a distinguished road
Thumbs up [SOLVED] JTable and JFrame problem

I have two problems :-

i) I want to prompt dialog box when a user exits the JFrame.

ii) I want to set date picker kind option in a column of JTable.

Kindly help me in this regard.
Thanks in advance.
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 04-30-2009, 12:27 PM
Senior Member
 
Join Date: Dec 2008
Location: Hong Kong
Posts: 473
Rep Power: 2
mtyoung is on a distinguished road
Default
1)
here are java example for window listener
http://java.sun.com/docs/books/tutor...EventDemo.java
try to read and modify it to your need

http://java.sun.com/docs/books/tutor...wlistener.html

2)
do you have any idea about the date picker?
it should may several JPanels and many JButtons with actionListener
you may also use JComboBox for fast select Month, Year, but you need to handle more stuff

Last edited by mtyoung; 04-30-2009 at 12:48 PM.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-30-2009, 02:08 PM
nehaa's Avatar
Member
 
Join Date: Jan 2009
Posts: 35
Rep Power: 0
nehaa is on a distinguished road
Thumbs up Thanks for ur valuable suggestion
I dont know anything about Date Picker.

How combo box can be used for selecting day,month and year in a single cell of JTable??

Thanks for ur concern and time.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 05-01-2009, 10:59 AM
Senior Member
 
Join Date: Dec 2008
Location: Hong Kong
Posts: 473
Rep Power: 2
mtyoung is on a distinguished road
Default
add to listen to actionlistener in table cell
when user click that table cell, there may be a JPanel, apperears under the table cell, with Date Picker functions

i think JCalendar is a good exmaple, you may download the src and study the code as reference
JCalendar Java Bean, a Java Date Chooser

remember to vist Java Platform SE 6 if needed
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 05-06-2009, 01:25 PM
nehaa's Avatar
Member
 
Join Date: Jan 2009
Posts: 35
Rep Power: 0
nehaa is on a distinguished road
Default Thanks a lot
thanks for your valuable suggestion in solving my problem

I donot know how to mark thread as SOLVED .
Please do me a favour by telling me how to mark a thread SOLVED.

Thanks a lot again.

Neha
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 05-06-2009, 05:25 PM
Senior Member
 
Join Date: Dec 2008
Location: Hong Kong
Posts: 473
Rep Power: 2
mtyoung is on a distinguished road
Default
under "POST REPLY" button
inside Thread Tools
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! problem with program (using JFrame) linux1man New To Java 5 01-21-2009 09:46 PM
Jframe In Jtable cell Clarion AWT / Swing 4 06-23-2008 05:42 AM
Jtable duplicates through Hashtable (JTable condition problem) my assignment plz help salmanpirzada1 Advanced Java 2 05-15-2008 11:15 AM
JFrame problem vassil_zorev AWT / Swing 1 01-25-2008 03:53 AM
JFrame problem saytri New To Java 6 01-11-2008 06:12 PM


All times are GMT +2. The time now is 07:19 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org