Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j/sql
In directory sc8-pr-cvs1:/tmp/cvs-serv22342/src/org/tn5250j/sql
Modified Files:
SqlWizard.java
Log Message:
Fix and update for FileTransferDialog.
Index: SqlWizard.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/sql/SqlWizard.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** SqlWizard.java 9 Jul 2003 18:55:40 -0000 1.5
--- SqlWizard.java 22 Dec 2003 14:19:54 -0000 1.6
***************
*** 29,36 ****
--- 29,38 ----
import java.awt.*;
import java.awt.event.*;
+ import java.util.Properties;
import javax.swing.*;
import com.ibm.as400.vaccess.*;
import com.ibm.as400.access.*;
import java.sql.*;
+ import org.tn5250j.My5250;
import org.tn5250j.tools.LangTool;
import org.tn5250j.tools.GUIGraphicsUtils;
***************
*** 52,55 ****
--- 54,58 ----
private String queryText;
private JTextArea queryTextArea;
+ private static Properties sessions = new Properties();
public SqlWizard(String host, String name, String password ) {
***************
*** 123,133 ****
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension frameSize = getSize();
if (frameSize.height > screenSize.height)
frameSize.height = screenSize.height;
if (frameSize.width > screenSize.width)
frameSize.width = screenSize.width;
setLocation((screenSize.width - frameSize.width) / 2,
! (screenSize.height - frameSize.height) / 2);
setVisible(true);
--- 126,139 ----
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension frameSize = getSize();
+ frameSize.height = (Integer.parseInt(My5250.sessions.getProperty("emul.height"))-100);
if (frameSize.height > screenSize.height)
frameSize.height = screenSize.height;
if (frameSize.width > screenSize.width)
frameSize.width = screenSize.width;
+
+ setSize(frameSize.width, frameSize.height);
setLocation((screenSize.width - frameSize.width) / 2,
! (screenSize.height - frameSize.height) / 3);
setVisible(true);
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.