Results 1 to 6 of 6
  1. #1
    nehaa's Avatar
    nehaa is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

    Thumbs up [SOLVED] JTable and JFrame problem

    :confused:
    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.
    :)

  2. #2
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

    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 11:48 AM.

  3. #3
    nehaa's Avatar
    nehaa is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

    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.
    :)

  4. #4
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

    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

  5. #5
    nehaa's Avatar
    nehaa is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

    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

  6. #6
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

Similar Threads

  1. Help! problem with program (using JFrame)
    By linux1man in forum New To Java
    Replies: 5
    Last Post: 01-21-2009, 08:46 PM
  2. Jframe In Jtable cell
    By Clarion in forum AWT / Swing
    Replies: 4
    Last Post: 06-23-2008, 04:42 AM
  3. Replies: 2
    Last Post: 05-15-2008, 10:15 AM
  4. JFrame problem
    By vassil_zorev in forum AWT / Swing
    Replies: 1
    Last Post: 01-25-2008, 02:53 AM
  5. JFrame problem
    By saytri in forum New To Java
    Replies: 6
    Last Post: 01-11-2008, 05:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •