craftleft.gif (3002 bytes)QuickTable
Home | API | Tutorial | Download | Support | Contact topblack.gif (108 bytes)


QuickTable User Cp  |  Register  |  Members  |  Search  |  Help
    |- QuickTable Discussion Forums > General QuickTable Support/Help Post New Topic   Post A Reply
Quicktable in modal dialog printer friendly version
next newest post | next oldest post
Author Messages
rbocquier
Unregistered
Edit or delete this message Reply w/Quote
Posted Wednesday, March 29, 2006 @ 09:17:36  

Hi,

it seems that's when you insert a QuickTable component inside a modal dialog, the date picker doesn't work properly anymore.
The picker shows up, but nothing can be done with it.

Thanks,
Robert

Admin
Board Owner

Gender: Unspecified
Location:
Registered: Jul 2003
Status: Offline
Posts: 9

Click here to see the profile for Admin Send email to Admin Send private message to Admin Find more posts by Admin Edit or delete this message Reply w/Quote
Posted Wednesday, March 29, 2006 @ 11:48:22  

We will look into this.
Admin
Board Owner

Gender: Unspecified
Location:
Registered: Jul 2003
Status: Offline
Posts: 9

Click here to see the profile for Admin Send email to Admin Send private message to Admin Find more posts by Admin Edit or delete this message Reply w/Quote
Posted Sunday, April 2, 2006 @ 01:02:15  

I tried the following sample and date picker works fine. Could you reproduce the problem in this code?
Code:

import java.awt.BorderLayout;

import javax.swing.JDialog;
import javax.swing.JFrame;
import quick.dbtable.*;

public class TestDialog
{

public static void main(String[] args)
{

JFrame parentFrame = new JFrame();
parentFrame.setSize(500, 150);

// Display the parent frame
parentFrame.setVisible(true);

// Create a dialog that will display the progress.
final JDialog dlg = new JDialog(parentFrame, "QuickTable test", true);
DBTable dpb = new DBTable();
dpb.setSelectSql("SELECT Order_Number,Company_Name,Amount,Payment_Type,Paid,In_Stock,Delivery_Type,Status, Client_IP,Invoice_Date from Customer_order");
try
{
//set database properties
dpb.connectDatabase("sun.jdbc.odbc.JdbcOdbcDriver",
"jdbc:odbc:quicktabledemo",
"" ,"");
dpb.refresh();
dpb.setEditable(true);
}
catch(Exception ex)
{
ex.printStackTrace();
}

dlg.getContentPane().setLayout(new BorderLayout());
dlg.getContentPane().add(BorderLayout.CENTER, dpb);
dlg.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
dlg.setSize(500, 300);
dlg.setLocationRelativeTo(parentFrame);
dlg.show();
}
}

rbocquier
Private

Gender: Unspecified
Location:
Registered: Mar 2006
Status: Offline
Posts: 2

Click here to see the profile for rbocquier Send email to rbocquier Send private message to rbocquier Find more posts by rbocquier Edit or delete this message Reply w/Quote
Posted Monday, April 3, 2006 @ 03:43:03  

I have tried your code, and just as is, it's not working on my computer. But it works as soon as I set the modal flag to false in the JDialog constructor.

Here is some info about my configuration (please let me know if you need something else) :
OS : Windows XP SP-2
Locale : French
JRE : 1.5.0_05-b05
IDE : Eclipse 3.1.1
QuickTable version : 2.0.5 full version

Thanks,
Robert

P.S. This is not a severe issue for me, as I could set my app to use non-modal dialog

Admin
Board Owner

Gender: Unspecified
Location:
Registered: Jul 2003
Status: Offline
Posts: 9

Click here to see the profile for Admin Send email to Admin Send private message to Admin Find more posts by Admin Edit or delete this message Reply w/Quote
Posted Sunday, April 16, 2006 @ 22:36:00  

Please download the latest version, we have added a fix for this problem.
Post New Topic   Post A Reply Jump to:
Contact Us | QuickTable - A Java DBGrid | Privacy Policy All times are GMT -5 Hours.
Welcome to QuickTable Forums, Guest!  
Login
Username :
Password :
In order to fully utilize the abilities of this board, you are required to register as a member. Registration is free, and allows you to do lots of things including turning on or off certain features of this board. Register now!
Powered by CuteCast v2.0 BETA 2
Copyright © 2001-2003 ArtsCore Studios