List of usage examples for javax.swing JPasswordField JPasswordField
public JPasswordField()
JPasswordField
, with a default document, null
starting text string, and 0 column width. From source file:org.sonar.ide.ui.ServerPanel.java
public ServerPanel() { setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); host = new JTextField(); username = new JTextField(); password = new JPasswordField(); useGlobalProxyConfiguration = new JCheckBox("Use global network connections preferences", true); proxyHost = new JTextField(); proxyPort = new JTextField(); proxyUsername = new JTextField(); proxyPassword = new JPasswordField(); // TODO Godin: enable in future useGlobalProxyConfiguration.setEnabled(false); proxyHost.setEnabled(false);/* w w w .j a va2 s . co m*/ proxyPort.setEnabled(false); proxyUsername.setEnabled(false); proxyPassword.setEnabled(false); final JButton testConnectionButton = new JButton("Test connection"); testConnectionButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { // TODO throw new NotImplementedException(); } }); DefaultFormBuilder formBuilder = new DefaultFormBuilder(new FormLayout("")); formBuilder.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); formBuilder.appendColumn("right:pref"); formBuilder.appendColumn("3dlu"); formBuilder.appendColumn("fill:p:g"); formBuilder.append("Sonar server URL:", host); formBuilder.append("Username:", username); formBuilder.append("Password:", password); formBuilder.appendSeparator("Proxy server configuration"); formBuilder.append("", useGlobalProxyConfiguration); formBuilder.append("Host:", proxyHost); formBuilder.append("Port:", proxyPort); // formBuilder.append("Enable proxy authentication", new JCheckBox()); formBuilder.append("Username:", proxyUsername); formBuilder.append("Password:", proxyPassword); formBuilder.append(testConnectionButton); add(formBuilder.getPanel()); }
From source file:org.springframework.richclient.factory.DefaultComponentFactory.java
public JPasswordField createPasswordField() { JPasswordField passwordField = new JPasswordField(); configureTextField(passwordField); return passwordField; }
From source file:org.tinymediamanager.ui.settings.GeneralSettingsPanel.java
/** * Instantiates a new general settings panel. *///from w w w. j a va2 s . c om public GeneralSettingsPanel() { setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.RELATED_GAP_COLSPEC, ColumnSpec.decode("left:max(200px;min):grow"), FormSpecs.RELATED_GAP_COLSPEC, ColumnSpec.decode("max(200px;default):grow"), FormSpecs.RELATED_GAP_COLSPEC, }, new RowSpec[] { FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, })); JPanel panelUI = new JPanel(); panelUI.setBorder(new TitledBorder(null, BUNDLE.getString("Settings.ui"), TitledBorder.LEADING, //$NON-NLS-1$ TitledBorder.TOP, null, null)); add(panelUI, "2, 2, 3, 1, fill, fill"); panelUI.setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, ColumnSpec.decode("100dlu"), FormSpecs.RELATED_GAP_COLSPEC, ColumnSpec.decode("default:grow"), FormSpecs.UNRELATED_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.UNRELATED_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, ColumnSpec.decode("default:grow"), FormSpecs.RELATED_GAP_COLSPEC, }, new RowSpec[] { FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, })); LocaleComboBox actualLocale = null; // cbLanguage = new JComboBox(Utils.getLanguages().toArray()); Locale settingsLang = Utils.getLocaleFromLanguage(Globals.settings.getLanguage()); for (Locale l : Utils.getLanguages()) { LocaleComboBox localeComboBox = new LocaleComboBox(l); locales.add(localeComboBox); if (l.equals(settingsLang)) { actualLocale = localeComboBox; } } JLabel lblUiLanguage = new JLabel(BUNDLE.getString("Settings.language")); panelUI.add(lblUiLanguage, "2, 2"); cbLanguage = new JComboBox(locales.toArray()); panelUI.add(cbLanguage, "4, 2"); if (actualLocale != null) { cbLanguage.setSelectedItem(actualLocale); } JSeparator separator = new JSeparator(); separator.setOrientation(SwingConstants.VERTICAL); panelUI.add(separator, "8, 2, 1, 7"); JLabel lblFontFamily = new JLabel(BUNDLE.getString("Settings.fontfamily")); //$NON-NLS-1$ panelUI.add(lblFontFamily, "10, 2, right, default"); GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); cbFontFamily = new JComboBox(env.getAvailableFontFamilyNames()); cbFontFamily.setSelectedItem(Globals.settings.getFontFamily()); int index = cbFontFamily.getSelectedIndex(); if (index < 0) { cbFontFamily.setSelectedItem("Dialog"); index = cbFontFamily.getSelectedIndex(); } if (index < 0) { cbFontFamily.setSelectedIndex(0); } panelUI.add(cbFontFamily, "12, 2, fill, default"); JLabel lblFontSize = new JLabel(BUNDLE.getString("Settings.fontsize")); //$NON-NLS-1$ panelUI.add(lblFontSize, "10, 4, right, default"); cbFontSize = new JComboBox(DEFAULT_FONT_SIZES); cbFontSize.setSelectedItem(Globals.settings.getFontSize()); index = cbFontSize.getSelectedIndex(); if (index < 0) { cbFontSize.setSelectedIndex(0); } panelUI.add(cbFontSize, "12, 4, fill, default"); JPanel panel = new JPanel(); panelUI.add(panel, "2, 6, 5, 1, fill, fill"); panel.setLayout(new FormLayout(new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, ColumnSpec.decode("100dlu"), FormSpecs.RELATED_GAP_COLSPEC, ColumnSpec.decode("default:grow"), }, new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LABEL_COMPONENT_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, })); JLabel lblMissingTranslation = new JLabel(BUNDLE.getString("tmm.helptranslate")); panel.add(lblMissingTranslation, "1, 1, 5, 1"); lblLinkTransifex = new LinkLabel("https://www.transifex.com/projects/p/tinymediamanager/"); panel.add(lblLinkTransifex, "1, 3, 5, 1"); lblLinkTransifex.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { try { TmmUIHelper.browseUrl(lblLinkTransifex.getNormalText()); } catch (Exception e) { LOGGER.error(e.getMessage()); MessageManager.instance .pushMessage(new Message(MessageLevel.ERROR, lblLinkTransifex.getNormalText(), "message.erroropenurl", new String[] { ":", e.getLocalizedMessage() }));//$NON-NLS-2$ } } }); tpFontHint = new JTextPane(); tpFontHint.setOpaque(false); TmmFontHelper.changeFont(tpFontHint, 0.833); tpFontHint.setText(BUNDLE.getString("Settings.fonts.hint")); //$NON-NLS-1$ panelUI.add(tpFontHint, "10, 6, 5, 1"); lblLanguageHint = new JLabel(""); TmmFontHelper.changeFont(lblLanguageHint, Font.BOLD); panelUI.add(lblLanguageHint, "2, 8, 5, 1"); lblFontChangeHint = new JLabel(""); TmmFontHelper.changeFont(lblFontChangeHint, Font.BOLD); panelUI.add(lblFontChangeHint, "10, 8, 5, 1"); JPanel panelMemory = new JPanel(); panelMemory.setBorder(new TitledBorder(null, BUNDLE.getString("Settings.memoryborder"), //$NON-NLS-1$ TitledBorder.LEADING, TitledBorder.TOP, null, null)); add(panelMemory, "2, 4, fill, fill"); panelMemory.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.RELATED_GAP_COLSPEC, ColumnSpec.decode("250px:grow(4)"), FormFactory.RELATED_GAP_COLSPEC, ColumnSpec.decode("max(20dlu;default)"), ColumnSpec.decode("left:default:grow(5)"), }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.RELATED_GAP_ROWSPEC, RowSpec.decode("default:grow"), FormFactory.RELATED_GAP_ROWSPEC, })); JLabel lblMemoryT = new JLabel(BUNDLE.getString("Settings.memory")); //$NON-NLS-1$ panelMemory.add(lblMemoryT, "2, 1"); sliderMemory = new JSlider(); sliderMemory.setPaintLabels(true); sliderMemory.setPaintTicks(true); sliderMemory.setSnapToTicks(true); sliderMemory.setMajorTickSpacing(512); sliderMemory.setMinorTickSpacing(128); sliderMemory.setMinimum(256); sliderMemory.setMaximum(1536); sliderMemory.setValue(512); panelMemory.add(sliderMemory, "4, 1, fill, default"); lblMemory = new JLabel("512"); //$NON-NLS-1$ panelMemory.add(lblMemory, "6, 1, right, default"); JLabel lblMb = new JLabel("MB"); panelMemory.add(lblMb, "7, 1, left, default"); tpMemoryHint = new JTextPane(); tpMemoryHint.setOpaque(false); tpMemoryHint.setText(BUNDLE.getString("Settings.memory.hint")); //$NON-NLS-1$ TmmFontHelper.changeFont(tpMemoryHint, 0.833); panelMemory.add(tpMemoryHint, "2, 3, 6, 1, fill, fill"); JPanel panelProxySettings = new JPanel(); panelProxySettings.setBorder(new TitledBorder(null, BUNDLE.getString("Settings.proxy"), //$NON-NLS-1$ TitledBorder.LEADING, TitledBorder.TOP, null, null)); add(panelProxySettings, "4, 4, fill, fill"); panelProxySettings.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.RELATED_GAP_COLSPEC, ColumnSpec.decode("default:grow"), }, new RowSpec[] { FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.RELATED_GAP_ROWSPEC, })); JLabel lblProxyHost = new JLabel(BUNDLE.getString("Settings.proxyhost")); //$NON-NLS-1$ panelProxySettings.add(lblProxyHost, "2, 2, right, default"); tfProxyHost = new JTextField(); lblProxyHost.setLabelFor(tfProxyHost); panelProxySettings.add(tfProxyHost, "4, 2, fill, default"); tfProxyHost.setColumns(10); JLabel lblProxyPort = new JLabel(BUNDLE.getString("Settings.proxyport")); //$NON-NLS-1$ panelProxySettings.add(lblProxyPort, "2, 4, right, default"); tfProxyPort = new JTextField(); lblProxyPort.setLabelFor(tfProxyPort); panelProxySettings.add(tfProxyPort, "4, 4, fill, default"); tfProxyPort.setColumns(10); JLabel lblProxyUser = new JLabel(BUNDLE.getString("Settings.proxyuser")); //$NON-NLS-1$ panelProxySettings.add(lblProxyUser, "2, 6, right, default"); tfProxyUsername = new JTextField(); lblProxyUser.setLabelFor(tfProxyUsername); panelProxySettings.add(tfProxyUsername, "4, 6, fill, default"); tfProxyUsername.setColumns(10); JLabel lblProxyPassword = new JLabel(BUNDLE.getString("Settings.proxypass")); //$NON-NLS-1$ panelProxySettings.add(lblProxyPassword, "2, 8, right, default"); tfProxyPassword = new JPasswordField(); lblProxyPassword.setLabelFor(tfProxyPassword); panelProxySettings.add(tfProxyPassword, "4, 8, fill, default"); JPanel panelMediaPlayer = new JPanel(); panelMediaPlayer.setBorder( new TitledBorder(null, "MediaPlayer", TitledBorder.LEADING, TitledBorder.TOP, null, null)); add(panelMediaPlayer, "2, 6, fill, fill"); panelMediaPlayer.setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.RELATED_GAP_COLSPEC, ColumnSpec.decode("default:grow"), FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, }, new RowSpec[] { FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, })); tpMediaPlayer = new JTextPane(); tpMediaPlayer.setOpaque(false); TmmFontHelper.changeFont(tpMediaPlayer, 0.833); tpMediaPlayer.setText(BUNDLE.getString("Settings.mediaplayer.hint")); //$NON-NLS-1$ panelMediaPlayer.add(tpMediaPlayer, "2, 2, 3, 1, fill, fill"); tfMediaPlayer = new JTextField(); panelMediaPlayer.add(tfMediaPlayer, "2, 4, fill, default"); tfMediaPlayer.setColumns(10); btnSearchMediaPlayer = new JButton(BUNDLE.getString("Button.chooseplayer")); //$NON-NLS-1$ btnSearchMediaPlayer.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { Path file = TmmUIHelper.selectFile(BUNDLE.getString("Button.chooseplayer")); //$NON-NLS-1$ if (file != null && Utils.isRegularFile(file) || Platform.isMac()) { tfMediaPlayer.setText(file.toAbsolutePath().toString()); } } }); panelMediaPlayer.add(btnSearchMediaPlayer, "4, 4"); JPanel panelCache = new JPanel(); panelCache.setBorder(new TitledBorder(null, BUNDLE.getString("Settings.cache"), TitledBorder.LEADING, //$NON-NLS-1$ TitledBorder.TOP, null, null)); add(panelCache, "4, 6, fill, fill"); panelCache.setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, ColumnSpec.decode("default:grow"), FormSpecs.RELATED_GAP_COLSPEC, }, new RowSpec[] { FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, })); chckbxImageCache = new JCheckBox(BUNDLE.getString("Settings.imagecache"));//$NON-NLS-1$ panelCache.add(chckbxImageCache, "2, 2, 3, 1"); JLabel lblImageCacheQuality = new JLabel(BUNDLE.getString("Settings.imagecachetype"));//$NON-NLS-1$ panelCache.add(lblImageCacheQuality, "2, 4, right, default"); cbImageCacheQuality = new JComboBox(ImageCache.CacheType.values()); panelCache.add(cbImageCacheQuality, "4, 4, fill, default"); JPanel panelAnalytics = new JPanel(); panelAnalytics.setBorder(new TitledBorder(null, BUNDLE.getString("Settings.analytics.border"), //$NON-NLS-1$ TitledBorder.LEADING, TitledBorder.TOP, null, null)); add(panelAnalytics, "2, 8, fill, fill"); panelAnalytics.setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.RELATED_GAP_COLSPEC, ColumnSpec.decode("default:grow"), FormSpecs.RELATED_GAP_COLSPEC, }, new RowSpec[] { FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, })); chckbxAnalytics = new JCheckBox(BUNDLE.getString("Settings.analytics"));//$NON-NLS-1$ panelAnalytics.add(chckbxAnalytics, "2, 2"); JTextPane tpAnalyticsDescription = new JTextPane(); tpAnalyticsDescription.setText(BUNDLE.getString("Settings.analytics.desc"));//$NON-NLS-1$ tpAnalyticsDescription.setOpaque(false); panelAnalytics.add(tpAnalyticsDescription, "2, 4, fill, fill"); JPanel panelMisc = new JPanel(); panelMisc.setBorder(new TitledBorder(null, BUNDLE.getString("Settings.misc"), TitledBorder.LEADING, //$NON-NLS-1$ TitledBorder.TOP, null, null)); add(panelMisc, "4, 8, fill, fill"); panelMisc.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.RELATED_GAP_COLSPEC, ColumnSpec.decode("default:grow"), FormFactory.RELATED_GAP_COLSPEC, }, new RowSpec[] { FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.RELATED_GAP_ROWSPEC, })); chckbxDeleteTrash = new JCheckBox(BUNDLE.getString("Settings.deletetrash")); panelMisc.add(chckbxDeleteTrash, "2, 2, 3, 1"); initDataBindings(); initMemorySlider(); // listen to changes of the combo box ItemListener listener = new ItemListener() { public void itemStateChanged(ItemEvent e) { checkChanges(); } }; cbLanguage.addItemListener(listener); cbFontSize.addItemListener(listener); cbFontFamily.addItemListener(listener); }
From source file:org.wso2.appserver.sample.flickr.client.FlickrServiceFrame.java
public void populateOperationPane() { GridBagConstraints gbc;/*w ww . jav a 2 s.c o m*/ final JPanel panel10 = new JPanel(); panel10.setLayout(new GridBagLayout()); tabbedPane1.addTab("Photos", panel10); photosOperationPane = new JTabbedPane(); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.fill = GridBagConstraints.BOTH; panel10.add(photosOperationPane, gbc); final JPanel panel11 = new JPanel(); panel11.setLayout(new GridBagLayout()); photosOperationPane.addTab("GetInfo", panel11); txtPhotosGetInfoPhotoID = new JTextField(); txtPhotosGetInfoPhotoID.setMaximumSize(new Dimension(200, 25)); txtPhotosGetInfoPhotoID.setMinimumSize(new Dimension(200, 25)); txtPhotosGetInfoPhotoID.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 25, 0); panel11.add(txtPhotosGetInfoPhotoID, gbc); final JLabel label12 = new JLabel(); label12.setFont(new Font(label12.getFont().getName(), Font.BOLD, label12.getFont().getSize())); label12.setHorizontalAlignment(4); label12.setMaximumSize(new Dimension(400, 25)); label12.setMinimumSize(new Dimension(400, 25)); label12.setPreferredSize(new Dimension(400, 25)); label12.setText("Photo ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 25, 0); panel11.add(label12, gbc); txtPhotosGetInfoSecret = new JTextField(); txtPhotosGetInfoSecret.setMaximumSize(new Dimension(200, 25)); txtPhotosGetInfoSecret.setMinimumSize(new Dimension(200, 25)); txtPhotosGetInfoSecret.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 0, 0); panel11.add(txtPhotosGetInfoSecret, gbc); final JLabel label13 = new JLabel(); label13.setHorizontalAlignment(4); label13.setMaximumSize(new Dimension(400, 25)); label13.setMinimumSize(new Dimension(400, 25)); label13.setPreferredSize(new Dimension(400, 25)); label13.setText("Secret : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; panel11.add(label13, gbc); photosGetInfoInvoke = new JButton(); photosGetInfoInvoke.setFont(new Font(photosGetInfoInvoke.getFont().getName(), Font.BOLD, photosGetInfoInvoke.getFont().getSize())); photosGetInfoInvoke.setLabel("Invoke"); photosGetInfoInvoke.setMaximumSize(new Dimension(100, 30)); photosGetInfoInvoke.setMinimumSize(new Dimension(100, 30)); photosGetInfoInvoke.setPreferredSize(new Dimension(100, 30)); photosGetInfoInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.weightx = 1.0; gbc.insets = new Insets(25, 0, 50, 0); panel11.add(photosGetInfoInvoke, gbc); final JScrollPane scrollPane7 = new JScrollPane(); scrollPane7.setMaximumSize(new Dimension(550, 225)); scrollPane7.setMinimumSize(new Dimension(550, 225)); scrollPane7.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; panel11.add(scrollPane7, gbc); photosGetInfoOutput = new JTextArea(); photosGetInfoOutput.setEditable(false); scrollPane7.setViewportView(photosGetInfoOutput); final JLabel label14 = new JLabel(); label14.setFont(new Font(label14.getFont().getName(), Font.BOLD, label14.getFont().getSize())); label14.setHorizontalAlignment(0); label14.setMaximumSize(new Dimension(600, 50)); label14.setMinimumSize(new Dimension(600, 50)); label14.setPreferredSize(new Dimension(600, 50)); label14.setText("Get information about a photo. The calling user must have permission to view the photo."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel11.add(label14, gbc); final JPanel panel12 = new JPanel(); panel12.setLayout(new GridBagLayout()); photosOperationPane.addTab("AddTags", panel12); final JLabel label15 = new JLabel(); label15.setFont(new Font(label15.getFont().getName(), Font.BOLD, label15.getFont().getSize())); label15.setHorizontalAlignment(0); label15.setMaximumSize(new Dimension(600, 50)); label15.setMinimumSize(new Dimension(600, 50)); label15.setPreferredSize(new Dimension(600, 50)); label15.setText("Add tags to a photo."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel12.add(label15, gbc); final JLabel label16 = new JLabel(); label16.setFont(new Font(label16.getFont().getName(), Font.BOLD, label16.getFont().getSize())); label16.setHorizontalAlignment(4); label16.setMaximumSize(new Dimension(400, 25)); label16.setMinimumSize(new Dimension(400, 25)); label16.setPreferredSize(new Dimension(400, 25)); label16.setText("Photo ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 25, 0); panel12.add(label16, gbc); txtPhotosAddTagsPhotoID = new JTextField(); txtPhotosAddTagsPhotoID.setMaximumSize(new Dimension(200, 25)); txtPhotosAddTagsPhotoID.setMinimumSize(new Dimension(200, 25)); txtPhotosAddTagsPhotoID.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 25, 0); panel12.add(txtPhotosAddTagsPhotoID, gbc); final JLabel label17 = new JLabel(); label17.setFont(new Font(label17.getFont().getName(), Font.BOLD, label17.getFont().getSize())); label17.setHorizontalAlignment(4); label17.setMaximumSize(new Dimension(400, 25)); label17.setMinimumSize(new Dimension(400, 25)); label17.setPreferredSize(new Dimension(400, 25)); label17.setText("Tags : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.EAST; panel12.add(label17, gbc); txtAddTags = new JTextField(); txtAddTags.setMaximumSize(new Dimension(200, 25)); txtAddTags.setMinimumSize(new Dimension(200, 25)); txtAddTags.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 0, 0); panel12.add(txtAddTags, gbc); final JScrollPane scrollPane8 = new JScrollPane(); scrollPane8.setBackground(new Color(-3355444)); scrollPane8.setMaximumSize(new Dimension(550, 225)); scrollPane8.setMinimumSize(new Dimension(550, 225)); scrollPane8.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.weighty = 1.0; panel12.add(scrollPane8, gbc); photosAddTagsOutput = new JTextArea(); photosAddTagsOutput.setBackground(new Color(-3355444)); photosAddTagsOutput.setEditable(false); scrollPane8.setViewportView(photosAddTagsOutput); photosAddTagsInvoke = new JButton(); photosAddTagsInvoke.setFont(new Font(photosAddTagsInvoke.getFont().getName(), Font.BOLD, photosAddTagsInvoke.getFont().getSize())); photosAddTagsInvoke.setMaximumSize(new Dimension(100, 30)); photosAddTagsInvoke.setMinimumSize(new Dimension(100, 30)); photosAddTagsInvoke.setPreferredSize(new Dimension(100, 30)); photosAddTagsInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.insets = new Insets(25, 0, 50, 0); panel12.add(photosAddTagsInvoke, gbc); final JPanel panel13 = new JPanel(); panel13.setLayout(new GridBagLayout()); photosOperationPane.addTab("Delete", panel13); final JLabel label18 = new JLabel(); label18.setFont(new Font(label18.getFont().getName(), Font.BOLD, label18.getFont().getSize())); label18.setHorizontalAlignment(0); label18.setMaximumSize(new Dimension(600, 50)); label18.setMinimumSize(new Dimension(600, 50)); label18.setPreferredSize(new Dimension(600, 50)); label18.setText("Delete a photo from flickr."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel13.add(label18, gbc); final JLabel label19 = new JLabel(); label19.setFont(new Font(label19.getFont().getName(), Font.BOLD, label19.getFont().getSize())); label19.setHorizontalAlignment(4); label19.setMaximumSize(new Dimension(400, 25)); label19.setMinimumSize(new Dimension(400, 25)); label19.setPreferredSize(new Dimension(400, 25)); label19.setText("Photo ID : "); label19.setVerticalAlignment(0); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.EAST; panel13.add(label19, gbc); txtPhotosDeletePhotoID = new JTextField(); txtPhotosDeletePhotoID.setMaximumSize(new Dimension(200, 25)); txtPhotosDeletePhotoID.setMinimumSize(new Dimension(200, 25)); txtPhotosDeletePhotoID.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 0, 0); panel13.add(txtPhotosDeletePhotoID, gbc); photosDeleteInvoke = new JButton(); photosDeleteInvoke.setFont(new Font(photosDeleteInvoke.getFont().getName(), Font.BOLD, photosDeleteInvoke.getFont().getSize())); photosDeleteInvoke.setMaximumSize(new Dimension(100, 30)); photosDeleteInvoke.setMinimumSize(new Dimension(100, 30)); photosDeleteInvoke.setPreferredSize(new Dimension(100, 30)); photosDeleteInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel13.add(photosDeleteInvoke, gbc); final JScrollPane scrollPane9 = new JScrollPane(); scrollPane9.setMaximumSize(new Dimension(550, 225)); scrollPane9.setMinimumSize(new Dimension(550, 225)); scrollPane9.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; panel13.add(scrollPane9, gbc); photosDeleteOutput = new JTextArea(); photosDeleteOutput.setBackground(new Color(-3355444)); photosDeleteOutput.setEditable(false); scrollPane9.setViewportView(photosDeleteOutput); final JPanel panel14 = new JPanel(); panel14.setLayout(new GridBagLayout()); photosOperationPane.addTab("GetAllContexts ", panel14); final JLabel label20 = new JLabel(); label20.setFont(new Font(label20.getFont().getName(), Font.BOLD, label20.getFont().getSize())); label20.setHorizontalAlignment(0); label20.setMaximumSize(new Dimension(600, 50)); label20.setMinimumSize(new Dimension(600, 50)); label20.setPreferredSize(new Dimension(600, 50)); label20.setText("Returns all visible sets and pools the photo belongs to."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel14.add(label20, gbc); final JLabel label21 = new JLabel(); label21.setFont(new Font(label21.getFont().getName(), Font.BOLD, label21.getFont().getSize())); label21.setHorizontalAlignment(4); label21.setMaximumSize(new Dimension(400, 25)); label21.setMinimumSize(new Dimension(400, 25)); label21.setPreferredSize(new Dimension(400, 25)); label21.setText("Photo ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; panel14.add(label21, gbc); txtGetAllContextsPhotoID = new JTextField(); txtGetAllContextsPhotoID.setMaximumSize(new Dimension(200, 25)); txtGetAllContextsPhotoID.setMinimumSize(new Dimension(200, 25)); txtGetAllContextsPhotoID.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 0, 0); panel14.add(txtGetAllContextsPhotoID, gbc); getAllContextsInvoke = new JButton(); getAllContextsInvoke.setFont(new Font(getAllContextsInvoke.getFont().getName(), Font.BOLD, getAllContextsInvoke.getFont().getSize())); getAllContextsInvoke.setMaximumSize(new Dimension(100, 30)); getAllContextsInvoke.setMinimumSize(new Dimension(100, 30)); getAllContextsInvoke.setPreferredSize(new Dimension(100, 30)); getAllContextsInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel14.add(getAllContextsInvoke, gbc); final JScrollPane scrollPane10 = new JScrollPane(); scrollPane10.setMaximumSize(new Dimension(550, 225)); scrollPane10.setMinimumSize(new Dimension(550, 225)); scrollPane10.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.weighty = 1.0; panel14.add(scrollPane10, gbc); getAllContextsOutput = new JTextArea(); getAllContextsOutput.setBackground(new Color(-3355444)); scrollPane10.setViewportView(getAllContextsOutput); final JPanel panel15 = new JPanel(); panel15.setLayout(new GridBagLayout()); photosOperationPane.addTab("GetContactsPhotos", panel15); final JLabel label22 = new JLabel(); label22.setFont(new Font(label22.getFont().getName(), Font.BOLD, label22.getFont().getSize())); label22.setHorizontalAlignment(0); label22.setMaximumSize(new Dimension(600, 50)); label22.setMinimumSize(new Dimension(600, 50)); label22.setPreferredSize(new Dimension(600, 50)); label22.setText("Fetch a list of recent photos from the calling users' contacts."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 4; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(25, 0, 25, 0); panel15.add(label22, gbc); final JLabel label23 = new JLabel(); label23.setFont( new Font(label23.getFont().getName(), label23.getFont().getStyle(), label23.getFont().getSize())); label23.setHorizontalAlignment(4); label23.setMaximumSize(new Dimension(400, 25)); label23.setMinimumSize(new Dimension(400, 25)); label23.setPreferredSize(new Dimension(400, 25)); label23.setText("Count : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel15.add(label23, gbc); chkGetContactsPhotosFriends = new JCheckBox(); chkGetContactsPhotosFriends.setHorizontalAlignment(4); chkGetContactsPhotosFriends.setMaximumSize(new Dimension(300, 25)); chkGetContactsPhotosFriends.setMinimumSize(new Dimension(300, 25)); chkGetContactsPhotosFriends.setPreferredSize(new Dimension(300, 25)); chkGetContactsPhotosFriends.setText("Just Friends"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel15.add(chkGetContactsPhotosFriends, gbc); chkGetContactsPhotosSingle = new JCheckBox(); chkGetContactsPhotosSingle.setMaximumSize(new Dimension(200, 25)); chkGetContactsPhotosSingle.setMinimumSize(new Dimension(200, 25)); chkGetContactsPhotosSingle.setPreferredSize(new Dimension(200, 25)); chkGetContactsPhotosSingle.setText("Single Photo"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 10, 0); panel15.add(chkGetContactsPhotosSingle, gbc); final JScrollPane scrollPane11 = new JScrollPane(); scrollPane11.setMaximumSize(new Dimension(550, 225)); scrollPane11.setMinimumSize(new Dimension(550, 225)); scrollPane11.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.gridwidth = 4; gbc.weighty = 1.0; panel15.add(scrollPane11, gbc); getContactsPhotosOutput = new JTextArea(); getContactsPhotosOutput.setBackground(new Color(-3355444)); scrollPane11.setViewportView(getContactsPhotosOutput); getContactsPhotosInvoke = new JButton(); getContactsPhotosInvoke.setFont(new Font(getContactsPhotosInvoke.getFont().getName(), Font.BOLD, getContactsPhotosInvoke.getFont().getSize())); getContactsPhotosInvoke.setLabel("Invoke"); getContactsPhotosInvoke.setMaximumSize(new Dimension(100, 30)); getContactsPhotosInvoke.setMinimumSize(new Dimension(100, 30)); getContactsPhotosInvoke.setPreferredSize(new Dimension(100, 30)); getContactsPhotosInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 4; gbc.insets = new Insets(10, 0, 0, 0); panel15.add(getContactsPhotosInvoke, gbc); cmbGetContactsPhotos = new JComboBox(); cmbGetContactsPhotos.setMaximumSize(new Dimension(200, 25)); cmbGetContactsPhotos.setMinimumSize(new Dimension(200, 25)); cmbGetContactsPhotos.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.gridwidth = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 10, 0); panel15.add(cmbGetContactsPhotos, gbc); chkGetContactsPhotosSelf = new JCheckBox(); chkGetContactsPhotosSelf.setHorizontalAlignment(4); chkGetContactsPhotosSelf.setLabel("Include Self "); chkGetContactsPhotosSelf.setMaximumSize(new Dimension(300, 25)); chkGetContactsPhotosSelf.setMinimumSize(new Dimension(300, 25)); chkGetContactsPhotosSelf.setPreferredSize(new Dimension(300, 25)); chkGetContactsPhotosSelf.setText("Include Self "); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel15.add(chkGetContactsPhotosSelf, gbc); final JPanel panel16 = new JPanel(); panel16.setLayout(new GridBagLayout()); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 4; gbc.gridwidth = 2; gbc.fill = GridBagConstraints.BOTH; panel15.add(panel16, gbc); final JLabel label24 = new JLabel(); label24.setFont(new Font(label24.getFont().getName(), Font.BOLD, label24.getFont().getSize())); label24.setHorizontalAlignment(0); label24.setMaximumSize(new Dimension(400, 25)); label24.setMinimumSize(new Dimension(400, 25)); label24.setPreferredSize(new Dimension(400, 25)); label24.setText("Extra information to fetch for each returned record"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 0; gbc.gridwidth = 4; gbc.weighty = 1.0; gbc.insets = new Insets(0, 0, 10, 0); panel16.add(label24, gbc); chkGetContactsPhotosLicense = new JCheckBox(); chkGetContactsPhotosLicense.setText("license"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel16.add(chkGetContactsPhotosLicense, gbc); chkGetContactsPhotosUploadDate = new JCheckBox(); chkGetContactsPhotosUploadDate.setText("date_upload"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel16.add(chkGetContactsPhotosUploadDate, gbc); chkGetContactsPhotosDateTaken = new JCheckBox(); chkGetContactsPhotosDateTaken.setText("date_taken"); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel16.add(chkGetContactsPhotosDateTaken, gbc); chkGetContactsPhotosOwner = new JCheckBox(); chkGetContactsPhotosOwner.setText("owner_name"); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel16.add(chkGetContactsPhotosOwner, gbc); chkGetContactsPhotosServer = new JCheckBox(); chkGetContactsPhotosServer.setText("icon_server"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; panel16.add(chkGetContactsPhotosServer, gbc); chkGetContactsPhotosOriginal = new JCheckBox(); chkGetContactsPhotosOriginal.setText("original_format"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; panel16.add(chkGetContactsPhotosOriginal, gbc); chkGetContactsPhotosLastUpdate = new JCheckBox(); chkGetContactsPhotosLastUpdate.setText("last_update"); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; panel16.add(chkGetContactsPhotosLastUpdate, gbc); final JPanel panel17 = new JPanel(); panel17.setLayout(new GridBagLayout()); photosOperationPane.addTab("GetContactsPublicPhotos", panel17); final JLabel label25 = new JLabel(); label25.setFont(new Font(label25.getFont().getName(), Font.BOLD, label25.getFont().getSize())); label25.setHorizontalAlignment(0); label25.setMaximumSize(new Dimension(600, 50)); label25.setMinimumSize(new Dimension(600, 50)); label25.setPreferredSize(new Dimension(600, 50)); label25.setText("Fetch a list of recent public photos from a users' contacts."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(25, 0, 25, 0); panel17.add(label25, gbc); final JLabel label26 = new JLabel(); label26.setFont(new Font(label26.getFont().getName(), Font.BOLD, label26.getFont().getSize())); label26.setHorizontalAlignment(4); label26.setMaximumSize(new Dimension(400, 25)); label26.setMinimumSize(new Dimension(400, 25)); label26.setPreferredSize(new Dimension(400, 25)); label26.setText("User ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel17.add(label26, gbc); txtGetContactsPublicPhotosUserID = new JTextField(); txtGetContactsPublicPhotosUserID.setMaximumSize(new Dimension(200, 25)); txtGetContactsPublicPhotosUserID.setMinimumSize(new Dimension(200, 25)); txtGetContactsPublicPhotosUserID.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.insets = new Insets(0, 100, 10, 0); panel17.add(txtGetContactsPublicPhotosUserID, gbc); final JLabel label27 = new JLabel(); label27.setFont( new Font(label27.getFont().getName(), label27.getFont().getStyle(), label27.getFont().getSize())); label27.setHorizontalAlignment(4); label27.setMaximumSize(new Dimension(400, 25)); label27.setMinimumSize(new Dimension(400, 25)); label27.setPreferredSize(new Dimension(400, 25)); label27.setText("Count : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel17.add(label27, gbc); cmbGetContactsPublicPhotosCount = new JComboBox(); cmbGetContactsPublicPhotosCount.setMaximumSize(new Dimension(200, 25)); cmbGetContactsPublicPhotosCount.setMinimumSize(new Dimension(200, 25)); cmbGetContactsPublicPhotosCount.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.insets = new Insets(0, 100, 10, 0); panel17.add(cmbGetContactsPublicPhotosCount, gbc); chkGetContactsPublicPhotosSingle = new JCheckBox(); chkGetContactsPublicPhotosSingle.setMaximumSize(new Dimension(300, 25)); chkGetContactsPublicPhotosSingle.setMinimumSize(new Dimension(300, 25)); chkGetContactsPublicPhotosSingle.setPreferredSize(new Dimension(300, 25)); chkGetContactsPublicPhotosSingle.setText("Single Photo"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 3; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 10, 0); panel17.add(chkGetContactsPublicPhotosSingle, gbc); chkGetContactsPublicPhotosSelf = new JCheckBox(); chkGetContactsPublicPhotosSelf.setHorizontalAlignment(4); chkGetContactsPublicPhotosSelf.setMaximumSize(new Dimension(300, 25)); chkGetContactsPublicPhotosSelf.setMinimumSize(new Dimension(300, 25)); chkGetContactsPublicPhotosSelf.setPreferredSize(new Dimension(300, 25)); chkGetContactsPublicPhotosSelf.setText("Include Self "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel17.add(chkGetContactsPublicPhotosSelf, gbc); final JPanel panel18 = new JPanel(); panel18.setLayout(new GridBagLayout()); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 2; gbc.fill = GridBagConstraints.BOTH; panel17.add(panel18, gbc); final JLabel label28 = new JLabel(); label28.setFont(new Font(label28.getFont().getName(), Font.BOLD, label28.getFont().getSize())); label28.setMaximumSize(new Dimension(400, 25)); label28.setMinimumSize(new Dimension(400, 25)); label28.setPreferredSize(new Dimension(400, 25)); label28.setText("Extra information to fetch for each returned record."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 4; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(0, 0, 10, 0); panel18.add(label28, gbc); licenseCheckBox = new JCheckBox(); licenseCheckBox.setText("license"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel18.add(licenseCheckBox, gbc); owner_nameCheckBox = new JCheckBox(); owner_nameCheckBox.setText("owner_name"); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel18.add(owner_nameCheckBox, gbc); date_takenCheckBox = new JCheckBox(); date_takenCheckBox.setText("date_taken"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel18.add(date_takenCheckBox, gbc); date_uploadCheckBox = new JCheckBox(); date_uploadCheckBox.setText("date_upload"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel18.add(date_uploadCheckBox, gbc); icon_serverCheckBox = new JCheckBox(); icon_serverCheckBox.setText("icon_server"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel18.add(icon_serverCheckBox, gbc); original_formatCheckBox = new JCheckBox(); original_formatCheckBox.setText("original_format"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel18.add(original_formatCheckBox, gbc); last_updateCheckBox = new JCheckBox(); last_updateCheckBox.setText("last_update"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel18.add(last_updateCheckBox, gbc); final JScrollPane scrollPane12 = new JScrollPane(); scrollPane12.setMaximumSize(new Dimension(550, 225)); scrollPane12.setMinimumSize(new Dimension(550, 225)); scrollPane12.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 7; gbc.gridwidth = 2; gbc.weighty = 1.0; panel17.add(scrollPane12, gbc); getContactsPublicPhotosOutput = new JTextArea(); getContactsPublicPhotosOutput.setBackground(new Color(-3355444)); scrollPane12.setViewportView(getContactsPublicPhotosOutput); getContactsPublicPhotosInvoke = new JButton(); getContactsPublicPhotosInvoke.setFont(new Font(getContactsPublicPhotosInvoke.getFont().getName(), Font.BOLD, getContactsPublicPhotosInvoke.getFont().getSize())); getContactsPublicPhotosInvoke.setMaximumSize(new Dimension(100, 30)); getContactsPublicPhotosInvoke.setMinimumSize(new Dimension(100, 30)); getContactsPublicPhotosInvoke.setPreferredSize(new Dimension(100, 30)); getContactsPublicPhotosInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.gridwidth = 2; gbc.insets = new Insets(10, 0, 0, 0); panel17.add(getContactsPublicPhotosInvoke, gbc); chkGetContactsPublicPhotosFriends = new JCheckBox(); chkGetContactsPublicPhotosFriends.setHorizontalAlignment(4); chkGetContactsPublicPhotosFriends.setMaximumSize(new Dimension(300, 25)); chkGetContactsPublicPhotosFriends.setMinimumSize(new Dimension(300, 25)); chkGetContactsPublicPhotosFriends.setPreferredSize(new Dimension(300, 25)); chkGetContactsPublicPhotosFriends.setText("Just Friends "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; panel17.add(chkGetContactsPublicPhotosFriends, gbc); final JPanel panel19 = new JPanel(); panel19.setLayout(new GridBagLayout()); photosOperationPane.addTab("GetContext", panel19); final JLabel label29 = new JLabel(); label29.setFont(new Font(label29.getFont().getName(), Font.BOLD, label29.getFont().getSize())); label29.setHorizontalAlignment(0); label29.setMaximumSize(new Dimension(600, 50)); label29.setMinimumSize(new Dimension(600, 50)); label29.setPreferredSize(new Dimension(600, 50)); label29.setText("Returns next and previous photos for a photo in a photostream."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel19.add(label29, gbc); final JLabel label30 = new JLabel(); label30.setFont(new Font(label30.getFont().getName(), Font.BOLD, label30.getFont().getSize())); label30.setHorizontalAlignment(4); label30.setMaximumSize(new Dimension(400, 25)); label30.setMinimumSize(new Dimension(400, 25)); label30.setPreferredSize(new Dimension(400, 25)); label30.setText("Photo ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; panel19.add(label30, gbc); txtGetContextPhotoID = new JTextField(); txtGetContextPhotoID.setMaximumSize(new Dimension(200, 25)); txtGetContextPhotoID.setMinimumSize(new Dimension(200, 25)); txtGetContextPhotoID.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 0, 0); panel19.add(txtGetContextPhotoID, gbc); getContextInvoke = new JButton(); getContextInvoke.setFont( new Font(getContextInvoke.getFont().getName(), Font.BOLD, getContextInvoke.getFont().getSize())); getContextInvoke.setMaximumSize(new Dimension(100, 30)); getContextInvoke.setMinimumSize(new Dimension(100, 30)); getContextInvoke.setPreferredSize(new Dimension(100, 30)); getContextInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel19.add(getContextInvoke, gbc); final JScrollPane scrollPane13 = new JScrollPane(); scrollPane13.setMaximumSize(new Dimension(550, 225)); scrollPane13.setMinimumSize(new Dimension(550, 225)); scrollPane13.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.weighty = 1.0; panel19.add(scrollPane13, gbc); getContextOutput = new JTextArea(); getContextOutput.setBackground(new Color(-3355444)); scrollPane13.setViewportView(getContextOutput); final JPanel panel20 = new JPanel(); panel20.setLayout(new GridBagLayout()); panel20.setMaximumSize(new Dimension(200, 25)); panel20.setMinimumSize(new Dimension(200, 25)); panel20.setPreferredSize(new Dimension(200, 25)); photosOperationPane.addTab("GetCounts", panel20); final JLabel label31 = new JLabel(); label31.setFont(new Font(label31.getFont().getName(), Font.BOLD, label31.getFont().getSize())); label31.setHorizontalAlignment(0); label31.setMaximumSize(new Dimension(600, 50)); label31.setMinimumSize(new Dimension(600, 50)); label31.setPreferredSize(new Dimension(600, 50)); label31.setText("Gets a list of photo counts for the given date ranges for the calling user."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel20.add(label31, gbc); final JLabel label32 = new JLabel(); label32.setHorizontalAlignment(4); label32.setMaximumSize(new Dimension(400, 25)); label32.setMinimumSize(new Dimension(400, 25)); label32.setPreferredSize(new Dimension(400, 25)); label32.setText("Dates : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 25, 0); panel20.add(label32, gbc); txtGetCountsDates = new JTextField(); txtGetCountsDates.setMaximumSize(new Dimension(200, 25)); txtGetCountsDates.setMinimumSize(new Dimension(200, 25)); txtGetCountsDates.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 25, 0); panel20.add(txtGetCountsDates, gbc); final JLabel label33 = new JLabel(); label33.setHorizontalAlignment(4); label33.setMaximumSize(new Dimension(400, 25)); label33.setMinimumSize(new Dimension(400, 25)); label33.setPreferredSize(new Dimension(400, 25)); label33.setText("Dates Taken : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; panel20.add(label33, gbc); txtGetCountsDatesTaken = new JTextField(); txtGetCountsDatesTaken.setMaximumSize(new Dimension(200, 25)); txtGetCountsDatesTaken.setMinimumSize(new Dimension(200, 25)); txtGetCountsDatesTaken.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 0, 0); panel20.add(txtGetCountsDatesTaken, gbc); getCountsInvoke = new JButton(); getCountsInvoke.setFont( new Font(getCountsInvoke.getFont().getName(), Font.BOLD, getCountsInvoke.getFont().getSize())); getCountsInvoke.setLabel("Invoke"); getCountsInvoke.setMaximumSize(new Dimension(100, 30)); getCountsInvoke.setMinimumSize(new Dimension(100, 30)); getCountsInvoke.setPreferredSize(new Dimension(100, 30)); getCountsInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.insets = new Insets(25, 0, 50, 0); panel20.add(getCountsInvoke, gbc); final JScrollPane scrollPane14 = new JScrollPane(); scrollPane14.setMaximumSize(new Dimension(550, 225)); scrollPane14.setMinimumSize(new Dimension(550, 225)); scrollPane14.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.weighty = 1.0; panel20.add(scrollPane14, gbc); getCountsOutput = new JTextArea(); getCountsOutput.setBackground(new Color(-3355444)); scrollPane14.setViewportView(getCountsOutput); final JPanel panel21 = new JPanel(); panel21.setLayout(new GridBagLayout()); photosOperationPane.addTab("GetExif", panel21); final JLabel label34 = new JLabel(); label34.setFont(new Font(label34.getFont().getName(), Font.BOLD, label34.getFont().getSize())); label34.setHorizontalAlignment(4); label34.setMaximumSize(new Dimension(400, 25)); label34.setMinimumSize(new Dimension(400, 25)); label34.setPreferredSize(new Dimension(400, 25)); label34.setText("Photo ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 25, 0); panel21.add(label34, gbc); txtGetExifPhotoID = new JTextField(); txtGetExifPhotoID.setMaximumSize(new Dimension(200, 25)); txtGetExifPhotoID.setMinimumSize(new Dimension(200, 25)); txtGetExifPhotoID.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 25, 0); panel21.add(txtGetExifPhotoID, gbc); final JLabel label35 = new JLabel(); label35.setHorizontalAlignment(4); label35.setMaximumSize(new Dimension(400, 25)); label35.setMinimumSize(new Dimension(400, 25)); label35.setPreferredSize(new Dimension(400, 25)); label35.setText("Secret :"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 25, 0); panel21.add(label35, gbc); txtGetExifSecret = new JTextField(); txtGetExifSecret.setMaximumSize(new Dimension(200, 25)); txtGetExifSecret.setMinimumSize(new Dimension(200, 25)); txtGetExifSecret.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 25, 0); panel21.add(txtGetExifSecret, gbc); getExifInvoke = new JButton(); getExifInvoke .setFont(new Font(getExifInvoke.getFont().getName(), Font.BOLD, getExifInvoke.getFont().getSize())); getExifInvoke.setLabel("Invoke"); getExifInvoke.setMaximumSize(new Dimension(100, 30)); getExifInvoke.setMinimumSize(new Dimension(100, 30)); getExifInvoke.setPreferredSize(new Dimension(100, 30)); getExifInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.insets = new Insets(25, 0, 50, 0); panel21.add(getExifInvoke, gbc); final JLabel label36 = new JLabel(); label36.setFont(new Font(label36.getFont().getName(), Font.BOLD, label36.getFont().getSize())); label36.setHorizontalAlignment(0); label36.setMaximumSize(new Dimension(600, 50)); label36.setMinimumSize(new Dimension(600, 50)); label36.setPreferredSize(new Dimension(600, 50)); label36.setText("Retrieves a list of EXIF/TIFF/GPS tags for a given photo."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel21.add(label36, gbc); final JScrollPane scrollPane15 = new JScrollPane(); scrollPane15.setMaximumSize(new Dimension(550, 225)); scrollPane15.setMinimumSize(new Dimension(550, 225)); scrollPane15.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.weighty = 1.0; panel21.add(scrollPane15, gbc); getExifOutput = new JTextArea(); getExifOutput.setBackground(new Color(-3355444)); scrollPane15.setViewportView(getExifOutput); final JPanel panel22 = new JPanel(); panel22.setLayout(new GridBagLayout()); photosOperationPane.addTab("GetFavorites ", panel22); final JLabel label37 = new JLabel(); label37.setFont(new Font(label37.getFont().getName(), Font.BOLD, label37.getFont().getSize())); label37.setHorizontalAlignment(0); label37.setMaximumSize(new Dimension(600, 50)); label37.setMinimumSize(new Dimension(600, 50)); label37.setPreferredSize(new Dimension(600, 50)); label37.setText("Returns the list of people who have favorited a given photo."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel22.add(label37, gbc); final JLabel label38 = new JLabel(); label38.setFont(new Font(label38.getFont().getName(), Font.BOLD, label38.getFont().getSize())); label38.setHorizontalAlignment(4); label38.setMaximumSize(new Dimension(400, 25)); label38.setMinimumSize(new Dimension(400, 25)); label38.setPreferredSize(new Dimension(400, 25)); label38.setText("Photo ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel22.add(label38, gbc); txtGetFavoritesPhotoID = new JTextField(); txtGetFavoritesPhotoID.setMaximumSize(new Dimension(200, 25)); txtGetFavoritesPhotoID.setMinimumSize(new Dimension(200, 25)); txtGetFavoritesPhotoID.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 15, 0); panel22.add(txtGetFavoritesPhotoID, gbc); final JLabel label39 = new JLabel(); label39.setHorizontalAlignment(4); label39.setMaximumSize(new Dimension(400, 25)); label39.setMinimumSize(new Dimension(400, 25)); label39.setPreferredSize(new Dimension(400, 25)); label39.setText("Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel22.add(label39, gbc); txtGetFavoritesPage = new JTextField(); txtGetFavoritesPage.setMaximumSize(new Dimension(200, 25)); txtGetFavoritesPage.setMinimumSize(new Dimension(200, 25)); txtGetFavoritesPage.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 15, 0); panel22.add(txtGetFavoritesPage, gbc); final JLabel label40 = new JLabel(); label40.setHorizontalAlignment(4); label40.setMaximumSize(new Dimension(400, 25)); label40.setMinimumSize(new Dimension(400, 25)); label40.setPreferredSize(new Dimension(400, 25)); label40.setText("Per Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; panel22.add(label40, gbc); cmbGetFavoritesPerPage = new JComboBox(); cmbGetFavoritesPerPage.setMaximumSize(new Dimension(200, 25)); cmbGetFavoritesPerPage.setMinimumSize(new Dimension(200, 25)); cmbGetFavoritesPerPage.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 3; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 0, 0); panel22.add(cmbGetFavoritesPerPage, gbc); getFavoritesInvoke = new JButton(); getFavoritesInvoke.setFont(new Font(getFavoritesInvoke.getFont().getName(), Font.BOLD, getFavoritesInvoke.getFont().getSize())); getFavoritesInvoke.setMaximumSize(new Dimension(100, 30)); getFavoritesInvoke.setMinimumSize(new Dimension(100, 30)); getFavoritesInvoke.setPreferredSize(new Dimension(100, 30)); getFavoritesInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel22.add(getFavoritesInvoke, gbc); final JScrollPane scrollPane16 = new JScrollPane(); scrollPane16.setMaximumSize(new Dimension(550, 225)); scrollPane16.setMinimumSize(new Dimension(550, 225)); scrollPane16.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 2; gbc.weighty = 1.0; panel22.add(scrollPane16, gbc); getFavoritesOutput = new JTextArea(); getFavoritesOutput.setBackground(new Color(-3355444)); scrollPane16.setViewportView(getFavoritesOutput); final JPanel panel23 = new JPanel(); panel23.setLayout(new GridBagLayout()); photosOperationPane.addTab("GetNotInSet", panel23); final JLabel label41 = new JLabel(); label41.setFont(new Font(label41.getFont().getName(), Font.BOLD, label41.getFont().getSize())); label41.setHorizontalAlignment(0); label41.setMaximumSize(new Dimension(600, 50)); label41.setMinimumSize(new Dimension(600, 50)); label41.setPreferredSize(new Dimension(600, 50)); label41.setText("Returns a list of your photos that are not part of any sets."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 4; gbc.anchor = GridBagConstraints.NORTH; panel23.add(label41, gbc); final JLabel label42 = new JLabel(); label42.setHorizontalAlignment(4); label42.setMaximumSize(new Dimension(200, 25)); label42.setMinimumSize(new Dimension(200, 25)); label42.setPreferredSize(new Dimension(200, 25)); label42.setText("Minumum Upload Date : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel23.add(label42, gbc); txtGetNotInSetMinUpDate = new JTextField(); txtGetNotInSetMinUpDate.setMaximumSize(new Dimension(200, 25)); txtGetNotInSetMinUpDate.setMinimumSize(new Dimension(200, 25)); txtGetNotInSetMinUpDate.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.insets = new Insets(0, 30, 10, 0); panel23.add(txtGetNotInSetMinUpDate, gbc); final JLabel label43 = new JLabel(); label43.setHorizontalAlignment(4); label43.setMaximumSize(new Dimension(200, 25)); label43.setMinimumSize(new Dimension(200, 25)); label43.setPreferredSize(new Dimension(200, 25)); label43.setText("Maximum upload date : "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel23.add(label43, gbc); txtGetNotInSetMaxUpDate = new JTextField(); txtGetNotInSetMaxUpDate.setMaximumSize(new Dimension(200, 25)); txtGetNotInSetMaxUpDate.setMinimumSize(new Dimension(200, 25)); txtGetNotInSetMaxUpDate.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel23.add(txtGetNotInSetMaxUpDate, gbc); final JLabel label44 = new JLabel(); label44.setHorizontalAlignment(4); label44.setMaximumSize(new Dimension(200, 25)); label44.setMinimumSize(new Dimension(200, 25)); label44.setPreferredSize(new Dimension(200, 25)); label44.setText("Minimum taken date : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel23.add(label44, gbc); txtGetNotInSetMinTakDate = new JTextField(); txtGetNotInSetMinTakDate.setMaximumSize(new Dimension(200, 25)); txtGetNotInSetMinTakDate.setMinimumSize(new Dimension(200, 25)); txtGetNotInSetMinTakDate.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.insets = new Insets(0, 30, 10, 0); panel23.add(txtGetNotInSetMinTakDate, gbc); txtGetNotInSetMaxTakDate = new JTextField(); txtGetNotInSetMaxTakDate.setMaximumSize(new Dimension(200, 25)); txtGetNotInSetMaxTakDate.setMinimumSize(new Dimension(200, 25)); txtGetNotInSetMaxTakDate.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel23.add(txtGetNotInSetMaxTakDate, gbc); final JLabel label45 = new JLabel(); label45.setHorizontalAlignment(4); label45.setMaximumSize(new Dimension(200, 25)); label45.setMinimumSize(new Dimension(200, 25)); label45.setPreferredSize(new Dimension(200, 25)); label45.setText("Maximum taken date : "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel23.add(label45, gbc); final JLabel label46 = new JLabel(); label46.setHorizontalAlignment(4); label46.setMaximumSize(new Dimension(200, 25)); label46.setMinimumSize(new Dimension(200, 25)); label46.setPreferredSize(new Dimension(200, 25)); label46.setText("Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel23.add(label46, gbc); txtGetNotInSetPage = new JTextField(); txtGetNotInSetPage.setMaximumSize(new Dimension(200, 25)); txtGetNotInSetPage.setMinimumSize(new Dimension(200, 25)); txtGetNotInSetPage.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 3; gbc.weightx = 1.0; gbc.insets = new Insets(0, 30, 10, 0); panel23.add(txtGetNotInSetPage, gbc); final JLabel label47 = new JLabel(); label47.setHorizontalAlignment(4); label47.setMaximumSize(new Dimension(200, 25)); label47.setMinimumSize(new Dimension(200, 25)); label47.setPreferredSize(new Dimension(200, 25)); label47.setText("Privacy Filter : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel23.add(label47, gbc); cmbGetNotInSetPrivacy = new JComboBox(); cmbGetNotInSetPrivacy.setMaximumSize(new Dimension(200, 25)); cmbGetNotInSetPrivacy.setMinimumSize(new Dimension(200, 25)); final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel(); defaultComboBoxModel1.addElement("public photos"); defaultComboBoxModel1.addElement("private photos visible to friends"); defaultComboBoxModel1.addElement("private photos visible to family"); defaultComboBoxModel1.addElement("private photos visible to friends & family"); defaultComboBoxModel1.addElement("completely private photos"); cmbGetNotInSetPrivacy.setModel(defaultComboBoxModel1); cmbGetNotInSetPrivacy.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 4; gbc.weightx = 1.0; gbc.insets = new Insets(0, 30, 10, 0); panel23.add(cmbGetNotInSetPrivacy, gbc); getNotInSetInvoke = new JButton(); getNotInSetInvoke.setFont( new Font(getNotInSetInvoke.getFont().getName(), Font.BOLD, getNotInSetInvoke.getFont().getSize())); getNotInSetInvoke.setMaximumSize(new Dimension(100, 30)); getNotInSetInvoke.setMinimumSize(new Dimension(100, 30)); getNotInSetInvoke.setPreferredSize(new Dimension(100, 30)); getNotInSetInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.gridwidth = 4; gbc.insets = new Insets(10, 0, 0, 0); panel23.add(getNotInSetInvoke, gbc); final JPanel panel24 = new JPanel(); panel24.setLayout(new GridBagLayout()); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 4; gbc.fill = GridBagConstraints.BOTH; panel23.add(panel24, gbc); final JLabel label48 = new JLabel(); label48.setFont(new Font(label48.getFont().getName(), Font.BOLD, label48.getFont().getSize())); label48.setHorizontalAlignment(0); label48.setMaximumSize(new Dimension(400, 25)); label48.setMinimumSize(new Dimension(400, 25)); label48.setPreferredSize(new Dimension(400, 25)); label48.setText("Extra information to fetch for each returned record."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 5; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.insets = new Insets(0, 0, 10, 0); panel24.add(label48, gbc); chkGetNotInSetLicense = new JCheckBox(); chkGetNotInSetLicense.setText("license"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel24.add(chkGetNotInSetLicense, gbc); chkGetNotInSetServer = new JCheckBox(); chkGetNotInSetServer.setText("icon_server"); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel24.add(chkGetNotInSetServer, gbc); chkGetNotInSetOwner = new JCheckBox(); chkGetNotInSetOwner.setText("owner_name"); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel24.add(chkGetNotInSetOwner, gbc); chkGetNotInSetDateTak = new JCheckBox(); chkGetNotInSetDateTak.setText("date_taken"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel24.add(chkGetNotInSetDateTak, gbc); chkGetNotInSetDateUp = new JCheckBox(); chkGetNotInSetDateUp.setText("date_upload"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel24.add(chkGetNotInSetDateUp, gbc); chkGetNotInSetOriginal = new JCheckBox(); chkGetNotInSetOriginal.setText("original_format"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel24.add(chkGetNotInSetOriginal, gbc); chkGetNotInSetLastUp = new JCheckBox(); chkGetNotInSetLastUp.setText("last_update"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel24.add(chkGetNotInSetLastUp, gbc); chkGetNotInSetGeo = new JCheckBox(); chkGetNotInSetGeo.setText("geo"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel24.add(chkGetNotInSetGeo, gbc); chkGetNotInSetTags = new JCheckBox(); chkGetNotInSetTags.setText("tags"); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel24.add(chkGetNotInSetTags, gbc); chkGetNotInSetMachine = new JCheckBox(); chkGetNotInSetMachine.setText("machine_tags."); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel24.add(chkGetNotInSetMachine, gbc); final JScrollPane scrollPane17 = new JScrollPane(); scrollPane17.setMaximumSize(new Dimension(550, 225)); scrollPane17.setMinimumSize(new Dimension(550, 225)); scrollPane17.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 7; gbc.gridwidth = 4; gbc.weighty = 1.0; panel23.add(scrollPane17, gbc); getNotInSetOutput = new JTextArea(); getNotInSetOutput.setBackground(new Color(-3355444)); scrollPane17.setViewportView(getNotInSetOutput); final JLabel label49 = new JLabel(); label49.setHorizontalAlignment(4); label49.setMaximumSize(new Dimension(200, 25)); label49.setMinimumSize(new Dimension(200, 25)); label49.setPreferredSize(new Dimension(200, 25)); label49.setText("Records Per Page : "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel23.add(label49, gbc); cmbGetNotInSetPerPage = new JComboBox(); cmbGetNotInSetPerPage.setMaximumSize(new Dimension(200, 25)); cmbGetNotInSetPerPage.setMinimumSize(new Dimension(200, 25)); cmbGetNotInSetPerPage.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 3; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel23.add(cmbGetNotInSetPerPage, gbc); final JPanel panel25 = new JPanel(); panel25.setLayout(new GridBagLayout()); photosOperationPane.addTab("GetPerms", panel25); final JLabel label50 = new JLabel(); label50.setFont(new Font(label50.getFont().getName(), Font.BOLD, label50.getFont().getSize())); label50.setHorizontalAlignment(0); label50.setMaximumSize(new Dimension(600, 50)); label50.setMinimumSize(new Dimension(600, 50)); label50.setPreferredSize(new Dimension(600, 50)); label50.setText("Get permissions for a photo."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel25.add(label50, gbc); final JLabel label51 = new JLabel(); label51.setFont(new Font(label51.getFont().getName(), Font.BOLD, label51.getFont().getSize())); label51.setHorizontalAlignment(4); label51.setMaximumSize(new Dimension(400, 25)); label51.setMinimumSize(new Dimension(400, 25)); label51.setPreferredSize(new Dimension(400, 25)); label51.setText("Photo ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; panel25.add(label51, gbc); txtGetPermsPhotoID = new JTextField(); txtGetPermsPhotoID.setMaximumSize(new Dimension(200, 25)); txtGetPermsPhotoID.setMinimumSize(new Dimension(200, 25)); txtGetPermsPhotoID.setOpaque(true); txtGetPermsPhotoID.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 0, 0); panel25.add(txtGetPermsPhotoID, gbc); getPermsInvoke = new JButton(); getPermsInvoke.setFont( new Font(getPermsInvoke.getFont().getName(), Font.BOLD, getPermsInvoke.getFont().getSize())); getPermsInvoke.setMaximumSize(new Dimension(100, 30)); getPermsInvoke.setMinimumSize(new Dimension(100, 30)); getPermsInvoke.setPreferredSize(new Dimension(100, 30)); getPermsInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel25.add(getPermsInvoke, gbc); final JScrollPane scrollPane18 = new JScrollPane(); scrollPane18.setMaximumSize(new Dimension(550, 225)); scrollPane18.setMinimumSize(new Dimension(550, 225)); scrollPane18.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.weighty = 1.0; panel25.add(scrollPane18, gbc); getPermsOutput = new JTextArea(); getPermsOutput.setBackground(new Color(-3355444)); scrollPane18.setViewportView(getPermsOutput); final JPanel panel26 = new JPanel(); panel26.setLayout(new GridBagLayout()); photosOperationPane.addTab("GetRecent ", panel26); final JLabel label52 = new JLabel(); label52.setFont(new Font(label52.getFont().getName(), Font.BOLD, label52.getFont().getSize())); label52.setHorizontalAlignment(0); label52.setMaximumSize(new Dimension(600, 50)); label52.setMinimumSize(new Dimension(600, 50)); label52.setPreferredSize(new Dimension(600, 50)); label52.setText("Returns a list of the latest public photos uploaded to flickr."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(25, 0, 25, 0); panel26.add(label52, gbc); txtGetRecentPage = new JTextField(); txtGetRecentPage.setMaximumSize(new Dimension(200, 25)); txtGetRecentPage.setMinimumSize(new Dimension(200, 25)); txtGetRecentPage.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 10, 0); panel26.add(txtGetRecentPage, gbc); final JLabel label53 = new JLabel(); label53.setHorizontalAlignment(4); label53.setMaximumSize(new Dimension(400, 25)); label53.setMinimumSize(new Dimension(400, 25)); label53.setPreferredSize(new Dimension(400, 25)); label53.setText("Per Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel26.add(label53, gbc); cmbGetRecentPerPage = new JComboBox(); cmbGetRecentPerPage.setMaximumSize(new Dimension(200, 25)); cmbGetRecentPerPage.setMinimumSize(new Dimension(200, 25)); cmbGetRecentPerPage.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 10, 0); panel26.add(cmbGetRecentPerPage, gbc); getRecentInvoke = new JButton(); getRecentInvoke.setFont( new Font(getRecentInvoke.getFont().getName(), Font.BOLD, getRecentInvoke.getFont().getSize())); getRecentInvoke.setMaximumSize(new Dimension(100, 30)); getRecentInvoke.setMinimumSize(new Dimension(100, 30)); getRecentInvoke.setPreferredSize(new Dimension(100, 30)); getRecentInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.insets = new Insets(25, 0, 0, 0); panel26.add(getRecentInvoke, gbc); final JPanel panel27 = new JPanel(); panel27.setLayout(new GridBagLayout()); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.fill = GridBagConstraints.BOTH; panel26.add(panel27, gbc); final JLabel label54 = new JLabel(); label54.setFont(new Font(label54.getFont().getName(), Font.BOLD, label54.getFont().getSize())); label54.setMaximumSize(new Dimension(400, 25)); label54.setMinimumSize(new Dimension(400, 25)); label54.setPreferredSize(new Dimension(400, 25)); label54.setText("Extra information to fetch for each returned record"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 5; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.insets = new Insets(0, 0, 10, 0); panel27.add(label54, gbc); chkGetRecentLicense = new JCheckBox(); chkGetRecentLicense.setText("license"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel27.add(chkGetRecentLicense, gbc); chkGetRecentDateUp = new JCheckBox(); chkGetRecentDateUp.setText("date_upload"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel27.add(chkGetRecentDateUp, gbc); chkGetRecentDateTak = new JCheckBox(); chkGetRecentDateTak.setText("date_taken"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel27.add(chkGetRecentDateTak, gbc); chkGetRecentOwner = new JCheckBox(); chkGetRecentOwner.setText("owner_name"); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel27.add(chkGetRecentOwner, gbc); chkGetRecentServer = new JCheckBox(); chkGetRecentServer.setText("icon_server"); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel27.add(chkGetRecentServer, gbc); chkGetRecentOriginal = new JCheckBox(); chkGetRecentOriginal.setText("original_format"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel27.add(chkGetRecentOriginal, gbc); chkGetRecentLastUp = new JCheckBox(); chkGetRecentLastUp.setText("last_update"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel27.add(chkGetRecentLastUp, gbc); chkGetRecentGeo = new JCheckBox(); chkGetRecentGeo.setText("geo"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel27.add(chkGetRecentGeo, gbc); chkGetRecentTags = new JCheckBox(); chkGetRecentTags.setText("tags"); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel27.add(chkGetRecentTags, gbc); chkGetRecentMachine = new JCheckBox(); chkGetRecentMachine.setText("machine_tags"); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel27.add(chkGetRecentMachine, gbc); final JScrollPane scrollPane19 = new JScrollPane(); scrollPane19.setMaximumSize(new Dimension(550, 225)); scrollPane19.setMinimumSize(new Dimension(550, 225)); scrollPane19.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 2; gbc.weighty = 1.0; panel26.add(scrollPane19, gbc); getRecentOutput = new JTextArea(); getRecentOutput.setBackground(new Color(-3355444)); scrollPane19.setViewportView(getRecentOutput); final JLabel label55 = new JLabel(); label55.setHorizontalAlignment(4); label55.setMaximumSize(new Dimension(400, 25)); label55.setMinimumSize(new Dimension(400, 25)); label55.setPreferredSize(new Dimension(400, 25)); label55.setText("Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel26.add(label55, gbc); final JPanel panel28 = new JPanel(); panel28.setLayout(new GridBagLayout()); photosOperationPane.addTab("GetSizes", panel28); final JLabel label56 = new JLabel(); label56.setFont(new Font(label56.getFont().getName(), Font.BOLD, label56.getFont().getSize())); label56.setHorizontalAlignment(0); label56.setMaximumSize(new Dimension(600, 50)); label56.setMinimumSize(new Dimension(600, 50)); label56.setPreferredSize(new Dimension(600, 50)); label56.setText( "Returns the available sizes for a photo. The calling user must have permission to view the photo."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel28.add(label56, gbc); final JLabel label57 = new JLabel(); label57.setFont(new Font(label57.getFont().getName(), Font.BOLD, label57.getFont().getSize())); label57.setHorizontalAlignment(4); label57.setMaximumSize(new Dimension(400, 25)); label57.setMinimumSize(new Dimension(400, 25)); label57.setPreferredSize(new Dimension(400, 25)); label57.setText("Photo ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; panel28.add(label57, gbc); txtGetSizesPhotoID = new JTextField(); txtGetSizesPhotoID.setMaximumSize(new Dimension(200, 25)); txtGetSizesPhotoID.setMinimumSize(new Dimension(200, 25)); txtGetSizesPhotoID.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 0, 0); panel28.add(txtGetSizesPhotoID, gbc); getSizesInvoke = new JButton(); getSizesInvoke.setFont( new Font(getSizesInvoke.getFont().getName(), Font.BOLD, getSizesInvoke.getFont().getSize())); getSizesInvoke.setLabel("Invoke"); getSizesInvoke.setMaximumSize(new Dimension(100, 30)); getSizesInvoke.setMinimumSize(new Dimension(100, 30)); getSizesInvoke.setPreferredSize(new Dimension(100, 30)); getSizesInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel28.add(getSizesInvoke, gbc); final JScrollPane scrollPane20 = new JScrollPane(); scrollPane20.setMaximumSize(new Dimension(550, 225)); scrollPane20.setMinimumSize(new Dimension(550, 225)); scrollPane20.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.weighty = 1.0; panel28.add(scrollPane20, gbc); getSizesOutput = new JTextArea(); getSizesOutput.setBackground(new Color(-3355444)); scrollPane20.setViewportView(getSizesOutput); final JPanel panel29 = new JPanel(); panel29.setLayout(new GridBagLayout()); photosOperationPane.addTab("GetUntagged", panel29); final JLabel label58 = new JLabel(); label58.setFont(new Font(label58.getFont().getName(), Font.BOLD, label58.getFont().getSize())); label58.setHorizontalAlignment(0); label58.setMaximumSize(new Dimension(600, 50)); label58.setMinimumSize(new Dimension(600, 50)); label58.setPreferredSize(new Dimension(600, 50)); label58.setText("Returns a list of your photos with no tags."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 4; gbc.anchor = GridBagConstraints.NORTH; panel29.add(label58, gbc); final JLabel label59 = new JLabel(); label59.setHorizontalAlignment(4); label59.setMaximumSize(new Dimension(200, 25)); label59.setMinimumSize(new Dimension(200, 25)); label59.setPreferredSize(new Dimension(200, 25)); label59.setText("Minimum upload date : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel29.add(label59, gbc); txtGetUntaggedMinUpDate = new JTextField(); txtGetUntaggedMinUpDate.setMaximumSize(new Dimension(200, 25)); txtGetUntaggedMinUpDate.setMinimumSize(new Dimension(200, 25)); txtGetUntaggedMinUpDate.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel29.add(txtGetUntaggedMinUpDate, gbc); final JLabel label60 = new JLabel(); label60.setHorizontalAlignment(4); label60.setMaximumSize(new Dimension(200, 25)); label60.setMinimumSize(new Dimension(200, 25)); label60.setPreferredSize(new Dimension(200, 25)); label60.setText("Minimum taken date : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel29.add(label60, gbc); txtGetUntaggedMinTakDate = new JTextField(); txtGetUntaggedMinTakDate.setMaximumSize(new Dimension(200, 25)); txtGetUntaggedMinTakDate.setMinimumSize(new Dimension(200, 25)); txtGetUntaggedMinTakDate.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel29.add(txtGetUntaggedMinTakDate, gbc); final JLabel label61 = new JLabel(); label61.setHorizontalAlignment(4); label61.setMaximumSize(new Dimension(200, 25)); label61.setMinimumSize(new Dimension(200, 25)); label61.setPreferredSize(new Dimension(200, 25)); label61.setText("Maximum upload date : "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel29.add(label61, gbc); txtGetUntaggedMaxUpDate = new JTextField(); txtGetUntaggedMaxUpDate.setMaximumSize(new Dimension(200, 25)); txtGetUntaggedMaxUpDate.setMinimumSize(new Dimension(200, 25)); txtGetUntaggedMaxUpDate.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel29.add(txtGetUntaggedMaxUpDate, gbc); final JLabel label62 = new JLabel(); label62.setHorizontalAlignment(4); label62.setMaximumSize(new Dimension(200, 25)); label62.setMinimumSize(new Dimension(200, 25)); label62.setPreferredSize(new Dimension(200, 25)); label62.setText("Maximum taken date : "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel29.add(label62, gbc); txtGetUntaggedMaxTakDate = new JTextField(); txtGetUntaggedMaxTakDate.setMaximumSize(new Dimension(200, 25)); txtGetUntaggedMaxTakDate.setMinimumSize(new Dimension(200, 25)); txtGetUntaggedMaxTakDate.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel29.add(txtGetUntaggedMaxTakDate, gbc); txtGetUntaggedPage = new JTextField(); txtGetUntaggedPage.setMaximumSize(new Dimension(200, 25)); txtGetUntaggedPage.setMinimumSize(new Dimension(200, 25)); txtGetUntaggedPage.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 3; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel29.add(txtGetUntaggedPage, gbc); cmbGetUntaggedPerPage = new JComboBox(); cmbGetUntaggedPerPage.setMaximumSize(new Dimension(200, 25)); cmbGetUntaggedPerPage.setMinimumSize(new Dimension(200, 25)); cmbGetUntaggedPerPage.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 3; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel29.add(cmbGetUntaggedPerPage, gbc); cmbGetUntaggedPrivacy = new JComboBox(); cmbGetUntaggedPrivacy.setMaximumSize(new Dimension(200, 25)); cmbGetUntaggedPrivacy.setMinimumSize(new Dimension(200, 25)); final DefaultComboBoxModel defaultComboBoxModel2 = new DefaultComboBoxModel(); defaultComboBoxModel2.addElement("public photos"); defaultComboBoxModel2.addElement("private photos visible to friends"); defaultComboBoxModel2.addElement("private photos visible to family"); defaultComboBoxModel2.addElement("private photos visible to friends & family"); defaultComboBoxModel2.addElement("completely private photos"); cmbGetUntaggedPrivacy.setModel(defaultComboBoxModel2); cmbGetUntaggedPrivacy.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 4; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel29.add(cmbGetUntaggedPrivacy, gbc); final JLabel label63 = new JLabel(); label63.setHorizontalAlignment(4); label63.setMaximumSize(new Dimension(200, 25)); label63.setMinimumSize(new Dimension(200, 25)); label63.setPreferredSize(new Dimension(200, 25)); label63.setText("Records Per Page : "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel29.add(label63, gbc); final JLabel label64 = new JLabel(); label64.setHorizontalAlignment(4); label64.setMaximumSize(new Dimension(200, 25)); label64.setMinimumSize(new Dimension(200, 25)); label64.setPreferredSize(new Dimension(200, 25)); label64.setText("Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel29.add(label64, gbc); final JLabel label65 = new JLabel(); label65.setHorizontalAlignment(4); label65.setMaximumSize(new Dimension(200, 25)); label65.setMinimumSize(new Dimension(200, 25)); label65.setPreferredSize(new Dimension(200, 25)); label65.setText("Privacy Filter : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel29.add(label65, gbc); getUntaggedInvoke = new JButton(); getUntaggedInvoke.setFont( new Font(getUntaggedInvoke.getFont().getName(), Font.BOLD, getUntaggedInvoke.getFont().getSize())); getUntaggedInvoke.setLabel("Invoke"); getUntaggedInvoke.setMaximumSize(new Dimension(100, 30)); getUntaggedInvoke.setMinimumSize(new Dimension(100, 30)); getUntaggedInvoke.setPreferredSize(new Dimension(100, 30)); getUntaggedInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.gridwidth = 4; gbc.insets = new Insets(10, 0, 0, 0); panel29.add(getUntaggedInvoke, gbc); final JPanel panel30 = new JPanel(); panel30.setLayout(new GridBagLayout()); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 4; gbc.fill = GridBagConstraints.BOTH; panel29.add(panel30, gbc); final JLabel label66 = new JLabel(); label66.setFont(new Font(label66.getFont().getName(), Font.BOLD, label66.getFont().getSize())); label66.setHorizontalAlignment(0); label66.setMaximumSize(new Dimension(400, 25)); label66.setMinimumSize(new Dimension(400, 25)); label66.setPreferredSize(new Dimension(400, 25)); label66.setText("Extra information to fetch for each returned record"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 5; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(0, 0, 10, 0); panel30.add(label66, gbc); chkGetUntaggedLicense = new JCheckBox(); chkGetUntaggedLicense.setText("license"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel30.add(chkGetUntaggedLicense, gbc); chkGetUntaggedDateUp = new JCheckBox(); chkGetUntaggedDateUp.setText("date_upload"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel30.add(chkGetUntaggedDateUp, gbc); chkGetUntaggedDateTak = new JCheckBox(); chkGetUntaggedDateTak.setText("date_taken"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel30.add(chkGetUntaggedDateTak, gbc); chkGetUntaggedOwner = new JCheckBox(); chkGetUntaggedOwner.setText("owner_name"); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel30.add(chkGetUntaggedOwner, gbc); chkGetUntaggedServer = new JCheckBox(); chkGetUntaggedServer.setText("icon_server"); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel30.add(chkGetUntaggedServer, gbc); chkGetUntaggedOriginal = new JCheckBox(); chkGetUntaggedOriginal.setText("original_format"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel30.add(chkGetUntaggedOriginal, gbc); chkGetUntaggedLastUp = new JCheckBox(); chkGetUntaggedLastUp.setText("last_update"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel30.add(chkGetUntaggedLastUp, gbc); chkGetUntaggedGeo = new JCheckBox(); chkGetUntaggedGeo.setText("geo"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel30.add(chkGetUntaggedGeo, gbc); chkGetUntaggedTags = new JCheckBox(); chkGetUntaggedTags.setText("tags"); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel30.add(chkGetUntaggedTags, gbc); chkGetUntaggedMachine = new JCheckBox(); chkGetUntaggedMachine.setText("machine_tags"); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel30.add(chkGetUntaggedMachine, gbc); final JScrollPane scrollPane21 = new JScrollPane(); scrollPane21.setMaximumSize(new Dimension(550, 225)); scrollPane21.setMinimumSize(new Dimension(550, 225)); scrollPane21.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 7; gbc.gridwidth = 4; gbc.weighty = 1.0; panel29.add(scrollPane21, gbc); getUntaggedOutput = new JTextArea(); getUntaggedOutput.setBackground(new Color(-3355444)); scrollPane21.setViewportView(getUntaggedOutput); final JPanel panel31 = new JPanel(); panel31.setLayout(new GridBagLayout()); photosOperationPane.addTab("GetWithGeoData", panel31); final JLabel label67 = new JLabel(); label67.setFont(new Font(label67.getFont().getName(), Font.BOLD, label67.getFont().getSize())); label67.setHorizontalAlignment(0); label67.setMaximumSize(new Dimension(600, 50)); label67.setMinimumSize(new Dimension(600, 50)); label67.setPreferredSize(new Dimension(600, 50)); label67.setText("Returns a list of your geo-tagged photos."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 4; gbc.anchor = GridBagConstraints.NORTH; panel31.add(label67, gbc); final JLabel label68 = new JLabel(); label68.setHorizontalAlignment(4); label68.setMaximumSize(new Dimension(200, 25)); label68.setMinimumSize(new Dimension(200, 25)); label68.setPreferredSize(new Dimension(200, 25)); label68.setText("Minimum upload date : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel31.add(label68, gbc); txtGetWithGeoDataMinUpDate = new JTextField(); txtGetWithGeoDataMinUpDate.setMaximumSize(new Dimension(200, 25)); txtGetWithGeoDataMinUpDate.setMinimumSize(new Dimension(200, 25)); txtGetWithGeoDataMinUpDate.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel31.add(txtGetWithGeoDataMinUpDate, gbc); final JLabel label69 = new JLabel(); label69.setHorizontalAlignment(4); label69.setMaximumSize(new Dimension(200, 25)); label69.setMinimumSize(new Dimension(200, 25)); label69.setPreferredSize(new Dimension(200, 25)); label69.setText("Maximum upload date : "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel31.add(label69, gbc); txtGetWithGeoDataMaxUpDate = new JTextField(); txtGetWithGeoDataMaxUpDate.setMaximumSize(new Dimension(200, 25)); txtGetWithGeoDataMaxUpDate.setMinimumSize(new Dimension(200, 25)); txtGetWithGeoDataMaxUpDate.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel31.add(txtGetWithGeoDataMaxUpDate, gbc); final JLabel label70 = new JLabel(); label70.setHorizontalAlignment(4); label70.setMaximumSize(new Dimension(200, 25)); label70.setMinimumSize(new Dimension(200, 25)); label70.setPreferredSize(new Dimension(200, 25)); label70.setText("Maximum taken date : "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel31.add(label70, gbc); final JLabel label71 = new JLabel(); label71.setHorizontalAlignment(4); label71.setMaximumSize(new Dimension(200, 25)); label71.setMinimumSize(new Dimension(200, 25)); label71.setPreferredSize(new Dimension(200, 25)); label71.setText("Minimum taken date : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel31.add(label71, gbc); final JLabel label72 = new JLabel(); label72.setHorizontalAlignment(4); label72.setMaximumSize(new Dimension(200, 25)); label72.setMinimumSize(new Dimension(200, 25)); label72.setPreferredSize(new Dimension(200, 25)); label72.setText("Records Per Page : "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel31.add(label72, gbc); final JLabel label73 = new JLabel(); label73.setHorizontalAlignment(4); label73.setMaximumSize(new Dimension(200, 25)); label73.setMinimumSize(new Dimension(200, 25)); label73.setPreferredSize(new Dimension(200, 25)); label73.setText("Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel31.add(label73, gbc); final JLabel label74 = new JLabel(); label74.setHorizontalAlignment(4); label74.setMaximumSize(new Dimension(200, 25)); label74.setMinimumSize(new Dimension(200, 25)); label74.setPreferredSize(new Dimension(200, 25)); label74.setText("Privacy Filter : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel31.add(label74, gbc); txtGetWithGeoDataMaxTakDate = new JTextField(); txtGetWithGeoDataMaxTakDate.setMaximumSize(new Dimension(200, 25)); txtGetWithGeoDataMaxTakDate.setMinimumSize(new Dimension(200, 25)); txtGetWithGeoDataMaxTakDate.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel31.add(txtGetWithGeoDataMaxTakDate, gbc); txtGetWithGeoDataMinTakDate = new JTextField(); txtGetWithGeoDataMinTakDate.setMaximumSize(new Dimension(200, 25)); txtGetWithGeoDataMinTakDate.setMinimumSize(new Dimension(200, 25)); txtGetWithGeoDataMinTakDate.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel31.add(txtGetWithGeoDataMinTakDate, gbc); txtGetWithGeoDataPage = new JTextField(); txtGetWithGeoDataPage.setMaximumSize(new Dimension(200, 25)); txtGetWithGeoDataPage.setMinimumSize(new Dimension(200, 25)); txtGetWithGeoDataPage.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 3; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel31.add(txtGetWithGeoDataPage, gbc); cmbGetWithGeoDataPerPage = new JComboBox(); cmbGetWithGeoDataPerPage.setMaximumSize(new Dimension(200, 25)); cmbGetWithGeoDataPerPage.setMinimumSize(new Dimension(200, 25)); cmbGetWithGeoDataPerPage.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 3; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel31.add(cmbGetWithGeoDataPerPage, gbc); cmbGetWithGeoDataPrivacy = new JComboBox(); cmbGetWithGeoDataPrivacy.setMaximumSize(new Dimension(200, 25)); cmbGetWithGeoDataPrivacy.setMinimumSize(new Dimension(200, 25)); cmbGetWithGeoDataPrivacy.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 4; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel31.add(cmbGetWithGeoDataPrivacy, gbc); getWithGeoDataInvoke = new JButton(); getWithGeoDataInvoke.setFont(new Font(getWithGeoDataInvoke.getFont().getName(), Font.BOLD, getWithGeoDataInvoke.getFont().getSize())); getWithGeoDataInvoke.setMaximumSize(new Dimension(100, 30)); getWithGeoDataInvoke.setMinimumSize(new Dimension(100, 30)); getWithGeoDataInvoke.setPreferredSize(new Dimension(100, 30)); getWithGeoDataInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.gridwidth = 4; gbc.insets = new Insets(10, 0, 0, 0); panel31.add(getWithGeoDataInvoke, gbc); final JPanel panel32 = new JPanel(); panel32.setLayout(new GridBagLayout()); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 4; gbc.fill = GridBagConstraints.BOTH; panel31.add(panel32, gbc); final JLabel label75 = new JLabel(); label75.setFont(new Font(label75.getFont().getName(), Font.BOLD, label75.getFont().getSize())); label75.setHorizontalAlignment(0); label75.setMaximumSize(new Dimension(200, 25)); label75.setMinimumSize(new Dimension(200, 25)); label75.setPreferredSize(new Dimension(200, 25)); label75.setText("Extra information to fetch for each returned record"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 5; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(0, 0, 10, 0); panel32.add(label75, gbc); chkGetWithGeoDataLicense = new JCheckBox(); chkGetWithGeoDataLicense.setText("license"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel32.add(chkGetWithGeoDataLicense, gbc); chkGetWithGeoDataDateUp = new JCheckBox(); chkGetWithGeoDataDateUp.setText("date_upload"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel32.add(chkGetWithGeoDataDateUp, gbc); chkGetWithGeoDataDateTak = new JCheckBox(); chkGetWithGeoDataDateTak.setText("date_taken"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel32.add(chkGetWithGeoDataDateTak, gbc); chkGetWithGeoDataOwner = new JCheckBox(); chkGetWithGeoDataOwner.setText("owner_name"); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel32.add(chkGetWithGeoDataOwner, gbc); chkGetWithGeoDataServer = new JCheckBox(); chkGetWithGeoDataServer.setText("icon_server"); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel32.add(chkGetWithGeoDataServer, gbc); chkGetWithGeoDataOriginal = new JCheckBox(); chkGetWithGeoDataOriginal.setText("original_format"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel32.add(chkGetWithGeoDataOriginal, gbc); chkGetWithGeoDataLastUp = new JCheckBox(); chkGetWithGeoDataLastUp.setText("last_update"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel32.add(chkGetWithGeoDataLastUp, gbc); chkGetWithGeoDataGeo = new JCheckBox(); chkGetWithGeoDataGeo.setText("geo"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel32.add(chkGetWithGeoDataGeo, gbc); chkGetWithGeoDataTags = new JCheckBox(); chkGetWithGeoDataTags.setText("tags"); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel32.add(chkGetWithGeoDataTags, gbc); chkGetWithGeoDataMachine = new JCheckBox(); chkGetWithGeoDataMachine.setText("machine_tags"); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel32.add(chkGetWithGeoDataMachine, gbc); final JScrollPane scrollPane22 = new JScrollPane(); scrollPane22.setMaximumSize(new Dimension(550, 225)); scrollPane22.setMinimumSize(new Dimension(550, 225)); scrollPane22.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 7; gbc.gridwidth = 4; gbc.weighty = 1.0; panel31.add(scrollPane22, gbc); getWithGeoDataOutput = new JTextArea(); getWithGeoDataOutput.setBackground(new Color(-3355444)); scrollPane22.setViewportView(getWithGeoDataOutput); final JPanel panel33 = new JPanel(); panel33.setLayout(new GridBagLayout()); photosOperationPane.addTab("GetWithoutGeoData", panel33); final JLabel label76 = new JLabel(); label76.setFont(new Font(label76.getFont().getName(), Font.BOLD, label76.getFont().getSize())); label76.setHorizontalAlignment(0); label76.setMaximumSize(new Dimension(600, 50)); label76.setMinimumSize(new Dimension(600, 50)); label76.setPreferredSize(new Dimension(600, 50)); label76.setText("Returns a list of your photos which haven't been geo-tagged."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 4; gbc.anchor = GridBagConstraints.NORTH; panel33.add(label76, gbc); final JLabel label77 = new JLabel(); label77.setHorizontalAlignment(4); label77.setMaximumSize(new Dimension(200, 25)); label77.setMinimumSize(new Dimension(200, 25)); label77.setPreferredSize(new Dimension(200, 25)); label77.setText("Minimum upload date : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel33.add(label77, gbc); txtGetWithoutGeoDataMinUpDate = new JTextField(); txtGetWithoutGeoDataMinUpDate.setMaximumSize(new Dimension(200, 25)); txtGetWithoutGeoDataMinUpDate.setMinimumSize(new Dimension(200, 25)); txtGetWithoutGeoDataMinUpDate.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel33.add(txtGetWithoutGeoDataMinUpDate, gbc); final JLabel label78 = new JLabel(); label78.setHorizontalAlignment(4); label78.setMaximumSize(new Dimension(200, 25)); label78.setMinimumSize(new Dimension(200, 25)); label78.setPreferredSize(new Dimension(200, 25)); label78.setText("Maximum upload date : "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel33.add(label78, gbc); txtGetWithoutGeoDataMaxUpDate = new JTextField(); txtGetWithoutGeoDataMaxUpDate.setMaximumSize(new Dimension(200, 25)); txtGetWithoutGeoDataMaxUpDate.setMinimumSize(new Dimension(200, 25)); txtGetWithoutGeoDataMaxUpDate.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel33.add(txtGetWithoutGeoDataMaxUpDate, gbc); final JLabel label79 = new JLabel(); label79.setHorizontalAlignment(4); label79.setMaximumSize(new Dimension(200, 25)); label79.setMinimumSize(new Dimension(200, 25)); label79.setPreferredSize(new Dimension(200, 25)); label79.setText("Maximum taken date : "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel33.add(label79, gbc); final JLabel label80 = new JLabel(); label80.setHorizontalAlignment(4); label80.setMaximumSize(new Dimension(200, 25)); label80.setMinimumSize(new Dimension(200, 25)); label80.setPreferredSize(new Dimension(200, 25)); label80.setText("Minimum taken date : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel33.add(label80, gbc); final JLabel label81 = new JLabel(); label81.setHorizontalAlignment(4); label81.setMaximumSize(new Dimension(200, 25)); label81.setMinimumSize(new Dimension(200, 25)); label81.setPreferredSize(new Dimension(200, 25)); label81.setText("Records Per Page : "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel33.add(label81, gbc); final JLabel label82 = new JLabel(); label82.setHorizontalAlignment(4); label82.setMaximumSize(new Dimension(200, 25)); label82.setMinimumSize(new Dimension(200, 25)); label82.setPreferredSize(new Dimension(200, 25)); label82.setText("Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel33.add(label82, gbc); final JLabel label83 = new JLabel(); label83.setHorizontalAlignment(4); label83.setMaximumSize(new Dimension(200, 25)); label83.setMinimumSize(new Dimension(200, 25)); label83.setPreferredSize(new Dimension(200, 25)); label83.setText("Privacy Filter : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel33.add(label83, gbc); txtGetWithoutGeoDataMaxTakDate = new JPasswordField(); txtGetWithoutGeoDataMaxTakDate.setMaximumSize(new Dimension(200, 25)); txtGetWithoutGeoDataMaxTakDate.setMinimumSize(new Dimension(200, 25)); txtGetWithoutGeoDataMaxTakDate.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel33.add(txtGetWithoutGeoDataMaxTakDate, gbc); txtGetWithoutGeoDataMinTakDate = new JTextField(); txtGetWithoutGeoDataMinTakDate.setMaximumSize(new Dimension(200, 25)); txtGetWithoutGeoDataMinTakDate.setMinimumSize(new Dimension(200, 25)); txtGetWithoutGeoDataMinTakDate.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel33.add(txtGetWithoutGeoDataMinTakDate, gbc); txtGetWithoutGeoDataPage = new JTextField(); txtGetWithoutGeoDataPage.setMaximumSize(new Dimension(200, 25)); txtGetWithoutGeoDataPage.setMinimumSize(new Dimension(200, 25)); txtGetWithoutGeoDataPage.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 3; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel33.add(txtGetWithoutGeoDataPage, gbc); cmbGetWithoutGeoDataPerPage = new JComboBox(); cmbGetWithoutGeoDataPerPage.setMaximumSize(new Dimension(200, 25)); cmbGetWithoutGeoDataPerPage.setMinimumSize(new Dimension(200, 25)); cmbGetWithoutGeoDataPerPage.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 3; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel33.add(cmbGetWithoutGeoDataPerPage, gbc); cmbGetWithoutGeoDataPrivacy = new JComboBox(); cmbGetWithoutGeoDataPrivacy.setMaximumSize(new Dimension(200, 25)); cmbGetWithoutGeoDataPrivacy.setMinimumSize(new Dimension(200, 25)); final DefaultComboBoxModel defaultComboBoxModel3 = new DefaultComboBoxModel(); defaultComboBoxModel3.addElement("public photos"); defaultComboBoxModel3.addElement("private photos visible to friends"); defaultComboBoxModel3.addElement("private photos visible to family"); defaultComboBoxModel3.addElement("private photos visible to friends & family"); defaultComboBoxModel3.addElement("completely private photos"); cmbGetWithoutGeoDataPrivacy.setModel(defaultComboBoxModel3); cmbGetWithoutGeoDataPrivacy.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 4; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel33.add(cmbGetWithoutGeoDataPrivacy, gbc); getWithoutGeoDataInvoke = new JButton(); getWithoutGeoDataInvoke.setFont(new Font(getWithoutGeoDataInvoke.getFont().getName(), Font.BOLD, getWithoutGeoDataInvoke.getFont().getSize())); getWithoutGeoDataInvoke.setLabel("Invoke"); getWithoutGeoDataInvoke.setMaximumSize(new Dimension(100, 30)); getWithoutGeoDataInvoke.setMinimumSize(new Dimension(100, 30)); getWithoutGeoDataInvoke.setPreferredSize(new Dimension(100, 30)); getWithoutGeoDataInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.gridwidth = 4; gbc.insets = new Insets(10, 0, 0, 0); panel33.add(getWithoutGeoDataInvoke, gbc); final JPanel panel34 = new JPanel(); panel34.setLayout(new GridBagLayout()); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 4; gbc.fill = GridBagConstraints.BOTH; panel33.add(panel34, gbc); final JLabel label84 = new JLabel(); label84.setFont(new Font(label84.getFont().getName(), Font.BOLD, label84.getFont().getSize())); label84.setHorizontalAlignment(0); label84.setMaximumSize(new Dimension(600, 25)); label84.setMinimumSize(new Dimension(600, 25)); label84.setPreferredSize(new Dimension(600, 25)); label84.setText("Extra information to fetch for each returned record"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 5; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(0, 0, 10, 0); panel34.add(label84, gbc); chkGetWithoutGeoDataLicense = new JCheckBox(); chkGetWithoutGeoDataLicense.setText("license"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel34.add(chkGetWithoutGeoDataLicense, gbc); chkGetWithoutGeoDataDateUp = new JCheckBox(); chkGetWithoutGeoDataDateUp.setText("date_upload"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel34.add(chkGetWithoutGeoDataDateUp, gbc); chkGetWithoutGeoDataDateTak = new JCheckBox(); chkGetWithoutGeoDataDateTak.setText("date_taken"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel34.add(chkGetWithoutGeoDataDateTak, gbc); chkGetWithoutGeoDataGeo = new JCheckBox(); chkGetWithoutGeoDataGeo.setText("geo"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel34.add(chkGetWithoutGeoDataGeo, gbc); chkGetWithoutGeoDataOwner = new JCheckBox(); chkGetWithoutGeoDataOwner.setText("owner_name"); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel34.add(chkGetWithoutGeoDataOwner, gbc); chkGetWithoutGeoDataTags = new JCheckBox(); chkGetWithoutGeoDataTags.setText("tags"); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel34.add(chkGetWithoutGeoDataTags, gbc); chkGetWithoutGeoDataLastUp = new JCheckBox(); chkGetWithoutGeoDataLastUp.setText("last_update"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel34.add(chkGetWithoutGeoDataLastUp, gbc); chkGetWithoutGeoDataOriginal = new JCheckBox(); chkGetWithoutGeoDataOriginal.setText("original_format"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel34.add(chkGetWithoutGeoDataOriginal, gbc); chkGetWithoutGeoDataServer = new JCheckBox(); chkGetWithoutGeoDataServer.setText("icon_server"); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; panel34.add(chkGetWithoutGeoDataServer, gbc); chkGetWithoutGeoDataMachine = new JCheckBox(); chkGetWithoutGeoDataMachine.setText("machine_tags"); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; panel34.add(chkGetWithoutGeoDataMachine, gbc); final JScrollPane scrollPane23 = new JScrollPane(); scrollPane23.setMaximumSize(new Dimension(550, 225)); scrollPane23.setMinimumSize(new Dimension(550, 225)); scrollPane23.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 7; gbc.gridwidth = 4; gbc.weighty = 1.0; panel33.add(scrollPane23, gbc); getWithoutGeoDataOutput = new JTextArea(); getWithoutGeoDataOutput.setBackground(new Color(-3355444)); scrollPane23.setViewportView(getWithoutGeoDataOutput); final JPanel panel35 = new JPanel(); panel35.setLayout(new GridBagLayout()); photosOperationPane.addTab("RecentlyUpdated ", panel35); final JLabel label85 = new JLabel(); label85.setFont(new Font(label85.getFont().getName(), Font.BOLD, label85.getFont().getSize())); label85.setHorizontalAlignment(0); label85.setMaximumSize(new Dimension(616, 50)); label85.setMinimumSize(new Dimension(616, 50)); label85.setPreferredSize(new Dimension(616, 50)); label85.setText( "Return a list of your photos that have been recently created or which have been recently modified."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(10, 0, 10, 0); panel35.add(label85, gbc); final JLabel label86 = new JLabel(); label86.setHorizontalAlignment(4); label86.setMaximumSize(new Dimension(400, 25)); label86.setMinimumSize(new Dimension(400, 25)); label86.setPreferredSize(new Dimension(400, 25)); label86.setText("Minimum Date : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel35.add(label86, gbc); txtRecentlyUpdatedMinDate = new JTextField(); txtRecentlyUpdatedMinDate.setMaximumSize(new Dimension(200, 25)); txtRecentlyUpdatedMinDate.setMinimumSize(new Dimension(200, 25)); txtRecentlyUpdatedMinDate.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel35.add(txtRecentlyUpdatedMinDate, gbc); final JLabel label87 = new JLabel(); label87.setHorizontalAlignment(4); label87.setMaximumSize(new Dimension(400, 25)); label87.setMinimumSize(new Dimension(400, 25)); label87.setPreferredSize(new Dimension(400, 25)); label87.setText("Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel35.add(label87, gbc); txtRecentlyUpdatedPage = new JTextField(); txtRecentlyUpdatedPage.setMaximumSize(new Dimension(200, 25)); txtRecentlyUpdatedPage.setMinimumSize(new Dimension(200, 25)); txtRecentlyUpdatedPage.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel35.add(txtRecentlyUpdatedPage, gbc); final JLabel label88 = new JLabel(); label88.setHorizontalAlignment(4); label88.setMaximumSize(new Dimension(400, 25)); label88.setMinimumSize(new Dimension(400, 25)); label88.setPreferredSize(new Dimension(400, 25)); label88.setText("Per Page :"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel35.add(label88, gbc); recentlyUpdatedInvoke = new JButton(); recentlyUpdatedInvoke.setFont(new Font(recentlyUpdatedInvoke.getFont().getName(), Font.BOLD, recentlyUpdatedInvoke.getFont().getSize())); recentlyUpdatedInvoke.setLabel("Invoke"); recentlyUpdatedInvoke.setMaximumSize(new Dimension(100, 30)); recentlyUpdatedInvoke.setMinimumSize(new Dimension(100, 30)); recentlyUpdatedInvoke.setPreferredSize(new Dimension(100, 30)); recentlyUpdatedInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 2; gbc.insets = new Insets(25, 0, 0, 0); panel35.add(recentlyUpdatedInvoke, gbc); final JPanel panel36 = new JPanel(); panel36.setLayout(new GridBagLayout()); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.fill = GridBagConstraints.BOTH; panel35.add(panel36, gbc); final JLabel label89 = new JLabel(); label89.setFont(new Font(label89.getFont().getName(), Font.BOLD, label89.getFont().getSize())); label89.setHorizontalAlignment(0); label89.setMaximumSize(new Dimension(319, 25)); label89.setMinimumSize(new Dimension(319, 25)); label89.setPreferredSize(new Dimension(319, 25)); label89.setText("Extra information to fetch for each returned record"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 5; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(0, 0, 10, 0); panel36.add(label89, gbc); chkRecentlyUpdatedLicense = new JCheckBox(); chkRecentlyUpdatedLicense.setText("license"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel36.add(chkRecentlyUpdatedLicense, gbc); chkRecentlyUpdatedServer = new JCheckBox(); chkRecentlyUpdatedServer.setText("icon_server"); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel36.add(chkRecentlyUpdatedServer, gbc); chkRecentlyUpdatedOwner = new JCheckBox(); chkRecentlyUpdatedOwner.setText("owner_name"); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel36.add(chkRecentlyUpdatedOwner, gbc); chkRecentlyUpdatedDateTak = new JCheckBox(); chkRecentlyUpdatedDateTak.setText("date_taken"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel36.add(chkRecentlyUpdatedDateTak, gbc); chkRecentlyUpdatedDateUp = new JCheckBox(); chkRecentlyUpdatedDateUp.setText("date_upload"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel36.add(chkRecentlyUpdatedDateUp, gbc); chkRecentlyUpdatedOriginal = new JCheckBox(); chkRecentlyUpdatedOriginal.setText("original_format"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel36.add(chkRecentlyUpdatedOriginal, gbc); chkRecentlyUpdatedLastUp = new JCheckBox(); chkRecentlyUpdatedLastUp.setText("last_update"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel36.add(chkRecentlyUpdatedLastUp, gbc); chkRecentlyUpdatedGeo = new JCheckBox(); chkRecentlyUpdatedGeo.setText("geo"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel36.add(chkRecentlyUpdatedGeo, gbc); chkRecentlyUpdatedTags = new JCheckBox(); chkRecentlyUpdatedTags.setText("tags"); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel36.add(chkRecentlyUpdatedTags, gbc); chkRecentlyUpdatedMachine = new JCheckBox(); chkRecentlyUpdatedMachine.setText("machine_tags"); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel36.add(chkRecentlyUpdatedMachine, gbc); final JScrollPane scrollPane24 = new JScrollPane(); scrollPane24.setMaximumSize(new Dimension(550, 225)); scrollPane24.setMinimumSize(new Dimension(550, 225)); scrollPane24.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.gridwidth = 2; gbc.weighty = 1.0; panel35.add(scrollPane24, gbc); recentlyUpdatedOutput = new JTextArea(); recentlyUpdatedOutput.setBackground(new Color(-3355444)); scrollPane24.setViewportView(recentlyUpdatedOutput); cmbRecentlyUpdatedPerPage = new JComboBox(); cmbRecentlyUpdatedPerPage.setMaximumSize(new Dimension(200, 25)); cmbRecentlyUpdatedPerPage.setMinimumSize(new Dimension(200, 25)); cmbRecentlyUpdatedPerPage.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 10, 0); panel35.add(cmbRecentlyUpdatedPerPage, gbc); final JPanel panel37 = new JPanel(); panel37.setLayout(new GridBagLayout()); photosOperationPane.addTab("RemoveTag", panel37); final JLabel label90 = new JLabel(); label90.setFont(new Font(label90.getFont().getName(), Font.BOLD, label90.getFont().getSize())); label90.setHorizontalAlignment(0); label90.setMaximumSize(new Dimension(177, 50)); label90.setMinimumSize(new Dimension(177, 50)); label90.setPreferredSize(new Dimension(177, 50)); label90.setText("Remove a tag from a photo."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel37.add(label90, gbc); final JLabel label91 = new JLabel(); label91.setFont(new Font(label91.getFont().getName(), Font.BOLD, label91.getFont().getSize())); label91.setHorizontalAlignment(4); label91.setMaximumSize(new Dimension(400, 25)); label91.setMinimumSize(new Dimension(400, 25)); label91.setPreferredSize(new Dimension(400, 25)); label91.setText("Tag ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; panel37.add(label91, gbc); txtRemoveTagTadID = new JTextField(); txtRemoveTagTadID.setMaximumSize(new Dimension(200, 25)); txtRemoveTagTadID.setMinimumSize(new Dimension(200, 25)); txtRemoveTagTadID.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 30, 0, 0); panel37.add(txtRemoveTagTadID, gbc); removeTagInvoke = new JButton(); removeTagInvoke.setFont( new Font(removeTagInvoke.getFont().getName(), Font.BOLD, removeTagInvoke.getFont().getSize())); removeTagInvoke.setLabel("Invoke"); removeTagInvoke.setMaximumSize(new Dimension(100, 30)); removeTagInvoke.setMinimumSize(new Dimension(100, 30)); removeTagInvoke.setPreferredSize(new Dimension(100, 30)); removeTagInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel37.add(removeTagInvoke, gbc); final JScrollPane scrollPane25 = new JScrollPane(); scrollPane25.setMaximumSize(new Dimension(550, 225)); scrollPane25.setMinimumSize(new Dimension(550, 225)); scrollPane25.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.weighty = 1.0; panel37.add(scrollPane25, gbc); removeTagOutput = new JTextArea(); removeTagOutput.setBackground(new Color(-3355444)); scrollPane25.setViewportView(removeTagOutput); final JPanel panel38 = new JPanel(); panel38.setLayout(new GridBagLayout()); photosOperationPane.addTab("Search", panel38); final JLabel label92 = new JLabel(); label92.setFont(new Font(label92.getFont().getName(), Font.BOLD, label92.getFont().getSize())); label92.setHorizontalAlignment(0); label92.setMaximumSize(new Dimension(600, 50)); label92.setMinimumSize(new Dimension(600, 50)); label92.setPreferredSize(new Dimension(600, 50)); label92.setText("Return a list of photos matching some criteria. "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 6; gbc.anchor = GridBagConstraints.NORTH; panel38.add(label92, gbc); final JLabel label93 = new JLabel(); label93.setFont( new Font(label93.getFont().getName(), label93.getFont().getStyle(), label93.getFont().getSize())); label93.setHorizontalAlignment(4); label93.setMaximumSize(new Dimension(130, 25)); label93.setMinimumSize(new Dimension(130, 25)); label93.setPreferredSize(new Dimension(130, 25)); label93.setText("User ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 5, 0); panel38.add(label93, gbc); txtSearchUserID = new JTextField(); txtSearchUserID.setMaximumSize(new Dimension(130, 25)); txtSearchUserID.setMinimumSize(new Dimension(130, 25)); txtSearchUserID.setPreferredSize(new Dimension(130, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 20, 5, 0); panel38.add(txtSearchUserID, gbc); final JLabel label94 = new JLabel(); label94.setHorizontalAlignment(4); label94.setMaximumSize(new Dimension(130, 25)); label94.setMinimumSize(new Dimension(130, 25)); label94.setPreferredSize(new Dimension(130, 25)); label94.setText("Text : "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 5, 0); panel38.add(label94, gbc); txtSearchText = new JTextField(); txtSearchText.setMaximumSize(new Dimension(130, 25)); txtSearchText.setMinimumSize(new Dimension(130, 25)); txtSearchText.setPreferredSize(new Dimension(130, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 20, 5, 0); panel38.add(txtSearchText, gbc); final JLabel label95 = new JLabel(); label95.setHorizontalAlignment(4); label95.setMaximumSize(new Dimension(130, 25)); label95.setMinimumSize(new Dimension(130, 25)); label95.setPreferredSize(new Dimension(130, 25)); label95.setText("Tags : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 5, 0); panel38.add(label95, gbc); txtSearchTags = new JTextField(); txtSearchTags.setMaximumSize(new Dimension(130, 25)); txtSearchTags.setMinimumSize(new Dimension(130, 25)); txtSearchTags.setPreferredSize(new Dimension(130, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 20, 5, 0); panel38.add(txtSearchTags, gbc); final JLabel label96 = new JLabel(); label96.setHorizontalAlignment(4); label96.setMaximumSize(new Dimension(130, 25)); label96.setMinimumSize(new Dimension(130, 25)); label96.setPreferredSize(new Dimension(130, 25)); label96.setText("Tag Mode : "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 5, 0); panel38.add(label96, gbc); cmbSearchTagMode = new JComboBox(); cmbSearchTagMode.setMaximumSize(new Dimension(130, 25)); cmbSearchTagMode.setMinimumSize(new Dimension(130, 25)); final DefaultComboBoxModel defaultComboBoxModel4 = new DefaultComboBoxModel(); defaultComboBoxModel4.addElement("None"); defaultComboBoxModel4.addElement("Any"); defaultComboBoxModel4.addElement("Or"); cmbSearchTagMode.setModel(defaultComboBoxModel4); cmbSearchTagMode.setPreferredSize(new Dimension(130, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 20, 5, 0); panel38.add(cmbSearchTagMode, gbc); final JLabel label97 = new JLabel(); label97.setHorizontalAlignment(4); label97.setMaximumSize(new Dimension(130, 25)); label97.setMinimumSize(new Dimension(130, 25)); label97.setPreferredSize(new Dimension(130, 25)); label97.setText("Min Upload Date: "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 5, 0); panel38.add(label97, gbc); txtSearchMinUpDate = new JTextField(); txtSearchMinUpDate.setMaximumSize(new Dimension(130, 25)); txtSearchMinUpDate.setMinimumSize(new Dimension(130, 25)); txtSearchMinUpDate.setPreferredSize(new Dimension(130, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 3; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 20, 5, 0); panel38.add(txtSearchMinUpDate, gbc); final JLabel label98 = new JLabel(); label98.setHorizontalAlignment(4); label98.setMaximumSize(new Dimension(130, 25)); label98.setMinimumSize(new Dimension(130, 25)); label98.setPreferredSize(new Dimension(130, 25)); label98.setText("Max Upload Date: "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 5, 0); panel38.add(label98, gbc); txtSearchMaxUpDate = new JTextField(); txtSearchMaxUpDate.setMaximumSize(new Dimension(130, 25)); txtSearchMaxUpDate.setMinimumSize(new Dimension(130, 25)); txtSearchMaxUpDate.setPreferredSize(new Dimension(130, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 3; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 20, 5, 0); panel38.add(txtSearchMaxUpDate, gbc); final JLabel label99 = new JLabel(); label99.setHorizontalAlignment(4); label99.setMaximumSize(new Dimension(130, 25)); label99.setMinimumSize(new Dimension(130, 25)); label99.setPreferredSize(new Dimension(130, 25)); label99.setText("Max Taken Date : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 5, 0); panel38.add(label99, gbc); txtMaxTakDate = new JTextField(); txtMaxTakDate.setMaximumSize(new Dimension(130, 25)); txtMaxTakDate.setMinimumSize(new Dimension(130, 25)); txtMaxTakDate.setPreferredSize(new Dimension(130, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 4; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 20, 5, 0); panel38.add(txtMaxTakDate, gbc); final JLabel label100 = new JLabel(); label100.setHorizontalAlignment(4); label100.setMaximumSize(new Dimension(130, 25)); label100.setMinimumSize(new Dimension(130, 25)); label100.setPreferredSize(new Dimension(130, 25)); label100.setText("Group ID : "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 5, 0); panel38.add(label100, gbc); txtSearchGroupID = new JTextField(); txtSearchGroupID.setMaximumSize(new Dimension(130, 25)); txtSearchGroupID.setMinimumSize(new Dimension(130, 25)); txtSearchGroupID.setPreferredSize(new Dimension(130, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 4; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 20, 5, 0); panel38.add(txtSearchGroupID, gbc); final JLabel label101 = new JLabel(); label101.setHorizontalAlignment(4); label101.setMaximumSize(new Dimension(130, 25)); label101.setMinimumSize(new Dimension(130, 25)); label101.setPreferredSize(new Dimension(130, 25)); label101.setText("Machine Tag Mode : "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 6; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 5, 0); panel38.add(label101, gbc); cmbSearchMachineMode = new JComboBox(); cmbSearchMachineMode.setMaximumSize(new Dimension(130, 25)); cmbSearchMachineMode.setMinimumSize(new Dimension(130, 25)); final DefaultComboBoxModel defaultComboBoxModel5 = new DefaultComboBoxModel(); defaultComboBoxModel5.addElement("Any"); defaultComboBoxModel5.addElement("Or"); cmbSearchMachineMode.setModel(defaultComboBoxModel5); cmbSearchMachineMode.setPreferredSize(new Dimension(130, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 6; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 20, 5, 0); panel38.add(cmbSearchMachineMode, gbc); searchInvoke = new JButton(); searchInvoke .setFont(new Font(searchInvoke.getFont().getName(), Font.BOLD, searchInvoke.getFont().getSize())); searchInvoke.setLabel("Invoke"); searchInvoke.setMaximumSize(new Dimension(100, 30)); searchInvoke.setMinimumSize(new Dimension(100, 30)); searchInvoke.setPreferredSize(new Dimension(100, 30)); searchInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 8; gbc.gridwidth = 6; panel38.add(searchInvoke, gbc); final JPanel panel39 = new JPanel(); panel39.setLayout(new GridBagLayout()); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 7; gbc.gridwidth = 6; gbc.fill = GridBagConstraints.BOTH; panel38.add(panel39, gbc); final JLabel label102 = new JLabel(); label102.setFont(new Font(label102.getFont().getName(), Font.BOLD, label102.getFont().getSize())); label102.setHorizontalAlignment(0); label102.setMaximumSize(new Dimension(319, 25)); label102.setMinimumSize(new Dimension(319, 25)); label102.setPreferredSize(new Dimension(319, 25)); label102.setText("Extra information to fetch for each returned record"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 5; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(0, 0, 10, 0); panel39.add(label102, gbc); chkSearchLicense = new JCheckBox(); chkSearchLicense.setText("license"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel39.add(chkSearchLicense, gbc); chkSearchServer = new JCheckBox(); chkSearchServer.setText("icon_server"); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel39.add(chkSearchServer, gbc); chkSearchOwner = new JCheckBox(); chkSearchOwner.setText("owner_name"); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel39.add(chkSearchOwner, gbc); chkSearchDateTak = new JCheckBox(); chkSearchDateTak.setText("date_taken"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel39.add(chkSearchDateTak, gbc); chkSearchDateUp = new JCheckBox(); chkSearchDateUp.setText("date_upload"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel39.add(chkSearchDateUp, gbc); chkSearchOriginal = new JCheckBox(); chkSearchOriginal.setText("original_format"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel39.add(chkSearchOriginal, gbc); chkSearchLastUp = new JCheckBox(); chkSearchLastUp.setText("last_update"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel39.add(chkSearchLastUp, gbc); chkSearchGeo = new JCheckBox(); chkSearchGeo.setText("geo"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel39.add(chkSearchGeo, gbc); chkSearchTags = new JCheckBox(); chkSearchTags.setText("tags"); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel39.add(chkSearchTags, gbc); chkSearchMachine = new JCheckBox(); chkSearchMachine.setText("machine_tags"); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel39.add(chkSearchMachine, gbc); final JScrollPane scrollPane26 = new JScrollPane(); scrollPane26.setMaximumSize(new Dimension(550, 225)); scrollPane26.setMinimumSize(new Dimension(550, 225)); scrollPane26.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 9; gbc.gridwidth = 6; gbc.weighty = 1.0; panel38.add(scrollPane26, gbc); searchOutput = new JTextArea(); searchOutput.setBackground(new Color(-3355444)); scrollPane26.setViewportView(searchOutput); final JLabel label103 = new JLabel(); label103.setHorizontalAlignment(4); label103.setMaximumSize(new Dimension(130, 25)); label103.setMinimumSize(new Dimension(130, 25)); label103.setPreferredSize(new Dimension(130, 25)); label103.setText("License : "); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 5, 0); panel38.add(label103, gbc); txtSearchLicense = new JTextField(); txtSearchLicense.setMaximumSize(new Dimension(130, 25)); txtSearchLicense.setMinimumSize(new Dimension(130, 25)); txtSearchLicense.setPreferredSize(new Dimension(130, 25)); gbc = new GridBagConstraints(); gbc.gridx = 5; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 20, 5, 0); panel38.add(txtSearchLicense, gbc); cmbSearchSort = new JComboBox(); cmbSearchSort.setMaximumSize(new Dimension(130, 25)); cmbSearchSort.setMinimumSize(new Dimension(130, 25)); final DefaultComboBoxModel defaultComboBoxModel6 = new DefaultComboBoxModel(); defaultComboBoxModel6.addElement("None"); defaultComboBoxModel6.addElement("date-posted-asc"); defaultComboBoxModel6.addElement("date-posted-desc"); defaultComboBoxModel6.addElement("date-taken-asc"); defaultComboBoxModel6.addElement("date-taken-desc"); defaultComboBoxModel6.addElement("interestingness-desc"); defaultComboBoxModel6.addElement("interestingness-asc"); defaultComboBoxModel6.addElement("relevance"); cmbSearchSort.setModel(defaultComboBoxModel6); cmbSearchSort.setPreferredSize(new Dimension(130, 25)); gbc = new GridBagConstraints(); gbc.gridx = 5; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 20, 5, 0); panel38.add(cmbSearchSort, gbc); final JLabel label104 = new JLabel(); label104.setHorizontalAlignment(4); label104.setMaximumSize(new Dimension(130, 25)); label104.setMinimumSize(new Dimension(130, 25)); label104.setPreferredSize(new Dimension(130, 25)); label104.setText("Sort : "); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 5, 0); panel38.add(label104, gbc); final JLabel label105 = new JLabel(); label105.setHorizontalAlignment(4); label105.setMaximumSize(new Dimension(130, 25)); label105.setMinimumSize(new Dimension(130, 25)); label105.setPreferredSize(new Dimension(130, 25)); label105.setText("Min Taken Date : "); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 5, 0); panel38.add(label105, gbc); txtSearchMinTakDate = new JTextField(); txtSearchMinTakDate.setMaximumSize(new Dimension(130, 25)); txtSearchMinTakDate.setMinimumSize(new Dimension(130, 25)); txtSearchMinTakDate.setPreferredSize(new Dimension(130, 25)); gbc = new GridBagConstraints(); gbc.gridx = 5; gbc.gridy = 3; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 20, 5, 0); panel38.add(txtSearchMinTakDate, gbc); final JLabel label106 = new JLabel(); label106.setHorizontalAlignment(4); label106.setMaximumSize(new Dimension(130, 25)); label106.setMinimumSize(new Dimension(130, 25)); label106.setPreferredSize(new Dimension(130, 25)); label106.setText("Mchine Tags : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 5, 0); panel38.add(label106, gbc); txtSearchMachine = new JTextField(); txtSearchMachine.setMaximumSize(new Dimension(130, 25)); txtSearchMachine.setMinimumSize(new Dimension(130, 25)); txtSearchMachine.setPreferredSize(new Dimension(130, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 6; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 20, 5, 0); panel38.add(txtSearchMachine, gbc); final JLabel label107 = new JLabel(); label107.setHorizontalAlignment(4); label107.setMaximumSize(new Dimension(130, 25)); label107.setMinimumSize(new Dimension(130, 25)); label107.setPreferredSize(new Dimension(130, 25)); label107.setText("Accuracy : "); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 5; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 5, 0); panel38.add(label107, gbc); cmbSearchAccuracy = new JComboBox(); cmbSearchAccuracy.setMaximumSize(new Dimension(130, 25)); cmbSearchAccuracy.setMinimumSize(new Dimension(130, 25)); cmbSearchAccuracy.setPreferredSize(new Dimension(130, 25)); gbc = new GridBagConstraints(); gbc.gridx = 5; gbc.gridy = 5; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 20, 5, 0); panel38.add(cmbSearchAccuracy, gbc); final JLabel label108 = new JLabel(); label108.setHorizontalAlignment(4); label108.setMaximumSize(new Dimension(130, 25)); label108.setMinimumSize(new Dimension(130, 25)); label108.setPreferredSize(new Dimension(130, 25)); label108.setText("Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 5, 0); panel38.add(label108, gbc); final JLabel label109 = new JLabel(); label109.setHorizontalAlignment(4); label109.setMaximumSize(new Dimension(130, 25)); label109.setMinimumSize(new Dimension(130, 25)); label109.setPreferredSize(new Dimension(130, 25)); label109.setText("Per Page : "); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 5; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 5, 0); panel38.add(label109, gbc); final JLabel label110 = new JLabel(); label110.setHorizontalAlignment(4); label110.setMaximumSize(new Dimension(130, 25)); label110.setMinimumSize(new Dimension(130, 25)); label110.setPreferredSize(new Dimension(130, 25)); label110.setText("Privacy Filter : "); gbc = new GridBagConstraints(); gbc.gridx = 4; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 5, 0); panel38.add(label110, gbc); cmbSearchPerPage = new JComboBox(); cmbSearchPerPage.setMaximumSize(new Dimension(130, 25)); cmbSearchPerPage.setMinimumSize(new Dimension(130, 25)); final DefaultComboBoxModel defaultComboBoxModel8 = new DefaultComboBoxModel(); cmbSearchPerPage.setModel(defaultComboBoxModel8); cmbSearchPerPage.setPreferredSize(new Dimension(130, 25)); gbc = new GridBagConstraints(); gbc.gridx = 3; gbc.gridy = 5; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 20, 5, 0); panel38.add(cmbSearchPerPage, gbc); txtSearchPage = new JTextField(); txtSearchPage.setMaximumSize(new Dimension(130, 25)); txtSearchPage.setMinimumSize(new Dimension(130, 25)); txtSearchPage.setPreferredSize(new Dimension(130, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 5; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 20, 5, 0); panel38.add(txtSearchPage, gbc); cmbSearchPrivacy = new JComboBox(); cmbSearchPrivacy.setMaximumSize(new Dimension(130, 25)); cmbSearchPrivacy.setMinimumSize(new Dimension(130, 25)); final DefaultComboBoxModel defaultComboBoxModel9 = new DefaultComboBoxModel(); defaultComboBoxModel9.addElement("None"); defaultComboBoxModel9.addElement("public photos"); defaultComboBoxModel9.addElement("private photos visible to friends"); defaultComboBoxModel9.addElement("private photos visible to family"); defaultComboBoxModel9.addElement("private photos visible to friends & family"); defaultComboBoxModel9.addElement("completely private photos"); cmbSearchPrivacy.setModel(defaultComboBoxModel9); cmbSearchPrivacy.setPreferredSize(new Dimension(130, 25)); gbc = new GridBagConstraints(); gbc.gridx = 5; gbc.gridy = 4; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 20, 5, 0); panel38.add(cmbSearchPrivacy, gbc); final JPanel panel40 = new JPanel(); panel40.setLayout(new GridBagLayout()); photosOperationPane.addTab("SetDates", panel40); final JLabel label111 = new JLabel(); label111.setFont(new Font(label111.getFont().getName(), Font.BOLD, label111.getFont().getSize())); label111.setHorizontalAlignment(0); label111.setMaximumSize(new Dimension(600, 50)); label111.setMinimumSize(new Dimension(600, 50)); label111.setPreferredSize(new Dimension(600, 50)); label111.setText("Set one or both of the dates for a photo."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(25, 0, 25, 0); panel40.add(label111, gbc); final JLabel label112 = new JLabel(); label112.setFont(new Font(label112.getFont().getName(), Font.BOLD, label112.getFont().getSize())); label112.setHorizontalAlignment(4); label112.setMaximumSize(new Dimension(400, 25)); label112.setMinimumSize(new Dimension(400, 25)); label112.setPreferredSize(new Dimension(400, 25)); label112.setText("Photo ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel40.add(label112, gbc); txtSetDatesPhotoID = new JTextField(); txtSetDatesPhotoID.setMaximumSize(new Dimension(200, 25)); txtSetDatesPhotoID.setMinimumSize(new Dimension(200, 25)); txtSetDatesPhotoID.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 15, 0); panel40.add(txtSetDatesPhotoID, gbc); final JLabel label113 = new JLabel(); label113.setHorizontalAlignment(4); label113.setMaximumSize(new Dimension(400, 25)); label113.setMinimumSize(new Dimension(400, 25)); label113.setPreferredSize(new Dimension(400, 25)); label113.setText("Date Posted : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel40.add(label113, gbc); txtSetDatesPosted = new JTextField(); txtSetDatesPosted.setMaximumSize(new Dimension(200, 25)); txtSetDatesPosted.setMinimumSize(new Dimension(200, 25)); txtSetDatesPosted.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 15, 0); panel40.add(txtSetDatesPosted, gbc); setDatesInvoke = new JButton(); setDatesInvoke.setFont( new Font(setDatesInvoke.getFont().getName(), Font.BOLD, setDatesInvoke.getFont().getSize())); setDatesInvoke.setMaximumSize(new Dimension(100, 30)); setDatesInvoke.setMinimumSize(new Dimension(100, 30)); setDatesInvoke.setPreferredSize(new Dimension(100, 30)); setDatesInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 2; gbc.insets = new Insets(25, 0, 25, 0); panel40.add(setDatesInvoke, gbc); final JScrollPane scrollPane27 = new JScrollPane(); scrollPane27.setMaximumSize(new Dimension(550, 225)); scrollPane27.setMinimumSize(new Dimension(550, 225)); scrollPane27.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.gridwidth = 2; gbc.weighty = 1.0; panel40.add(scrollPane27, gbc); setDatesOutput = new JTextArea(); setDatesOutput.setBackground(new Color(-3355444)); scrollPane27.setViewportView(setDatesOutput); txtSetDatesTaken = new JTextField(); txtSetDatesTaken.setMaximumSize(new Dimension(200, 25)); txtSetDatesTaken.setMinimumSize(new Dimension(200, 25)); txtSetDatesTaken.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 3; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 15, 0); panel40.add(txtSetDatesTaken, gbc); final JLabel label114 = new JLabel(); label114.setHorizontalAlignment(4); label114.setMaximumSize(new Dimension(400, 25)); label114.setMinimumSize(new Dimension(400, 25)); label114.setPreferredSize(new Dimension(400, 25)); label114.setText("Date Taken : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel40.add(label114, gbc); final JLabel label115 = new JLabel(); label115.setHorizontalAlignment(4); label115.setMaximumSize(new Dimension(400, 25)); label115.setMinimumSize(new Dimension(400, 25)); label115.setPreferredSize(new Dimension(400, 25)); label115.setText("Granularity of Date Taken : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; panel40.add(label115, gbc); txtSetDatesGranularity = new JTextField(); txtSetDatesGranularity.setMaximumSize(new Dimension(200, 25)); txtSetDatesGranularity.setMinimumSize(new Dimension(200, 25)); txtSetDatesGranularity.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 4; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 0, 0); panel40.add(txtSetDatesGranularity, gbc); final JPanel panel41 = new JPanel(); panel41.setLayout(new GridBagLayout()); photosOperationPane.addTab("SetMeta", panel41); final JLabel label116 = new JLabel(); label116.setFont(new Font(label116.getFont().getName(), Font.BOLD, label116.getFont().getSize())); label116.setHorizontalAlignment(0); label116.setMaximumSize(new Dimension(600, 50)); label116.setMinimumSize(new Dimension(600, 50)); label116.setPreferredSize(new Dimension(600, 50)); label116.setText("Set the meta information for a photo."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel41.add(label116, gbc); final JLabel label117 = new JLabel(); label117.setFont(new Font(label117.getFont().getName(), Font.BOLD, label117.getFont().getSize())); label117.setHorizontalAlignment(4); label117.setMaximumSize(new Dimension(400, 25)); label117.setMinimumSize(new Dimension(400, 25)); label117.setPreferredSize(new Dimension(400, 25)); label117.setText("Photo ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel41.add(label117, gbc); txtSetMetaPhotoID = new JTextField(); txtSetMetaPhotoID.setMaximumSize(new Dimension(200, 25)); txtSetMetaPhotoID.setMinimumSize(new Dimension(200, 25)); txtSetMetaPhotoID.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 15, 0); panel41.add(txtSetMetaPhotoID, gbc); final JLabel label118 = new JLabel(); label118.setHorizontalAlignment(4); label118.setMaximumSize(new Dimension(400, 25)); label118.setMinimumSize(new Dimension(400, 25)); label118.setPreferredSize(new Dimension(400, 25)); label118.setText("Title : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel41.add(label118, gbc); txtSetMetaTitle = new JTextField(); txtSetMetaTitle.setMaximumSize(new Dimension(200, 25)); txtSetMetaTitle.setMinimumSize(new Dimension(200, 25)); txtSetMetaTitle.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 15, 0); panel41.add(txtSetMetaTitle, gbc); final JLabel label119 = new JLabel(); label119.setHorizontalAlignment(4); label119.setMaximumSize(new Dimension(400, 25)); label119.setMinimumSize(new Dimension(400, 25)); label119.setPreferredSize(new Dimension(400, 25)); label119.setText("Description : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; panel41.add(label119, gbc); setMetaInvoke = new JButton(); setMetaInvoke .setFont(new Font(setMetaInvoke.getFont().getName(), Font.BOLD, setMetaInvoke.getFont().getSize())); setMetaInvoke.setMaximumSize(new Dimension(100, 30)); setMetaInvoke.setMinimumSize(new Dimension(100, 30)); setMetaInvoke.setPreferredSize(new Dimension(100, 30)); setMetaInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel41.add(setMetaInvoke, gbc); final JScrollPane scrollPane28 = new JScrollPane(); scrollPane28.setMaximumSize(new Dimension(550, 225)); scrollPane28.setMinimumSize(new Dimension(550, 225)); scrollPane28.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 2; gbc.weighty = 1.0; panel41.add(scrollPane28, gbc); setMetaOutput = new JTextArea(); setMetaOutput.setBackground(new Color(-3355444)); scrollPane28.setViewportView(setMetaOutput); txtSetMetaDescription = new JTextField(); txtSetMetaDescription.setMaximumSize(new Dimension(200, 25)); txtSetMetaDescription.setMinimumSize(new Dimension(200, 25)); txtSetMetaDescription.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 3; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 0, 0); panel41.add(txtSetMetaDescription, gbc); final JPanel panel42 = new JPanel(); panel42.setLayout(new GridBagLayout()); photosOperationPane.addTab("SetPerms ", panel42); final JLabel label120 = new JLabel(); label120.setFont(new Font(label120.getFont().getName(), Font.BOLD, label120.getFont().getSize())); label120.setHorizontalAlignment(0); label120.setMaximumSize(new Dimension(600, 50)); label120.setMinimumSize(new Dimension(600, 50)); label120.setPreferredSize(new Dimension(600, 50)); label120.setText("Set permissions for a photo."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 4; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(25, 0, 25, 0); panel42.add(label120, gbc); final JLabel label121 = new JLabel(); label121.setFont(new Font(label121.getFont().getName(), Font.BOLD, label121.getFont().getSize())); label121.setHorizontalAlignment(4); label121.setMaximumSize(new Dimension(400, 25)); label121.setMinimumSize(new Dimension(400, 25)); label121.setPreferredSize(new Dimension(400, 25)); label121.setText("Photo ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel42.add(label121, gbc); chkSetPermsFriends = new JCheckBox(); chkSetPermsFriends.setFont(new Font(chkSetPermsFriends.getFont().getName(), Font.BOLD, chkSetPermsFriends.getFont().getSize())); chkSetPermsFriends.setHorizontalAlignment(4); chkSetPermsFriends.setMaximumSize(new Dimension(300, 25)); chkSetPermsFriends.setMinimumSize(new Dimension(300, 25)); chkSetPermsFriends.setPreferredSize(new Dimension(300, 25)); chkSetPermsFriends.setText("Is Friend"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel42.add(chkSetPermsFriends, gbc); chkSetPermsPublic = new JCheckBox(); chkSetPermsPublic.setFont( new Font(chkSetPermsPublic.getFont().getName(), Font.BOLD, chkSetPermsPublic.getFont().getSize())); chkSetPermsPublic.setMaximumSize(new Dimension(200, 25)); chkSetPermsPublic.setMinimumSize(new Dimension(200, 25)); chkSetPermsPublic.setPreferredSize(new Dimension(200, 25)); chkSetPermsPublic.setText("Is Public"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 4; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 10, 0); panel42.add(chkSetPermsPublic, gbc); final JScrollPane scrollPane29 = new JScrollPane(); scrollPane29.setMaximumSize(new Dimension(550, 225)); scrollPane29.setMinimumSize(new Dimension(550, 225)); scrollPane29.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 7; gbc.gridwidth = 4; gbc.weighty = 1.0; panel42.add(scrollPane29, gbc); setPermsOutput = new JTextArea(); setPermsOutput.setBackground(new Color(-3355444)); scrollPane29.setViewportView(setPermsOutput); setPermsInvoke = new JButton(); setPermsInvoke.setFont( new Font(setPermsInvoke.getFont().getName(), Font.BOLD, setPermsInvoke.getFont().getSize())); setPermsInvoke.setLabel("Invoke"); setPermsInvoke.setMaximumSize(new Dimension(100, 30)); setPermsInvoke.setMinimumSize(new Dimension(100, 30)); setPermsInvoke.setPreferredSize(new Dimension(100, 30)); setPermsInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.gridwidth = 4; gbc.insets = new Insets(10, 0, 0, 0); panel42.add(setPermsInvoke, gbc); chkSetPermsFamily = new JCheckBox(); chkSetPermsFamily.setFont( new Font(chkSetPermsFamily.getFont().getName(), Font.BOLD, chkSetPermsFamily.getFont().getSize())); chkSetPermsFamily.setHorizontalAlignment(4); chkSetPermsFamily.setLabel("Is Family "); chkSetPermsFamily.setMaximumSize(new Dimension(300, 25)); chkSetPermsFamily.setMinimumSize(new Dimension(300, 25)); chkSetPermsFamily.setPreferredSize(new Dimension(300, 25)); chkSetPermsFamily.setText("Is Family "); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 5; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel42.add(chkSetPermsFamily, gbc); txtSetPermsPhotoID = new JTextField(); txtSetPermsPhotoID.setMaximumSize(new Dimension(200, 25)); txtSetPermsPhotoID.setMinimumSize(new Dimension(200, 25)); txtSetPermsPhotoID.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 15, 0); panel42.add(txtSetPermsPhotoID, gbc); final JLabel label122 = new JLabel(); label122.setFont(new Font(label122.getFont().getName(), Font.BOLD, label122.getFont().getSize())); label122.setHorizontalAlignment(4); label122.setMaximumSize(new Dimension(400, 25)); label122.setMinimumSize(new Dimension(400, 25)); label122.setPreferredSize(new Dimension(400, 25)); label122.setText("Permision to add Comments : "); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel42.add(label122, gbc); final JLabel label123 = new JLabel(); label123.setFont(new Font(label123.getFont().getName(), Font.BOLD, label123.getFont().getSize())); label123.setHorizontalAlignment(4); label123.setMaximumSize(new Dimension(400, 25)); label123.setMinimumSize(new Dimension(400, 25)); label123.setPreferredSize(new Dimension(400, 25)); label123.setText("Permision to add Meta : "); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel42.add(label123, gbc); cmbSetPermsComments = new JComboBox(); cmbSetPermsComments.setMaximumSize(new Dimension(200, 25)); cmbSetPermsComments.setMinimumSize(new Dimension(200, 25)); final DefaultComboBoxModel defaultComboBoxModel10 = new DefaultComboBoxModel(); defaultComboBoxModel10.addElement("Nobody"); defaultComboBoxModel10.addElement("Friends & family"); defaultComboBoxModel10.addElement("Contacts"); defaultComboBoxModel10.addElement("Everybody"); cmbSetPermsComments.setModel(defaultComboBoxModel10); cmbSetPermsComments.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 10, 0); panel42.add(cmbSetPermsComments, gbc); cmbSetPermsMeta = new JComboBox(); cmbSetPermsMeta.setMaximumSize(new Dimension(200, 25)); cmbSetPermsMeta.setMinimumSize(new Dimension(200, 25)); final DefaultComboBoxModel defaultComboBoxModel11 = new DefaultComboBoxModel(); defaultComboBoxModel11.addElement("Nobody / Just the owner"); defaultComboBoxModel11.addElement("Friends & family"); defaultComboBoxModel11.addElement("Contacts"); defaultComboBoxModel11.addElement("Everybody"); cmbSetPermsMeta.setModel(defaultComboBoxModel11); cmbSetPermsMeta.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 10, 0); panel42.add(cmbSetPermsMeta, gbc); final JPanel panel43 = new JPanel(); panel43.setLayout(new GridBagLayout()); photosOperationPane.addTab("SetTags", panel43); txtSetTagsPhotoID = new JTextField(); txtSetTagsPhotoID.setMaximumSize(new Dimension(200, 25)); txtSetTagsPhotoID.setMinimumSize(new Dimension(200, 25)); txtSetTagsPhotoID.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 1; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 25, 0); panel43.add(txtSetTagsPhotoID, gbc); final JLabel label124 = new JLabel(); label124.setFont(new Font(label124.getFont().getName(), Font.BOLD, label124.getFont().getSize())); label124.setHorizontalAlignment(4); label124.setMaximumSize(new Dimension(400, 25)); label124.setMinimumSize(new Dimension(400, 25)); label124.setPreferredSize(new Dimension(400, 25)); label124.setText("Photo ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 25, 0); panel43.add(label124, gbc); txtSetTagsTags = new JTextField(); txtSetTagsTags.setMaximumSize(new Dimension(200, 25)); txtSetTagsTags.setMinimumSize(new Dimension(200, 25)); txtSetTagsTags.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 0, 0); panel43.add(txtSetTagsTags, gbc); final JLabel label125 = new JLabel(); label125.setHorizontalAlignment(4); label125.setMaximumSize(new Dimension(400, 25)); label125.setMinimumSize(new Dimension(400, 25)); label125.setPreferredSize(new Dimension(400, 25)); label125.setText("Tags : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; panel43.add(label125, gbc); SetTagsInvoke = new JButton(); SetTagsInvoke .setFont(new Font(SetTagsInvoke.getFont().getName(), Font.BOLD, SetTagsInvoke.getFont().getSize())); SetTagsInvoke.setLabel("Invoke"); SetTagsInvoke.setMaximumSize(new Dimension(100, 30)); SetTagsInvoke.setMinimumSize(new Dimension(100, 30)); SetTagsInvoke.setPreferredSize(new Dimension(100, 30)); SetTagsInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.weightx = 1.0; gbc.insets = new Insets(25, 0, 50, 0); panel43.add(SetTagsInvoke, gbc); final JScrollPane scrollPane30 = new JScrollPane(); scrollPane30.setMaximumSize(new Dimension(550, 225)); scrollPane30.setMinimumSize(new Dimension(550, 225)); scrollPane30.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.weightx = 1.0; gbc.weighty = 1.0; panel43.add(scrollPane30, gbc); setTagsOutput = new JTextArea(); setTagsOutput.setEditable(false); scrollPane30.setViewportView(setTagsOutput); final JLabel label126 = new JLabel(); label126.setFont(new Font(label126.getFont().getName(), Font.BOLD, label126.getFont().getSize())); label126.setHorizontalAlignment(0); label126.setMaximumSize(new Dimension(600, 50)); label126.setMinimumSize(new Dimension(600, 50)); label126.setPreferredSize(new Dimension(600, 50)); label126.setText("Set the tags for a photo."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel43.add(label126, gbc); }
From source file:pl.otros.logview.exceptionshandler.ShowErrorDialogExceptionHandler.java
protected JComponent createDialogView() { JPanel jPanel = new JPanel(new MigLayout()); JLabel label = new JLabel("Do you want to send error report?"); label.setFont(label.getFont().deriveFont(Font.BOLD)); jPanel.add(label, "span 4, wrap, center"); jPanel.add(new JLabel("Comment:")); commentTextArea = new JTextArea(10, 30); commentTextArea.setWrapStyleWord(true); commentTextArea.setLineWrap(true);/*from w w w . ja v a 2 s . co m*/ JScrollPane jScrollPane = new JScrollPane(commentTextArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); jPanel.add(jScrollPane, "span 3, wrap"); jPanel.add(new JLabel("Email (optional):")); emailTextField = new JTextField(30); jPanel.add(emailTextField, "span 3, wrap"); jPanel.add(new JSeparator(), "span 4, wrap, grow"); checkBoxUseProxy = new JCheckBox("Use HTTP proxy"); proxyTf = new JTextField(); proxyPortModel = new SpinnerNumberModel(80, 1, 256 * 256 - 1, 1); proxyUser = new JTextField(); proxyPasswordField = new JPasswordField(); proxySpinner = new JSpinner(proxyPortModel); jPanel.add(checkBoxUseProxy, "wrap"); labelProxyHost = new JLabel("Proxy address"); jPanel.add(labelProxyHost); jPanel.add(proxyTf, "wrap, span 3, grow"); labelProxyPort = new JLabel("Proxy port"); jPanel.add(labelProxyPort); jPanel.add(proxySpinner, "wrap"); labelProxyUser = new JLabel("User"); jPanel.add(labelProxyUser); jPanel.add(proxyUser, "grow"); labelProxyPassword = new JLabel("Password"); jPanel.add(labelProxyPassword); jPanel.add(proxyPasswordField, "grow"); checkBoxUseProxy.addChangeListener(new ChangeListener() { @Override public void stateChanged(ChangeEvent e) { setProxyEnabled(checkBoxUseProxy.isSelected()); } }); DataConfiguration c = otrosApplication.getConfiguration(); proxyTf.setText(c.getString(ConfKeys.HTTP_PROXY_HOST, "")); proxyUser.setText(c.getString(ConfKeys.HTTP_PROXY_USER, "")); proxyPortModel.setValue(Integer.valueOf(c.getInt(ConfKeys.HTTP_PROXY_PORT, 80))); boolean useProxy = c.getBoolean(ConfKeys.HTTP_PROXY_USE, false); checkBoxUseProxy.setSelected(useProxy); setProxyEnabled(useProxy); return jPanel; }
From source file:ro.nextreports.designer.datasource.ConnectionDialog.java
private void create() { this.getContentPane().setLayout(new GridBagLayout()); this.addComponentListener(new ComponentAdapter() { public void componentResized(ComponentEvent e) { resize();/* w w w . j av a 2 s. c o m*/ } }); JPanel p = new JPanel(new GridBagLayout()); backColor = p.getBackground(); mName = new JTextField(); mDriver = new JTextField(); //mDriver.setBackground(backColor); mURL = new JTextField(); //mURL.setBackground(backColor); mUser = new JTextField(); //mUser.setBackground(backColor); mPassword = new JPasswordField(); mPassword.setEchoChar('*'); //mPassword.setBackground(backColor); txaStatus = new JTextArea(); txaStatus.setEditable(false); txaStatus.setBackground(backColor); scr = new JScrollPane(txaStatus); scr.setSize(220, 50); scr.setBorder(new TitledBorder(STATUS)); types = new JComboBox(); types.addItemListener(this); urlFormatLabel = new JLabel(); Font font = urlFormatLabel.getFont().deriveFont(Font.BOLD, 10); urlFormatLabel.setFont(font); urlButton = new JButton(); urlButton.setPreferredSize(buttonDim); urlButton.setMinimumSize(buttonDim); urlButton.setMaximumSize(buttonDim); urlButton.setIcon(ImageUtil.getImageIcon("url_edit")); urlButton.setToolTipText(I18NSupport.getString("connection.dialog.tags.tooltip")); urlButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { editUrl(); } }); for (DriverTemplate template : templates) { types.addItem(template.getType()); } types.setSelectedItem(DEFAULT_DRIVER_TYPE); auto = new JCheckBox(I18NSupport.getString("connection.dialog.auto")); if (viewOnly) { mName.setEditable(false); types.setEnabled(false); mDriver.setEditable(false); mURL.setEditable(false); mUser.setEditable(false); mPassword.setEditable(false); urlButton.setEnabled(false); } p.add(new JLabel(I18NSupport.getString("connection.dialog.name")), new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0)); p.add(mName, new GridBagConstraints(1, 0, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); p.add(new JLabel(I18NSupport.getString("connection.dialog.type")), new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0)); p.add(types, new GridBagConstraints(1, 1, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); p.add(new JLabel(I18NSupport.getString("connection.dialog.driver")), new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0)); p.add(mDriver, new GridBagConstraints(1, 2, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); p.add(new JLabel(I18NSupport.getString("connection.dialog.url")), new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0)); p.add(mURL, new GridBagConstraints(1, 3, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0)); p.add(urlButton, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); if (!viewOnly) { p.add(urlFormatLabel, new GridBagConstraints(1, 4, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 5, 5), 0, 0)); } p.add(new JLabel(I18NSupport.getString("connection.dialog.user")), new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0)); p.add(mUser, new GridBagConstraints(1, 5, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); p.add(new JLabel(I18NSupport.getString("connection.dialog.password")), new GridBagConstraints(0, 6, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0)); p.add(mPassword, new GridBagConstraints(1, 6, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); if (!viewOnly) { p.add(auto, new GridBagConstraints(1, 7, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); } JButton okBtn, disBtn, drvBtn, addBtn, propBtn; okBtn = new JButton(I18NSupport.getString("connection.dialog.test"), ImageUtil.getImageIcon("database_connect")); okBtn.setMnemonic('T'); okBtn.setActionCommand("ConnectOk"); okBtn.setToolTipText(I18NSupport.getString("connection.dialog.test.tooltip")); okBtn.addActionListener(this); disBtn = new JButton(I18NSupport.getString("connection.dialog.disconnect"), ImageUtil.getImageIcon("database")); disBtn.setMnemonic('D'); disBtn.setActionCommand("Disconnect"); disBtn.setToolTipText(I18NSupport.getString("connection.dialog.disconnect")); disBtn.addActionListener(this); drvBtn = new JButton(I18NSupport.getString("connection.dialog.add.driver"), ImageUtil.getImageIcon("add_driver")); drvBtn.setMnemonic('A'); drvBtn.setActionCommand("AddDriver"); drvBtn.setToolTipText(I18NSupport.getString("connection.dialog.add.driver.tooltip")); drvBtn.addActionListener(this); propBtn = new JButton(I18NSupport.getString("connection.dialog.properties"), ImageUtil.getImageIcon("properties")); propBtn.setMnemonic('P'); propBtn.setActionCommand("Properties"); propBtn.setToolTipText(I18NSupport.getString("connection.dialog.properties.tooltip")); propBtn.addActionListener(this); addBtn = new JButton(ImageUtil.getImageIcon("database_export")); if (oldDataSource == null) { addBtn.setText(I18NSupport.getString("connection.dialog.save")); addBtn.setToolTipText(I18NSupport.getString("connection.dialog.save.tooltip")); addBtn.setMnemonic('S'); } else { addBtn.setText(I18NSupport.getString("connection.dialog.modify")); addBtn.setToolTipText(I18NSupport.getString("connection.dialog.modify.tooltip")); addBtn.setMnemonic('M'); } addBtn.setActionCommand("AddDataSource"); addBtn.addActionListener(this); JPanel btnPanel = new JPanel(); btnPanel.setLayout(new BoxLayout(btnPanel, BoxLayout.X_AXIS)); btnPanel.add(Box.createHorizontalGlue()); btnPanel.add(propBtn); btnPanel.add(Box.createRigidArea(new Dimension(5, 5))); btnPanel.add(okBtn); btnPanel.add(Box.createRigidArea(new Dimension(5, 5))); //btnPanel.add(disBtn); //btnPanel.add(Box.createRigidArea(new Dimension(5, 5))); btnPanel.add(addBtn); // btnPanel.add(Box.createRigidArea(new Dimension(5, 5))); // btnPanel.add(drvBtn); SwingUtil.equalizeButtonSizes(btnPanel); if (!viewOnly) { p.add(btnPanel, new GridBagConstraints(0, 8, 3, 1, 1.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); p.add(scr, new GridBagConstraints(0, 9, 3, 1, 1.0, 1.0, GridBagConstraints.EAST, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0)); } this.getContentPane().add(p, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.EAST, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0)); if (oldDataSource != null) { mName.setText(oldDataSource.getName()); types.setSelectedItem(oldDataSource.getType()); mDriver.setText(oldDataSource.getDriver()); mURL.setText(oldDataSource.getUrl()); mUser.setText(oldDataSource.getUser()); mPassword.setText(oldDataSource.getPassword()); } }
From source file:ro.nextreports.designer.wizpublish.PublishLoginWizardPanel.java
private void init() { userTextField = new JTextField(); passField = new JPasswordField(); rememberCheckBox = new JCheckBox(I18NSupport.getString("wizard.publish.login.remember")); ServerHandler serverHandler = new ServerHandler(); List<Server> servers = serverHandler.getServers(); String lastServer = ReporterPreferencesManager.getInstance() .loadParameter(ReporterPreferencesManager.LAST_SERVER); if (lastServer != null) { serverHandler.adjustServers(lastServer); autoSetCredentials(lastServer);//w ww.j av a2 s.c o m } serverPanel = new ServerSelectionPanel(serverHandler) { @Override public void selection() { Server server = getServer(); if (server != null) { autoSetCredentials(server.getName()); } } }; // edit from server (url protocol contains user name) if (Globals.getServerUser() != null) { userTextField.setText(Globals.getServerUser()); userTextField.setEnabled(false); serverPanel.setServerRequest(Globals.getServerUrl()); } setLayout(new GridBagLayout()); add(new JLabel(I18NSupport.getString("wizard.publish.login.server")), new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0)); add(serverPanel, new GridBagConstraints(1, 0, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); add(new JLabel(I18NSupport.getString("wizard.publish.login.user")), new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0)); add(userTextField, new GridBagConstraints(1, 1, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); add(new JLabel(I18NSupport.getString("wizard.publish.login.password")), new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0)); add(passField, new GridBagConstraints(1, 2, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); add(rememberCheckBox, new GridBagConstraints(1, 3, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); add(new JLabel(""), new GridBagConstraints(0, 4, 3, 1, 1.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0)); }
From source file:ui.frame.UILogin.java
public UILogin() { super("Login"); Label l = new Label(); setLayout(new BorderLayout()); this.setPreferredSize(new Dimension(400, 300)); Panel p = new Panel(); loginPanel = p.createPanel(Layouts.grid, 4, 2); loginPanel.setBorder(new EmptyBorder(25, 25, 0, 25)); lblUser = l.createLabel("Username:"); lblPassword = l.createLabel("Password:"); lblURL = l.createLabel("Server URL"); lblBucket = l.createLabel("Bucket"); tfURL = new JTextField(); tfURL.setText("kaiup.kaisquare.com"); tfBucket = new JTextField(); PromptSupport.setPrompt("BucketName", tfBucket); tfUser = new JTextField(); PromptSupport.setPrompt("Username", tfUser); pfPassword = new JPasswordField(); PromptSupport.setPrompt("Password", pfPassword); buttonPanel = p.createPanel(Layouts.flow); buttonPanel.setBorder(new EmptyBorder(0, 0, 25, 0)); Button b = new Button(); JButton btnLogin = b.createButton("Login"); JButton btnExit = b.createButton("Exit"); btnLogin.setPreferredSize(new Dimension(150, 50)); btnExit.setPreferredSize(new Dimension(150, 50)); Component[] arrayBtn = { btnExit, btnLogin }; p.addComponentsToPanel(buttonPanel, arrayBtn); Component[] arrayComponents = { lblURL, tfURL, lblBucket, tfBucket, lblUser, tfUser, lblPassword, pfPassword };/*from ww w . ja v a 2s . c om*/ p.addComponentsToPanel(loginPanel, arrayComponents); add(loginPanel, BorderLayout.CENTER); add(buttonPanel, BorderLayout.SOUTH); pack(); setDefaultCloseOperation(EXIT_ON_CLOSE); setLocationRelativeTo(null); setVisible(true); btnLogin.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { SwingWorker<Void, Void> mySwingWorker = new SwingWorker<Void, Void>() { @Override protected Void doInBackground() throws Exception { if (tfUser.getText().equals("") || String.valueOf(pfPassword.getPassword()).equals("") || tfBucket.getText().equals("")) { JOptionPane.showMessageDialog(Data.mainFrame, "Please fill up all the fields", "Error", JOptionPane.ERROR_MESSAGE); } else { String username = tfUser.getText(); String password = String.valueOf(pfPassword.getPassword()); Data.URL = Data.protocol + tfURL.getText(); Data.targetURL = Data.protocol + tfURL.getText() + "/api/" + tfBucket.getText() + "/"; String response = api.loginBucket(Data.targetURL, username, password); try { if (DesktopAppMain.checkResult(response)) { JSONObject responseJSON = new JSONObject(response); Data.sessionKey = responseJSON.get("session-key").toString(); response = api.getUserFeatures(Data.targetURL, Data.sessionKey); if (checkFeatures(response)) { Data.mainFrame = new KAIQRFrame(); Data.mainFrame.uiInventorySelect = new UIInventorySelect(); Data.mainFrame.addPanel(Data.mainFrame.uiInventorySelect, "inventory"); Data.mainFrame.showPanel("inventory"); Data.mainFrame.pack(); setVisible(false); Data.mainFrame.setVisible(true); } else { JOptionPane.showMessageDialog(Data.loginFrame, "User does not have necessary features", "Error", JOptionPane.ERROR_MESSAGE); } } else { JOptionPane.showMessageDialog(Data.loginFrame, "Wrong username/password", "Error", JOptionPane.ERROR_MESSAGE); } } catch (JSONException e1) { e1.printStackTrace(); } } return null; } }; Window win = SwingUtilities.getWindowAncestor((AbstractButton) e.getSource()); final JDialog dialog = new JDialog(win, "Login", ModalityType.APPLICATION_MODAL); mySwingWorker.addPropertyChangeListener(new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals("state")) { if (evt.getNewValue() == SwingWorker.StateValue.DONE) { dialog.dispose(); } } } }); mySwingWorker.execute(); JProgressBar progressBar = new JProgressBar(); progressBar.setIndeterminate(true); JPanel panel = new JPanel(new BorderLayout()); panel.add(progressBar, BorderLayout.CENTER); panel.add(new JLabel("Logging in .........."), BorderLayout.PAGE_START); dialog.add(panel); dialog.pack(); dialog.setBounds(50, 50, 300, 100); dialog.setLocationRelativeTo(Data.mainFrame); dialog.setVisible(true); } }); btnExit.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { System.exit(0); } }); }