tn5250j/src/org/tn5250j Connect.java,1.12,1.13

[email protected]
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j
In directory sc8-pr-cvs1:/tmp/cvs-serv16051

Modified Files:
	Connect.java 
Log Message:
Add Access Options tab of Connection screen for test.  It is not active just for feedback

Index: Connect.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/Connect.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** Connect.java	26 Nov 2003 15:07:27 -0000	1.12
--- Connect.java	30 Nov 2003 10:19:01 -0000	1.13
***************
*** 81,84 ****
--- 81,85 ----
  import org.tn5250j.interfaces.ConfigureFactory;
  import org.tn5250j.tools.LangTool;
+ import org.tn5250j.gui.TN5250jMultiSelectList;
  
  public class Connect
***************
*** 96,99 ****
--- 97,101 ----
  	JPanel emulOptPanel = new JPanel();
  	JPanel emptyPane = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10));
+ 	JPanel accessPanel = new JPanel();
  
  	JTable sessions = null;
***************
*** 171,174 ****
--- 173,179 ----
  		optionTabs.addTab(LangTool.getString("ss.labelOptions1"), emulOptPanel);
  
+       createAccessPanel();
+ 		optionTabs.addTab("Option Access", accessPanel);
+ 
  		// add the panels to our dialog
  		getContentPane().add(optionTabs, BorderLayout.CENTER);
***************
*** 404,413 ****
  		gbc.gridx = 0; gbc.gridy = 1;
  		gbc.anchor = GridBagConstraints.WEST;
! 		gbc.insets = new Insets(5, 27, 5, 10);		
  		interfacePanel.add(hideTabBar, gbc);
  		gbc = new GridBagConstraints();
  		gbc.gridx = 0; gbc.gridy = 2;
  		gbc.anchor = GridBagConstraints.WEST;
! 		gbc.insets = new Insets(5, 10, 10, 10);		
  		interfacePanel.add(intMDI, gbc);
  		//interfacePanel.add(new JLabel());
--- 409,418 ----
  		gbc.gridx = 0; gbc.gridy = 1;
  		gbc.anchor = GridBagConstraints.WEST;
! 		gbc.insets = new Insets(5, 27, 5, 10);
  		interfacePanel.add(hideTabBar, gbc);
  		gbc = new GridBagConstraints();
  		gbc.gridx = 0; gbc.gridy = 2;
  		gbc.anchor = GridBagConstraints.WEST;
! 		gbc.insets = new Insets(5, 10, 10, 10);
  		interfacePanel.add(intMDI, gbc);
  		//interfacePanel.add(new JLabel());
***************
*** 439,442 ****
--- 444,474 ----
  		contentPane.add(showMePanel);
  	}
+ 
+    private void createAccessPanel() {
+ 
+       TN5250jMultiSelectList sel = new TN5250jMultiSelectList();
+       Vector v = new Vector();
+       for (int x = 0;x < 40; x++) {
+ 
+          v.add("option " + x);
+ 
+       }
+ 
+       sel.setListData(v);
+ 
+       int[] indexes = {5,15,20};
+ 
+       sel.setSelectedIndices(indexes);
+       sel.setSourceColumnHeader("Active");
+       sel.setSelectionColumnHeader("In Active");
+ 
+       sel.setSourceHeader("Active");
+       sel.setSelectionHeader("In Active");
+ 		// create emulator options panel
+ 		accessPanel.setLayout(new BorderLayout());
+ 
+       accessPanel.add(sel,BorderLayout.CENTER);
+ 
+    }
  
  	private void createButtonOptions() {




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
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.