List of usage examples for java.awt GridBagConstraints WEST
int WEST
To view the source code for java.awt GridBagConstraints WEST.
Click Source Link
From source file:org.wso2.appserver.sample.flickr.client.FlickrServiceFrame.java
private void setupUI() { panel1 = new JPanel(); panel1.setLayout(new GridBagLayout()); panel1.setMaximumSize(new Dimension(900, 700)); panel1.setMinimumSize(new Dimension(900, 700)); panel1.setPreferredSize(new Dimension(900, 700)); panel1.setRequestFocusEnabled(false); tabbedPane1 = new JTabbedPane(); tabbedPane1.setPreferredSize(new Dimension(900, 700)); GridBagConstraints gbc;/* ww w . j av a 2s . co m*/ gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.fill = GridBagConstraints.BOTH; panel1.add(tabbedPane1, gbc); final JPanel panel2 = new JPanel(); panel2.setLayout(new GridBagLayout()); tabbedPane1.addTab("People", panel2); peopleOperationPane = new JTabbedPane(); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.fill = GridBagConstraints.BOTH; panel2.add(peopleOperationPane, gbc); final JPanel panel3 = new JPanel(); panel3.setLayout(new GridBagLayout()); peopleOperationPane.addTab("FindByEmail", panel3); final JLabel label1 = new JLabel(); label1.setFont(new Font(label1.getFont().getName(), Font.BOLD, label1.getFont().getSize())); label1.setHorizontalAlignment(0); label1.setHorizontalTextPosition(0); label1.setMaximumSize(new Dimension(400, 50)); label1.setMinimumSize(new Dimension(400, 50)); label1.setPreferredSize(new Dimension(400, 50)); label1.setText("Return a user's NSID, given their email address"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel3.add(label1, gbc); final JLabel label2 = new JLabel(); label2.setFont(new Font(label2.getFont().getName(), Font.BOLD, label2.getFont().getSize())); label2.setHorizontalAlignment(4); label2.setMaximumSize(new Dimension(400, 25)); label2.setMinimumSize(new Dimension(400, 25)); label2.setPreferredSize(new Dimension(400, 25)); label2.setText("E-Mail :"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; panel3.add(label2, gbc); txtPeopleEmail = new JTextField(); txtPeopleEmail.setEditable(true); txtPeopleEmail.setMaximumSize(new Dimension(200, 25)); txtPeopleEmail.setMinimumSize(new Dimension(200, 25)); txtPeopleEmail.setPreferredSize(new Dimension(200, 25)); txtPeopleEmail.setRequestFocusEnabled(true); 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); panel3.add(txtPeopleEmail, gbc); final JScrollPane scrollPane1 = new JScrollPane(); scrollPane1.setBackground(new Color(-3355444)); scrollPane1.setMaximumSize(new Dimension(550, 225)); scrollPane1.setMinimumSize(new Dimension(550, 225)); scrollPane1.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.weighty = 1.0; panel3.add(scrollPane1, gbc); findByEmailOutput = new JTextArea(); findByEmailOutput.setBackground(new Color(-3355444)); findByEmailOutput.setEditable(false); findByEmailOutput.setText(""); scrollPane1.setViewportView(findByEmailOutput); findByEmailInvoke = new JButton(); findByEmailInvoke.setFocusCycleRoot(true); findByEmailInvoke.setFont( new Font(findByEmailInvoke.getFont().getName(), Font.BOLD, findByEmailInvoke.getFont().getSize())); findByEmailInvoke.setMaximumSize(new Dimension(100, 30)); findByEmailInvoke.setMinimumSize(new Dimension(100, 30)); findByEmailInvoke.setPreferredSize(new Dimension(100, 30)); findByEmailInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel3.add(findByEmailInvoke, gbc); final JPanel panel4 = new JPanel(); panel4.setLayout(new GridBagLayout()); peopleOperationPane.addTab("FindByUsername", panel4); final JLabel label3 = new JLabel(); label3.setFont(new Font(label3.getFont().getName(), Font.BOLD, label3.getFont().getSize())); label3.setHorizontalAlignment(0); label3.setHorizontalTextPosition(0); label3.setMaximumSize(new Dimension(400, 50)); label3.setMinimumSize(new Dimension(400, 50)); label3.setPreferredSize(new Dimension(400, 50)); label3.setText("Return a user's NSID, given their username."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 3; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel4.add(label3, gbc); final JPanel panel5 = new JPanel(); panel5.setLayout(new GridBagLayout()); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 3; gbc.weighty = 1.0; gbc.fill = GridBagConstraints.BOTH; panel4.add(panel5, gbc); findByUsernameInvoke = new JButton(); findByUsernameInvoke.setFont(new Font(findByUsernameInvoke.getFont().getName(), Font.BOLD, findByUsernameInvoke.getFont().getSize())); findByUsernameInvoke.setMaximumSize(new Dimension(100, 30)); findByUsernameInvoke.setMinimumSize(new Dimension(100, 30)); findByUsernameInvoke.setPreferredSize(new Dimension(100, 30)); findByUsernameInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.weightx = 1.0; gbc.insets = new Insets(50, 0, 50, 0); panel5.add(findByUsernameInvoke, gbc); final JScrollPane scrollPane2 = new JScrollPane(); scrollPane2.setBackground(new Color(-3355444)); scrollPane2.setMaximumSize(new Dimension(550, 225)); scrollPane2.setMinimumSize(new Dimension(550, 225)); scrollPane2.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.weightx = 1.0; gbc.weighty = 1.0; panel5.add(scrollPane2, gbc); findByUsernameOutput = new JEditorPane(); findByUsernameOutput.setBackground(new Color(-3355444)); findByUsernameOutput.setEditable(false); findByUsernameOutput.setForeground(new Color(-16777216)); findByUsernameOutput.setText(""); scrollPane2.setViewportView(findByUsernameOutput); final JLabel label4 = new JLabel(); label4.setFont(new Font(label4.getFont().getName(), Font.BOLD, label4.getFont().getSize())); label4.setHorizontalAlignment(4); label4.setMaximumSize(new Dimension(400, 25)); label4.setMinimumSize(new Dimension(400, 25)); label4.setPreferredSize(new Dimension(400, 25)); label4.setText("Username :"); label4.setVerifyInputWhenFocusTarget(false); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.EAST; panel4.add(label4, gbc); txtPeopleUsername = new JTextField(); txtPeopleUsername.setMaximumSize(new Dimension(200, 25)); txtPeopleUsername.setMinimumSize(new Dimension(200, 25)); txtPeopleUsername.setOpaque(true); txtPeopleUsername.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); panel4.add(txtPeopleUsername, gbc); final JPanel panel6 = new JPanel(); panel6.setLayout(new GridBagLayout()); peopleOperationPane.addTab("GetInfo", panel6); final JLabel label5 = new JLabel(); label5.setFont(new Font(label5.getFont().getName(), Font.BOLD, label5.getFont().getSize())); label5.setHorizontalAlignment(0); label5.setHorizontalTextPosition(0); label5.setMaximumSize(new Dimension(400, 50)); label5.setMinimumSize(new Dimension(400, 50)); label5.setPreferredSize(new Dimension(400, 50)); label5.setText("Get information about a 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); panel6.add(label5, gbc); txtUserID = new JLabel(); txtUserID.setFont(new Font(txtUserID.getFont().getName(), Font.BOLD, txtUserID.getFont().getSize())); txtUserID.setHorizontalAlignment(4); txtUserID.setMaximumSize(new Dimension(400, 25)); txtUserID.setMinimumSize(new Dimension(400, 25)); txtUserID.setPreferredSize(new Dimension(400, 25)); txtUserID.setText("User ID :"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; panel6.add(txtUserID, gbc); txtPeopleGetInfo = new JTextField(); txtPeopleGetInfo.setMaximumSize(new Dimension(200, 25)); txtPeopleGetInfo.setMinimumSize(new Dimension(200, 25)); txtPeopleGetInfo.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); panel6.add(txtPeopleGetInfo, gbc); getInfoInvoke = new JButton(); getInfoInvoke .setFont(new Font(getInfoInvoke.getFont().getName(), Font.BOLD, getInfoInvoke.getFont().getSize())); getInfoInvoke.setMaximumSize(new Dimension(100, 30)); getInfoInvoke.setMinimumSize(new Dimension(100, 30)); getInfoInvoke.setPreferredSize(new Dimension(100, 30)); getInfoInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel6.add(getInfoInvoke, gbc); final JScrollPane scrollPane3 = new JScrollPane(); scrollPane3.setHorizontalScrollBarPolicy(30); scrollPane3.setMaximumSize(new Dimension(550, 225)); scrollPane3.setMinimumSize(new Dimension(550, 225)); scrollPane3.setPreferredSize(new Dimension(550, 225)); scrollPane3.setVerticalScrollBarPolicy(20); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.weighty = 1.0; panel6.add(scrollPane3, gbc); getInfoOutput = new JTextArea(); getInfoOutput.setAutoscrolls(false); getInfoOutput.setBackground(new Color(-3355444)); getInfoOutput.setEditable(false); scrollPane3.setViewportView(getInfoOutput); final JPanel panel7 = new JPanel(); panel7.setLayout(new GridBagLayout()); peopleOperationPane.addTab("GetPublicGroups", panel7); final JLabel label6 = new JLabel(); label6.setFont(new Font(label6.getFont().getName(), Font.BOLD, label6.getFont().getSize())); label6.setHorizontalAlignment(0); label6.setHorizontalTextPosition(0); label6.setMaximumSize(new Dimension(400, 50)); label6.setMinimumSize(new Dimension(400, 50)); label6.setPreferredSize(new Dimension(400, 50)); label6.setText("Returns the list of public groups a user is a member of."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel7.add(label6, gbc); final JLabel label7 = new JLabel(); label7.setFont(new Font(label7.getFont().getName(), Font.BOLD, label7.getFont().getSize())); label7.setHorizontalAlignment(4); label7.setMaximumSize(new Dimension(400, 25)); label7.setMinimumSize(new Dimension(400, 25)); label7.setPreferredSize(new Dimension(400, 25)); label7.setText("User ID :"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.EAST; panel7.add(label7, gbc); txtGetPublicGroups = new JTextField(); txtGetPublicGroups.setMaximumSize(new Dimension(200, 25)); txtGetPublicGroups.setMinimumSize(new Dimension(200, 25)); txtGetPublicGroups.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); panel7.add(txtGetPublicGroups, gbc); getPublicGroupsInvoke = new JButton(); getPublicGroupsInvoke.setFont(new Font(getPublicGroupsInvoke.getFont().getName(), Font.BOLD, getPublicGroupsInvoke.getFont().getSize())); getPublicGroupsInvoke.setLabel("Invoke"); getPublicGroupsInvoke.setMaximumSize(new Dimension(100, 30)); getPublicGroupsInvoke.setMinimumSize(new Dimension(100, 30)); getPublicGroupsInvoke.setPreferredSize(new Dimension(100, 30)); getPublicGroupsInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel7.add(getPublicGroupsInvoke, gbc); final JScrollPane scrollPane4 = new JScrollPane(); scrollPane4.setMaximumSize(new Dimension(550, 225)); scrollPane4.setMinimumSize(new Dimension(550, 225)); scrollPane4.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.weighty = 1.0; panel7.add(scrollPane4, gbc); getPublicGroupsOutput = new JTextArea(); getPublicGroupsOutput.setBackground(new Color(-3355444)); getPublicGroupsOutput.setEditable(false); scrollPane4.setViewportView(getPublicGroupsOutput); final JPanel panel8 = new JPanel(); panel8.setLayout(new GridBagLayout()); peopleOperationPane.addTab("GetPublicPhotos", panel8); final JLabel label8 = new JLabel(); label8.setFont(new Font(label8.getFont().getName(), Font.BOLD, label8.getFont().getSize())); label8.setHorizontalAlignment(0); label8.setMaximumSize(new Dimension(400, 50)); label8.setMinimumSize(new Dimension(400, 50)); label8.setPreferredSize(new Dimension(400, 50)); label8.setText("Get a list of public photos for the given 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); panel8.add(label8, gbc); final JLabel label9 = new JLabel(); label9.setFont(new Font(label9.getFont().getName(), Font.BOLD, label9.getFont().getSize())); label9.setHorizontalAlignment(4); label9.setHorizontalTextPosition(4); label9.setMaximumSize(new Dimension(400, 25)); label9.setMinimumSize(new Dimension(400, 25)); label9.setPreferredSize(new Dimension(400, 25)); label9.setText("User ID :"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.EAST; panel8.add(label9, gbc); txtGetPublicPhotos = new JTextField(); txtGetPublicPhotos.setMaximumSize(new Dimension(200, 25)); txtGetPublicPhotos.setMinimumSize(new Dimension(200, 25)); txtGetPublicPhotos.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); panel8.add(txtGetPublicPhotos, gbc); getPublicPhotosInvoke = new JButton(); getPublicPhotosInvoke.setActionCommand("Button"); getPublicPhotosInvoke.setFont(new Font(getPublicPhotosInvoke.getFont().getName(), Font.BOLD, getPublicPhotosInvoke.getFont().getSize())); getPublicPhotosInvoke.setMaximumSize(new Dimension(100, 30)); getPublicPhotosInvoke.setMinimumSize(new Dimension(100, 30)); getPublicPhotosInvoke.setOpaque(true); getPublicPhotosInvoke.setPreferredSize(new Dimension(100, 30)); getPublicPhotosInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel8.add(getPublicPhotosInvoke, gbc); final JScrollPane scrollPane5 = new JScrollPane(); scrollPane5.setMaximumSize(new Dimension(550, 225)); scrollPane5.setMinimumSize(new Dimension(550, 225)); scrollPane5.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.weighty = 1.0; panel8.add(scrollPane5, gbc); getPublicPhotosOutput = new JTextArea(); getPublicPhotosOutput.setBackground(new Color(-3355444)); getPublicPhotosOutput.setEditable(false); getPublicPhotosOutput.setText(""); scrollPane5.setViewportView(getPublicPhotosOutput); final JPanel panel9 = new JPanel(); panel9.setLayout(new GridBagLayout()); peopleOperationPane.addTab("GetUploadStatus", panel9); final JLabel label10 = new JLabel(); label10.setFont(new Font(label10.getFont().getName(), Font.BOLD, label10.getFont().getSize())); label10.setHorizontalAlignment(0); label10.setMaximumSize(new Dimension(475, 50)); label10.setMinimumSize(new Dimension(475, 50)); label10.setPreferredSize(new Dimension(475, 50)); label10.setText("Returns information for the calling user related to photo uploads."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel9.add(label10, gbc); getUploadStatusInvoke = new JButton(); getUploadStatusInvoke.setFont(new Font(getUploadStatusInvoke.getFont().getName(), Font.BOLD, getUploadStatusInvoke.getFont().getSize())); getUploadStatusInvoke.setMaximumSize(new Dimension(100, 30)); getUploadStatusInvoke.setMinimumSize(new Dimension(100, 30)); getUploadStatusInvoke.setPreferredSize(new Dimension(100, 30)); getUploadStatusInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel9.add(getUploadStatusInvoke, gbc); final JScrollPane scrollPane6 = new JScrollPane(); scrollPane6.setMaximumSize(new Dimension(550, 225)); scrollPane6.setMinimumSize(new Dimension(550, 225)); scrollPane6.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.weighty = 1.0; panel9.add(scrollPane6, gbc); getUploadStatusOutput = new JTextArea(); getUploadStatusOutput.setBackground(new Color(-3355444)); getUploadStatusOutput.setEditable(false); getUploadStatusOutput.setText(""); scrollPane6.setViewportView(getUploadStatusOutput); populateOperationPane(); final JPanel panel44 = new JPanel(); panel44.setLayout(new GridBagLayout()); tabbedPane1.addTab("Activity", panel44); activityOperationPane = new JTabbedPane(); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.fill = GridBagConstraints.BOTH; panel44.add(activityOperationPane, gbc); final JPanel panel45 = new JPanel(); panel45.setLayout(new GridBagLayout()); activityOperationPane.addTab("UserComments", panel45); final JLabel label127 = new JLabel(); label127.setFont(new Font(label127.getFont().getName(), Font.BOLD, label127.getFont().getSize())); label127.setHorizontalAlignment(0); label127.setMaximumSize(new Dimension(800, 50)); label127.setMinimumSize(new Dimension(800, 50)); label127.setPreferredSize(new Dimension(800, 50)); label127.setText( "Returns a list of recent activity on photos commented on by the calling user. Do not poll this method more than once an hour."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel45.add(label127, gbc); final JLabel label128 = new JLabel(); label128.setHorizontalAlignment(4); label128.setMaximumSize(new Dimension(400, 25)); label128.setMinimumSize(new Dimension(400, 25)); label128.setPreferredSize(new Dimension(400, 25)); label128.setText("Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel45.add(label128, gbc); txtUserCommentsPage = new JTextField(); txtUserCommentsPage.setMaximumSize(new Dimension(200, 25)); txtUserCommentsPage.setMinimumSize(new Dimension(200, 25)); txtUserCommentsPage.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); panel45.add(txtUserCommentsPage, gbc); final JLabel label129 = new JLabel(); label129.setHorizontalAlignment(4); label129.setMaximumSize(new Dimension(400, 25)); label129.setMinimumSize(new Dimension(400, 25)); label129.setPreferredSize(new Dimension(400, 25)); label129.setText("Per Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; panel45.add(label129, gbc); cmbUserCommentsPerPage = new JComboBox(); cmbUserCommentsPerPage.setMaximumSize(new Dimension(200, 25)); cmbUserCommentsPerPage.setMinimumSize(new Dimension(200, 25)); cmbUserCommentsPerPage.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); panel45.add(cmbUserCommentsPerPage, gbc); userCommentsInvoke = new JButton(); userCommentsInvoke.setFont(new Font(userCommentsInvoke.getFont().getName(), Font.BOLD, userCommentsInvoke.getFont().getSize())); userCommentsInvoke.setMaximumSize(new Dimension(100, 30)); userCommentsInvoke.setMinimumSize(new Dimension(100, 30)); userCommentsInvoke.setPreferredSize(new Dimension(100, 30)); userCommentsInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel45.add(userCommentsInvoke, gbc); final JScrollPane scrollPane31 = new JScrollPane(); scrollPane31.setMaximumSize(new Dimension(550, 225)); scrollPane31.setMinimumSize(new Dimension(550, 225)); scrollPane31.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.weighty = 1.0; panel45.add(scrollPane31, gbc); userCommentsOutput = new JTextArea(); userCommentsOutput.setBackground(new Color(-3355444)); scrollPane31.setViewportView(userCommentsOutput); final JPanel panel46 = new JPanel(); panel46.setLayout(new GridBagLayout()); activityOperationPane.addTab("UserPhotos", panel46); final JLabel label130 = new JLabel(); label130.setFont(new Font(label130.getFont().getName(), Font.BOLD, label130.getFont().getSize())); label130.setHorizontalAlignment(0); label130.setMaximumSize(new Dimension(800, 50)); label130.setMinimumSize(new Dimension(800, 50)); label130.setPreferredSize(new Dimension(800, 50)); label130.setText( "Returns a list of recent activity on photos belonging to the calling user. Do not poll this method more than once an hour."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel46.add(label130, gbc); final JLabel label131 = new JLabel(); label131.setFont(new Font(label131.getFont().getName(), Font.BOLD, label131.getFont().getSize())); label131.setHorizontalAlignment(4); label131.setMaximumSize(new Dimension(400, 25)); label131.setMinimumSize(new Dimension(400, 25)); label131.setPreferredSize(new Dimension(400, 25)); label131.setText("TimeFrame : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel46.add(label131, gbc); txtUserPhotosTimeFrame = new JTextField(); txtUserPhotosTimeFrame.setMaximumSize(new Dimension(200, 25)); txtUserPhotosTimeFrame.setMinimumSize(new Dimension(200, 25)); txtUserPhotosTimeFrame.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); panel46.add(txtUserPhotosTimeFrame, gbc); final JLabel label132 = new JLabel(); label132.setHorizontalAlignment(4); label132.setMaximumSize(new Dimension(400, 25)); label132.setMinimumSize(new Dimension(400, 25)); label132.setPreferredSize(new Dimension(400, 25)); label132.setText("Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel46.add(label132, gbc); txtUserPhotosPage = new JTextField(); txtUserPhotosPage.setMaximumSize(new Dimension(200, 25)); txtUserPhotosPage.setMinimumSize(new Dimension(200, 25)); txtUserPhotosPage.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); panel46.add(txtUserPhotosPage, gbc); final JLabel label133 = new JLabel(); label133.setHorizontalAlignment(4); label133.setMaximumSize(new Dimension(400, 25)); label133.setMinimumSize(new Dimension(400, 25)); label133.setPreferredSize(new Dimension(400, 25)); label133.setText("Per Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; panel46.add(label133, gbc); cmbUserPhotosPerPage = new JComboBox(); cmbUserPhotosPerPage.setMaximumSize(new Dimension(200, 25)); cmbUserPhotosPerPage.setMinimumSize(new Dimension(200, 25)); cmbUserPhotosPerPage.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); panel46.add(cmbUserPhotosPerPage, gbc); userPhotosInvoke = new JButton(); userPhotosInvoke.setFont( new Font(userPhotosInvoke.getFont().getName(), Font.BOLD, userPhotosInvoke.getFont().getSize())); userPhotosInvoke.setMaximumSize(new Dimension(100, 30)); userPhotosInvoke.setMinimumSize(new Dimension(100, 30)); userPhotosInvoke.setPreferredSize(new Dimension(100, 30)); userPhotosInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel46.add(userPhotosInvoke, gbc); final JScrollPane scrollPane32 = new JScrollPane(); scrollPane32.setMaximumSize(new Dimension(550, 225)); scrollPane32.setMinimumSize(new Dimension(550, 225)); scrollPane32.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 2; gbc.weighty = 1.0; panel46.add(scrollPane32, gbc); userPhotosOutput = new JTextArea(); userPhotosOutput.setBackground(new Color(-3355444)); scrollPane32.setViewportView(userPhotosOutput); final JPanel panel47 = new JPanel(); panel47.setLayout(new GridBagLayout()); tabbedPane1.addTab("Blogs", panel47); blogsOperationPane = new JTabbedPane(); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.fill = GridBagConstraints.BOTH; panel47.add(blogsOperationPane, gbc); final JPanel panel48 = new JPanel(); panel48.setLayout(new GridBagLayout()); blogsOperationPane.addTab("GetList", panel48); final JLabel label134 = new JLabel(); label134.setFont(new Font(label134.getFont().getName(), Font.BOLD, label134.getFont().getSize())); label134.setHorizontalAlignment(0); label134.setHorizontalTextPosition(0); label134.setMaximumSize(new Dimension(400, 50)); label134.setMinimumSize(new Dimension(400, 50)); label134.setPreferredSize(new Dimension(400, 50)); label134.setText("Get a list of configured blogs 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); panel48.add(label134, gbc); final JScrollPane scrollPane33 = new JScrollPane(); scrollPane33.setBackground(new Color(-3355444)); scrollPane33.setMaximumSize(new Dimension(550, 225)); scrollPane33.setMinimumSize(new Dimension(550, 225)); scrollPane33.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.weighty = 1.0; panel48.add(scrollPane33, gbc); blogsGetListOutput = new JTextArea(); blogsGetListOutput.setBackground(new Color(-3355444)); blogsGetListOutput.setEditable(false); blogsGetListOutput.setText(""); scrollPane33.setViewportView(blogsGetListOutput); blogsGetListInvoke = new JButton(); blogsGetListInvoke.setFocusCycleRoot(true); blogsGetListInvoke.setFont(new Font(blogsGetListInvoke.getFont().getName(), Font.BOLD, blogsGetListInvoke.getFont().getSize())); blogsGetListInvoke.setMaximumSize(new Dimension(100, 30)); blogsGetListInvoke.setMinimumSize(new Dimension(100, 30)); blogsGetListInvoke.setPreferredSize(new Dimension(100, 30)); blogsGetListInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel48.add(blogsGetListInvoke, gbc); final JPanel panel49 = new JPanel(); panel49.setLayout(new GridBagLayout()); blogsOperationPane.addTab("PostPhoto", panel49); final JLabel label135 = new JLabel(); label135.setFont(new Font(label135.getFont().getName(), Font.BOLD, label135.getFont().getSize())); label135.setHorizontalAlignment(0); label135.setMaximumSize(new Dimension(600, 50)); label135.setMinimumSize(new Dimension(600, 50)); label135.setPreferredSize(new Dimension(600, 50)); label135.setText("Post a photo to a Blog."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(25, 0, 25, 0); panel49.add(label135, gbc); final JLabel label136 = new JLabel(); label136.setFont(new Font(label136.getFont().getName(), Font.BOLD, label136.getFont().getSize())); label136.setHorizontalAlignment(4); label136.setMaximumSize(new Dimension(400, 25)); label136.setMinimumSize(new Dimension(400, 25)); label136.setPreferredSize(new Dimension(400, 25)); label136.setText("Blog ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel49.add(label136, gbc); txtPostPhotoBlogID = new JTextField(); txtPostPhotoBlogID.setMaximumSize(new Dimension(200, 25)); txtPostPhotoBlogID.setMinimumSize(new Dimension(200, 25)); txtPostPhotoBlogID.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); panel49.add(txtPostPhotoBlogID, gbc); final JLabel label137 = new JLabel(); label137.setFont(new Font(label137.getFont().getName(), Font.BOLD, label137.getFont().getSize())); label137.setHorizontalAlignment(4); label137.setMaximumSize(new Dimension(400, 25)); label137.setMinimumSize(new Dimension(400, 25)); label137.setPreferredSize(new Dimension(400, 25)); label137.setText("Photo ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel49.add(label137, gbc); txtPostPhotoPhotoID = new JTextField(); txtPostPhotoPhotoID.setMaximumSize(new Dimension(200, 25)); txtPostPhotoPhotoID.setMinimumSize(new Dimension(200, 25)); txtPostPhotoPhotoID.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); panel49.add(txtPostPhotoPhotoID, gbc); postPhotoInvoke = new JButton(); postPhotoInvoke.setFont( new Font(postPhotoInvoke.getFont().getName(), Font.BOLD, postPhotoInvoke.getFont().getSize())); postPhotoInvoke.setMaximumSize(new Dimension(100, 30)); postPhotoInvoke.setMinimumSize(new Dimension(100, 30)); postPhotoInvoke.setPreferredSize(new Dimension(100, 30)); postPhotoInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.gridwidth = 2; gbc.insets = new Insets(25, 0, 25, 0); panel49.add(postPhotoInvoke, gbc); final JScrollPane scrollPane34 = new JScrollPane(); scrollPane34.setMaximumSize(new Dimension(550, 225)); scrollPane34.setMinimumSize(new Dimension(550, 225)); scrollPane34.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 7; gbc.gridwidth = 2; gbc.weighty = 1.0; panel49.add(scrollPane34, gbc); postPhotoOutput = new JTextArea(); postPhotoOutput.setBackground(new Color(-3355444)); scrollPane34.setViewportView(postPhotoOutput); txtPostPhotoTitle = new JTextField(); txtPostPhotoTitle.setMaximumSize(new Dimension(200, 25)); txtPostPhotoTitle.setMinimumSize(new Dimension(200, 25)); txtPostPhotoTitle.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); panel49.add(txtPostPhotoTitle, gbc); final JLabel label138 = new JLabel(); label138.setFont(new Font(label138.getFont().getName(), Font.BOLD, label138.getFont().getSize())); label138.setHorizontalAlignment(4); label138.setMaximumSize(new Dimension(400, 25)); label138.setMinimumSize(new Dimension(400, 25)); label138.setPreferredSize(new Dimension(400, 25)); label138.setText("Title : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel49.add(label138, gbc); final JLabel label139 = new JLabel(); label139.setHorizontalAlignment(4); label139.setMaximumSize(new Dimension(400, 25)); label139.setMinimumSize(new Dimension(400, 25)); label139.setPreferredSize(new Dimension(400, 25)); label139.setText("Blog Password : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.anchor = GridBagConstraints.WEST; panel49.add(label139, gbc); txtPostPhotoPassword = new JTextField(); txtPostPhotoPassword.setMaximumSize(new Dimension(200, 25)); txtPostPhotoPassword.setMinimumSize(new Dimension(200, 25)); txtPostPhotoPassword.setPreferredSize(new Dimension(200, 25)); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 5; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 0, 0); panel49.add(txtPostPhotoPassword, gbc); txtPostPhotoDescription = new JTextField(); txtPostPhotoDescription.setMaximumSize(new Dimension(200, 25)); txtPostPhotoDescription.setMinimumSize(new Dimension(200, 25)); txtPostPhotoDescription.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, 15, 0); panel49.add(txtPostPhotoDescription, gbc); final JLabel label140 = new JLabel(); label140.setFont(new Font(label140.getFont().getName(), Font.BOLD, label140.getFont().getSize())); label140.setHorizontalAlignment(4); label140.setMaximumSize(new Dimension(400, 25)); label140.setMinimumSize(new Dimension(400, 25)); label140.setPreferredSize(new Dimension(400, 25)); label140.setText("Description : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel49.add(label140, gbc); final JPanel panel50 = new JPanel(); panel50.setLayout(new GridBagLayout()); tabbedPane1.addTab("PhotoSetsComments", panel50); photoSetsCommentsOperationPane = new JTabbedPane(); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.fill = GridBagConstraints.BOTH; panel50.add(photoSetsCommentsOperationPane, gbc); final JPanel panel51 = new JPanel(); panel51.setLayout(new GridBagLayout()); photoSetsCommentsOperationPane.addTab("AddComment", panel51); final JLabel label141 = new JLabel(); label141.setFont(new Font(label141.getFont().getName(), Font.BOLD, label141.getFont().getSize())); label141.setHorizontalAlignment(4); label141.setMaximumSize(new Dimension(400, 25)); label141.setMinimumSize(new Dimension(400, 25)); label141.setPreferredSize(new Dimension(400, 25)); label141.setText("PhotoSet ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 25, 0); panel51.add(label141, gbc); txtPhotoSetsCommAddID = new JTextField(); txtPhotoSetsCommAddID.setMaximumSize(new Dimension(200, 25)); txtPhotoSetsCommAddID.setMinimumSize(new Dimension(200, 25)); txtPhotoSetsCommAddID.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); panel51.add(txtPhotoSetsCommAddID, gbc); final JLabel label142 = new JLabel(); label142.setHorizontalAlignment(4); label142.setMaximumSize(new Dimension(400, 25)); label142.setMinimumSize(new Dimension(400, 25)); label142.setPreferredSize(new Dimension(400, 25)); label142.setText("Comment :"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 25, 0); panel51.add(label142, gbc); PhotoSetsCommAddComment = new JTextField(); PhotoSetsCommAddComment.setMaximumSize(new Dimension(200, 25)); PhotoSetsCommAddComment.setMinimumSize(new Dimension(200, 25)); PhotoSetsCommAddComment.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); panel51.add(PhotoSetsCommAddComment, gbc); photoSetsCommAddInvoke = new JButton(); photoSetsCommAddInvoke.setFont(new Font(photoSetsCommAddInvoke.getFont().getName(), Font.BOLD, photoSetsCommAddInvoke.getFont().getSize())); photoSetsCommAddInvoke.setLabel("Invoke"); photoSetsCommAddInvoke.setMaximumSize(new Dimension(100, 30)); photoSetsCommAddInvoke.setMinimumSize(new Dimension(100, 30)); photoSetsCommAddInvoke.setPreferredSize(new Dimension(100, 30)); photoSetsCommAddInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.insets = new Insets(25, 0, 50, 0); panel51.add(photoSetsCommAddInvoke, gbc); final JLabel label143 = new JLabel(); label143.setFont(new Font(label143.getFont().getName(), Font.BOLD, label143.getFont().getSize())); label143.setHorizontalAlignment(0); label143.setMaximumSize(new Dimension(600, 50)); label143.setMinimumSize(new Dimension(600, 50)); label143.setPreferredSize(new Dimension(600, 50)); label143.setText("Add a comment to a photoset."); 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); panel51.add(label143, gbc); final JScrollPane scrollPane35 = new JScrollPane(); scrollPane35.setMaximumSize(new Dimension(550, 225)); scrollPane35.setMinimumSize(new Dimension(550, 225)); scrollPane35.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.weighty = 1.0; panel51.add(scrollPane35, gbc); photoSetsCommAddOutput = new JTextArea(); photoSetsCommAddOutput.setBackground(new Color(-3355444)); scrollPane35.setViewportView(photoSetsCommAddOutput); final JPanel panel52 = new JPanel(); panel52.setLayout(new GridBagLayout()); photoSetsCommentsOperationPane.addTab("DeleteComment", panel52); final JLabel label144 = new JLabel(); label144.setFont(new Font(label144.getFont().getName(), Font.BOLD, label144.getFont().getSize())); label144.setHorizontalAlignment(0); label144.setMaximumSize(new Dimension(600, 50)); label144.setMinimumSize(new Dimension(600, 50)); label144.setPreferredSize(new Dimension(600, 50)); label144.setText("Delete a photoset comment as the currently authenticated user."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel52.add(label144, gbc); final JLabel label145 = new JLabel(); label145.setFont(new Font(label145.getFont().getName(), Font.BOLD, label145.getFont().getSize())); label145.setHorizontalAlignment(4); label145.setMaximumSize(new Dimension(400, 25)); label145.setMinimumSize(new Dimension(400, 25)); label145.setPreferredSize(new Dimension(400, 25)); label145.setText("Comment ID : "); label145.setVerticalAlignment(0); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.EAST; panel52.add(label145, gbc); txtPhotoSetsCommDelID = new JTextField(); txtPhotoSetsCommDelID.setMaximumSize(new Dimension(200, 25)); txtPhotoSetsCommDelID.setMinimumSize(new Dimension(200, 25)); txtPhotoSetsCommDelID.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); panel52.add(txtPhotoSetsCommDelID, gbc); photoSetsCommDelInvoke = new JButton(); photoSetsCommDelInvoke.setFont(new Font(photoSetsCommDelInvoke.getFont().getName(), Font.BOLD, photoSetsCommDelInvoke.getFont().getSize())); photoSetsCommDelInvoke.setMaximumSize(new Dimension(100, 30)); photoSetsCommDelInvoke.setMinimumSize(new Dimension(100, 30)); photoSetsCommDelInvoke.setPreferredSize(new Dimension(100, 30)); photoSetsCommDelInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel52.add(photoSetsCommDelInvoke, gbc); final JScrollPane scrollPane36 = new JScrollPane(); scrollPane36.setMaximumSize(new Dimension(550, 225)); scrollPane36.setMinimumSize(new Dimension(550, 225)); scrollPane36.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; panel52.add(scrollPane36, gbc); photoSetsCommDelOutput = new JTextArea(); photoSetsCommDelOutput.setBackground(new Color(-3355444)); photoSetsCommDelOutput.setEditable(false); scrollPane36.setViewportView(photoSetsCommDelOutput); final JPanel panel53 = new JPanel(); panel53.setLayout(new GridBagLayout()); photoSetsCommentsOperationPane.addTab("EditComment", panel53); final JLabel label146 = new JLabel(); label146.setFont(new Font(label146.getFont().getName(), Font.BOLD, label146.getFont().getSize())); label146.setHorizontalAlignment(4); label146.setMaximumSize(new Dimension(400, 25)); label146.setMinimumSize(new Dimension(400, 25)); label146.setPreferredSize(new Dimension(400, 25)); label146.setText("Comment ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 25, 0); panel53.add(label146, gbc); txtPhotoSetsCommEditID = new JTextField(); txtPhotoSetsCommEditID.setMaximumSize(new Dimension(200, 25)); txtPhotoSetsCommEditID.setMinimumSize(new Dimension(200, 25)); txtPhotoSetsCommEditID.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); panel53.add(txtPhotoSetsCommEditID, gbc); final JLabel label147 = new JLabel(); label147.setHorizontalAlignment(4); label147.setMaximumSize(new Dimension(400, 25)); label147.setMinimumSize(new Dimension(400, 25)); label147.setPreferredSize(new Dimension(400, 25)); label147.setText("Comment :"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 25, 0); panel53.add(label147, gbc); txtPhotoSetsCommEditComment = new JTextField(); txtPhotoSetsCommEditComment.setMaximumSize(new Dimension(200, 25)); txtPhotoSetsCommEditComment.setMinimumSize(new Dimension(200, 25)); txtPhotoSetsCommEditComment.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); panel53.add(txtPhotoSetsCommEditComment, gbc); photoSetsCommEditInvoke = new JButton(); photoSetsCommEditInvoke.setFont(new Font(photoSetsCommEditInvoke.getFont().getName(), Font.BOLD, photoSetsCommEditInvoke.getFont().getSize())); photoSetsCommEditInvoke.setLabel("Invoke"); photoSetsCommEditInvoke.setMaximumSize(new Dimension(100, 30)); photoSetsCommEditInvoke.setMinimumSize(new Dimension(100, 30)); photoSetsCommEditInvoke.setPreferredSize(new Dimension(100, 30)); photoSetsCommEditInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.insets = new Insets(25, 0, 50, 0); panel53.add(photoSetsCommEditInvoke, gbc); final JLabel label148 = new JLabel(); label148.setFont(new Font(label148.getFont().getName(), Font.BOLD, label148.getFont().getSize())); label148.setHorizontalAlignment(0); label148.setMaximumSize(new Dimension(600, 50)); label148.setMinimumSize(new Dimension(600, 50)); label148.setPreferredSize(new Dimension(600, 50)); label148.setText("Edit the text of a comment as the currently authenticated user."); 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); panel53.add(label148, gbc); final JScrollPane scrollPane37 = new JScrollPane(); scrollPane37.setMaximumSize(new Dimension(550, 225)); scrollPane37.setMinimumSize(new Dimension(550, 225)); scrollPane37.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.weighty = 1.0; panel53.add(scrollPane37, gbc); PhotoSetsCommEditOutput = new JTextArea(); PhotoSetsCommEditOutput.setBackground(new Color(-3355444)); scrollPane37.setViewportView(PhotoSetsCommEditOutput); final JPanel panel54 = new JPanel(); panel54.setLayout(new GridBagLayout()); photoSetsCommentsOperationPane.addTab("GetList", panel54); final JLabel label149 = new JLabel(); label149.setFont(new Font(label149.getFont().getName(), Font.BOLD, label149.getFont().getSize())); label149.setHorizontalAlignment(0); label149.setMaximumSize(new Dimension(600, 50)); label149.setMinimumSize(new Dimension(600, 50)); label149.setPreferredSize(new Dimension(600, 50)); label149.setText("Returns the comments for a photoset."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel54.add(label149, gbc); final JLabel label150 = new JLabel(); label150.setFont(new Font(label150.getFont().getName(), Font.BOLD, label150.getFont().getSize())); label150.setHorizontalAlignment(4); label150.setMaximumSize(new Dimension(400, 25)); label150.setMinimumSize(new Dimension(400, 25)); label150.setPreferredSize(new Dimension(400, 25)); label150.setText("PhotoSet ID : "); label150.setVerticalAlignment(0); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.EAST; panel54.add(label150, gbc); txtPhotoSetsCommGetID = new JTextField(); txtPhotoSetsCommGetID.setMaximumSize(new Dimension(200, 25)); txtPhotoSetsCommGetID.setMinimumSize(new Dimension(200, 25)); txtPhotoSetsCommGetID.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); panel54.add(txtPhotoSetsCommGetID, gbc); photoSetsCommGetInvoke = new JButton(); photoSetsCommGetInvoke.setFont(new Font(photoSetsCommGetInvoke.getFont().getName(), Font.BOLD, photoSetsCommGetInvoke.getFont().getSize())); photoSetsCommGetInvoke.setMaximumSize(new Dimension(100, 30)); photoSetsCommGetInvoke.setMinimumSize(new Dimension(100, 30)); photoSetsCommGetInvoke.setPreferredSize(new Dimension(100, 30)); photoSetsCommGetInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel54.add(photoSetsCommGetInvoke, gbc); final JScrollPane scrollPane38 = new JScrollPane(); scrollPane38.setMaximumSize(new Dimension(550, 225)); scrollPane38.setMinimumSize(new Dimension(550, 225)); scrollPane38.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; panel54.add(scrollPane38, gbc); photoSetsCommGetOutput = new JTextArea(); photoSetsCommGetOutput.setBackground(new Color(-3355444)); photoSetsCommGetOutput.setEditable(false); scrollPane38.setViewportView(photoSetsCommGetOutput); final JPanel panel55 = new JPanel(); panel55.setLayout(new GridBagLayout()); tabbedPane1.addTab("Contacts", panel55); contactsOperationPane = new JTabbedPane(); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.fill = GridBagConstraints.BOTH; panel55.add(contactsOperationPane, gbc); final JPanel panel56 = new JPanel(); panel56.setLayout(new GridBagLayout()); contactsOperationPane.addTab("GetList", panel56); final JLabel label151 = new JLabel(); label151.setFont(new Font(label151.getFont().getName(), Font.BOLD, label151.getFont().getSize())); label151.setHorizontalAlignment(0); label151.setMaximumSize(new Dimension(600, 50)); label151.setMinimumSize(new Dimension(600, 50)); label151.setPreferredSize(new Dimension(600, 50)); label151.setText("Get a list of contacts 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); panel56.add(label151, gbc); final JLabel label152 = new JLabel(); label152.setFont(new Font(label152.getFont().getName(), label152.getFont().getStyle(), label152.getFont().getSize())); label152.setHorizontalAlignment(4); label152.setMaximumSize(new Dimension(400, 25)); label152.setMinimumSize(new Dimension(400, 25)); label152.setPreferredSize(new Dimension(400, 25)); label152.setText("Filter : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel56.add(label152, gbc); final JLabel label153 = new JLabel(); label153.setHorizontalAlignment(4); label153.setMaximumSize(new Dimension(400, 25)); label153.setMinimumSize(new Dimension(400, 25)); label153.setPreferredSize(new Dimension(400, 25)); label153.setText("Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel56.add(label153, gbc); txtContactsGetPage = new JTextField(); txtContactsGetPage.setMaximumSize(new Dimension(200, 25)); txtContactsGetPage.setMinimumSize(new Dimension(200, 25)); txtContactsGetPage.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); panel56.add(txtContactsGetPage, gbc); final JLabel label154 = new JLabel(); label154.setHorizontalAlignment(4); label154.setMaximumSize(new Dimension(400, 25)); label154.setMinimumSize(new Dimension(400, 25)); label154.setPreferredSize(new Dimension(400, 25)); label154.setText("Per Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; panel56.add(label154, gbc); cmbContactsGetPerPage = new JComboBox(); cmbContactsGetPerPage.setMaximumSize(new Dimension(200, 25)); cmbContactsGetPerPage.setMinimumSize(new Dimension(200, 25)); cmbContactsGetPerPage.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); panel56.add(cmbContactsGetPerPage, gbc); contactsGetInvoke = new JButton(); contactsGetInvoke.setFont( new Font(contactsGetInvoke.getFont().getName(), Font.BOLD, contactsGetInvoke.getFont().getSize())); contactsGetInvoke.setMaximumSize(new Dimension(100, 30)); contactsGetInvoke.setMinimumSize(new Dimension(100, 30)); contactsGetInvoke.setPreferredSize(new Dimension(100, 30)); contactsGetInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel56.add(contactsGetInvoke, gbc); final JScrollPane scrollPane39 = new JScrollPane(); scrollPane39.setMaximumSize(new Dimension(550, 225)); scrollPane39.setMinimumSize(new Dimension(550, 225)); scrollPane39.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 2; gbc.weighty = 1.0; panel56.add(scrollPane39, gbc); contactsGetOutput = new JTextArea(); contactsGetOutput.setBackground(new Color(-3355444)); scrollPane39.setViewportView(contactsGetOutput); cmbContactsGetFilter = new JComboBox(); cmbContactsGetFilter.setMaximumSize(new Dimension(200, 25)); cmbContactsGetFilter.setMinimumSize(new Dimension(200, 25)); cmbContactsGetFilter.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); panel56.add(cmbContactsGetFilter, gbc); final JPanel panel57 = new JPanel(); panel57.setLayout(new GridBagLayout()); contactsOperationPane.addTab("GetPublicList ", panel57); final JLabel label155 = new JLabel(); label155.setFont(new Font(label155.getFont().getName(), Font.BOLD, label155.getFont().getSize())); label155.setHorizontalAlignment(0); label155.setMaximumSize(new Dimension(600, 50)); label155.setMinimumSize(new Dimension(600, 50)); label155.setPreferredSize(new Dimension(600, 50)); label155.setText("Get the contact list for a 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); panel57.add(label155, gbc); final JLabel label156 = new JLabel(); label156.setFont(new Font(label156.getFont().getName(), Font.BOLD, label156.getFont().getSize())); label156.setHorizontalAlignment(4); label156.setMaximumSize(new Dimension(400, 25)); label156.setMinimumSize(new Dimension(400, 25)); label156.setPreferredSize(new Dimension(400, 25)); label156.setText("User ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel57.add(label156, gbc); final JLabel label157 = new JLabel(); label157.setHorizontalAlignment(4); label157.setMaximumSize(new Dimension(400, 25)); label157.setMinimumSize(new Dimension(400, 25)); label157.setPreferredSize(new Dimension(400, 25)); label157.setText("Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel57.add(label157, gbc); txtContactsGetPubPage = new JTextField(); txtContactsGetPubPage.setMaximumSize(new Dimension(200, 25)); txtContactsGetPubPage.setMinimumSize(new Dimension(200, 25)); txtContactsGetPubPage.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); panel57.add(txtContactsGetPubPage, gbc); final JLabel label158 = new JLabel(); label158.setHorizontalAlignment(4); label158.setMaximumSize(new Dimension(400, 25)); label158.setMinimumSize(new Dimension(400, 25)); label158.setPreferredSize(new Dimension(400, 25)); label158.setText("Per Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; panel57.add(label158, gbc); cmbContactsGetPubPerPage = new JComboBox(); cmbContactsGetPubPerPage.setMaximumSize(new Dimension(200, 25)); cmbContactsGetPubPerPage.setMinimumSize(new Dimension(200, 25)); cmbContactsGetPubPerPage.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); panel57.add(cmbContactsGetPubPerPage, gbc); contactsGetPubInvoke = new JButton(); contactsGetPubInvoke.setFont(new Font(contactsGetPubInvoke.getFont().getName(), Font.BOLD, contactsGetPubInvoke.getFont().getSize())); contactsGetPubInvoke.setMaximumSize(new Dimension(100, 30)); contactsGetPubInvoke.setMinimumSize(new Dimension(100, 30)); contactsGetPubInvoke.setPreferredSize(new Dimension(100, 30)); contactsGetPubInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel57.add(contactsGetPubInvoke, gbc); final JScrollPane scrollPane40 = new JScrollPane(); scrollPane40.setMaximumSize(new Dimension(550, 225)); scrollPane40.setMinimumSize(new Dimension(550, 225)); scrollPane40.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 2; gbc.weighty = 1.0; panel57.add(scrollPane40, gbc); contactsGetPubOutput = new JTextArea(); contactsGetPubOutput.setBackground(new Color(-3355444)); scrollPane40.setViewportView(contactsGetPubOutput); txtContactsGetPubID = new JTextField(); txtContactsGetPubID.setMaximumSize(new Dimension(200, 25)); txtContactsGetPubID.setMinimumSize(new Dimension(200, 25)); txtContactsGetPubID.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); panel57.add(txtContactsGetPubID, gbc); final JPanel panel58 = new JPanel(); panel58.setLayout(new GridBagLayout()); tabbedPane1.addTab("Favorites", panel58); favoritesOperationPane = new JTabbedPane(); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.fill = GridBagConstraints.BOTH; panel58.add(favoritesOperationPane, gbc); final JPanel panel59 = new JPanel(); panel59.setLayout(new GridBagLayout()); favoritesOperationPane.addTab("Add", panel59); final JLabel label159 = new JLabel(); label159.setFont(new Font(label159.getFont().getName(), Font.BOLD, label159.getFont().getSize())); label159.setHorizontalAlignment(0); label159.setMaximumSize(new Dimension(600, 50)); label159.setMinimumSize(new Dimension(600, 50)); label159.setPreferredSize(new Dimension(600, 50)); label159.setText("Adds a photo to a user's favorites list."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel59.add(label159, gbc); final JLabel label160 = new JLabel(); label160.setFont(new Font(label160.getFont().getName(), Font.BOLD, label160.getFont().getSize())); label160.setHorizontalAlignment(4); label160.setMaximumSize(new Dimension(400, 25)); label160.setMinimumSize(new Dimension(400, 25)); label160.setPreferredSize(new Dimension(400, 25)); label160.setText("Photo ID : "); label160.setVerticalAlignment(0); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.EAST; panel59.add(label160, gbc); txtFavoritesAddID = new JTextField(); txtFavoritesAddID.setMaximumSize(new Dimension(200, 25)); txtFavoritesAddID.setMinimumSize(new Dimension(200, 25)); txtFavoritesAddID.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); panel59.add(txtFavoritesAddID, gbc); favoritesAddInvoke = new JButton(); favoritesAddInvoke.setFont(new Font(favoritesAddInvoke.getFont().getName(), Font.BOLD, favoritesAddInvoke.getFont().getSize())); favoritesAddInvoke.setMaximumSize(new Dimension(100, 30)); favoritesAddInvoke.setMinimumSize(new Dimension(100, 30)); favoritesAddInvoke.setPreferredSize(new Dimension(100, 30)); favoritesAddInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel59.add(favoritesAddInvoke, gbc); final JScrollPane scrollPane41 = new JScrollPane(); scrollPane41.setMaximumSize(new Dimension(550, 225)); scrollPane41.setMinimumSize(new Dimension(550, 225)); scrollPane41.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; panel59.add(scrollPane41, gbc); favoritesAddOutput = new JTextArea(); favoritesAddOutput.setBackground(new Color(-3355444)); favoritesAddOutput.setEditable(false); scrollPane41.setViewportView(favoritesAddOutput); final JPanel panel60 = new JPanel(); panel60.setLayout(new GridBagLayout()); favoritesOperationPane.addTab("GetList", panel60); final JLabel label161 = new JLabel(); label161.setFont(new Font(label161.getFont().getName(), Font.BOLD, label161.getFont().getSize())); label161.setHorizontalAlignment(0); label161.setMaximumSize(new Dimension(800, 50)); label161.setMinimumSize(new Dimension(800, 50)); label161.setPreferredSize(new Dimension(800, 50)); label161.setText( "Returns a list of the user's favorite photos. Only photos which the calling user has permission to see are returned."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(25, 0, 25, 0); panel60.add(label161, gbc); txtFavoritesGetPage = new JTextField(); txtFavoritesGetPage.setMaximumSize(new Dimension(200, 25)); txtFavoritesGetPage.setMinimumSize(new Dimension(200, 25)); txtFavoritesGetPage.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); panel60.add(txtFavoritesGetPage, gbc); final JLabel label162 = new JLabel(); label162.setHorizontalAlignment(4); label162.setMaximumSize(new Dimension(400, 25)); label162.setMinimumSize(new Dimension(400, 25)); label162.setPreferredSize(new Dimension(400, 25)); label162.setText("Per Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel60.add(label162, gbc); cmbFavoritesGetPerPage = new JComboBox(); cmbFavoritesGetPerPage.setMaximumSize(new Dimension(200, 25)); cmbFavoritesGetPerPage.setMinimumSize(new Dimension(200, 25)); cmbFavoritesGetPerPage.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, 10, 0); panel60.add(cmbFavoritesGetPerPage, gbc); favoritesGetInvoke = new JButton(); favoritesGetInvoke.setFont(new Font(favoritesGetInvoke.getFont().getName(), Font.BOLD, favoritesGetInvoke.getFont().getSize())); favoritesGetInvoke.setMaximumSize(new Dimension(100, 30)); favoritesGetInvoke.setMinimumSize(new Dimension(100, 30)); favoritesGetInvoke.setPreferredSize(new Dimension(100, 30)); favoritesGetInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 2; gbc.insets = new Insets(25, 0, 0, 0); panel60.add(favoritesGetInvoke, gbc); final JPanel panel61 = new JPanel(); panel61.setLayout(new GridBagLayout()); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.fill = GridBagConstraints.BOTH; panel60.add(panel61, gbc); final JLabel label163 = new JLabel(); label163.setFont(new Font(label163.getFont().getName(), Font.BOLD, label163.getFont().getSize())); label163.setMaximumSize(new Dimension(400, 25)); label163.setMinimumSize(new Dimension(400, 25)); label163.setPreferredSize(new Dimension(400, 25)); label163.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); panel61.add(label163, gbc); chkFavoritesGetLicense = new JCheckBox(); chkFavoritesGetLicense.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); panel61.add(chkFavoritesGetLicense, gbc); chkFavoritesGetDateUp = new JCheckBox(); chkFavoritesGetDateUp.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); panel61.add(chkFavoritesGetDateUp, gbc); chkFavoritesGetDateTak = new JCheckBox(); chkFavoritesGetDateTak.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); panel61.add(chkFavoritesGetDateTak, gbc); chkFavoritesGetOwner = new JCheckBox(); chkFavoritesGetOwner.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); panel61.add(chkFavoritesGetOwner, gbc); chkFavoritesGetServer = new JCheckBox(); chkFavoritesGetServer.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); panel61.add(chkFavoritesGetServer, gbc); chkFavoritesGetOriginal = new JCheckBox(); chkFavoritesGetOriginal.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); panel61.add(chkFavoritesGetOriginal, gbc); chkFavoritesGetLastUp = new JCheckBox(); chkFavoritesGetLastUp.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); panel61.add(chkFavoritesGetLastUp, gbc); chkFavoritesGetGeo = new JCheckBox(); chkFavoritesGetGeo.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); panel61.add(chkFavoritesGetGeo, gbc); chkFavoritesGetTags = new JCheckBox(); chkFavoritesGetTags.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); panel61.add(chkFavoritesGetTags, gbc); chkFavoritesGetMachine = new JCheckBox(); chkFavoritesGetMachine.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); panel61.add(chkFavoritesGetMachine, gbc); final JScrollPane scrollPane42 = new JScrollPane(); scrollPane42.setMaximumSize(new Dimension(550, 225)); scrollPane42.setMinimumSize(new Dimension(550, 225)); scrollPane42.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.gridwidth = 2; gbc.weighty = 1.0; panel60.add(scrollPane42, gbc); favoritesGetOutput = new JTextArea(); favoritesGetOutput.setBackground(new Color(-3355444)); scrollPane42.setViewportView(favoritesGetOutput); final JLabel label164 = new JLabel(); label164.setHorizontalAlignment(4); label164.setMaximumSize(new Dimension(400, 25)); label164.setMinimumSize(new Dimension(400, 25)); label164.setPreferredSize(new Dimension(400, 25)); label164.setText("Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel60.add(label164, gbc); txtFavoritesGetID = new JTextField(); txtFavoritesGetID.setMaximumSize(new Dimension(200, 25)); txtFavoritesGetID.setMinimumSize(new Dimension(200, 25)); txtFavoritesGetID.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); panel60.add(txtFavoritesGetID, gbc); final JLabel label165 = new JLabel(); label165.setHorizontalAlignment(4); label165.setMaximumSize(new Dimension(400, 25)); label165.setMinimumSize(new Dimension(400, 25)); label165.setPreferredSize(new Dimension(400, 25)); label165.setText("User ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel60.add(label165, gbc); final JPanel panel62 = new JPanel(); panel62.setLayout(new GridBagLayout()); favoritesOperationPane.addTab("GetPublicList", panel62); final JLabel label166 = new JLabel(); label166.setFont(new Font(label166.getFont().getName(), Font.BOLD, label166.getFont().getSize())); label166.setHorizontalAlignment(0); label166.setMaximumSize(new Dimension(800, 50)); label166.setMinimumSize(new Dimension(800, 50)); label166.setPreferredSize(new Dimension(800, 50)); label166.setText("Returns a list of favorite public photos for the given user."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(25, 0, 25, 0); panel62.add(label166, gbc); txtFavoritesGetPubPage = new JTextField(); txtFavoritesGetPubPage.setMaximumSize(new Dimension(200, 25)); txtFavoritesGetPubPage.setMinimumSize(new Dimension(200, 25)); txtFavoritesGetPubPage.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); panel62.add(txtFavoritesGetPubPage, gbc); final JLabel label167 = new JLabel(); label167.setHorizontalAlignment(4); label167.setMaximumSize(new Dimension(400, 25)); label167.setMinimumSize(new Dimension(400, 25)); label167.setPreferredSize(new Dimension(400, 25)); label167.setText("Per Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel62.add(label167, gbc); cmbFavoritesGetPubPerPage = new JComboBox(); cmbFavoritesGetPubPerPage.setMaximumSize(new Dimension(200, 25)); cmbFavoritesGetPubPerPage.setMinimumSize(new Dimension(200, 25)); cmbFavoritesGetPubPerPage.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, 10, 0); panel62.add(cmbFavoritesGetPubPerPage, gbc); favoritesGetPubInvoke = new JButton(); favoritesGetPubInvoke.setFont(new Font(favoritesGetPubInvoke.getFont().getName(), Font.BOLD, favoritesGetPubInvoke.getFont().getSize())); favoritesGetPubInvoke.setMaximumSize(new Dimension(100, 30)); favoritesGetPubInvoke.setMinimumSize(new Dimension(100, 30)); favoritesGetPubInvoke.setPreferredSize(new Dimension(100, 30)); favoritesGetPubInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 2; gbc.insets = new Insets(25, 0, 0, 0); panel62.add(favoritesGetPubInvoke, gbc); final JPanel panel63 = new JPanel(); panel63.setLayout(new GridBagLayout()); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.fill = GridBagConstraints.BOTH; panel62.add(panel63, gbc); final JLabel label168 = new JLabel(); label168.setFont(new Font(label168.getFont().getName(), Font.BOLD, label168.getFont().getSize())); label168.setMaximumSize(new Dimension(400, 25)); label168.setMinimumSize(new Dimension(400, 25)); label168.setPreferredSize(new Dimension(400, 25)); label168.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); panel63.add(label168, gbc); chkFavoritesGetPubLicense = new JCheckBox(); chkFavoritesGetPubLicense.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); panel63.add(chkFavoritesGetPubLicense, gbc); chkFavoritesGetPubDateUp = new JCheckBox(); chkFavoritesGetPubDateUp.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); panel63.add(chkFavoritesGetPubDateUp, gbc); chkFavoritesGetPubDateTak = new JCheckBox(); chkFavoritesGetPubDateTak.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); panel63.add(chkFavoritesGetPubDateTak, gbc); chkFavoritesGetPubOwner = new JCheckBox(); chkFavoritesGetPubOwner.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); panel63.add(chkFavoritesGetPubOwner, gbc); chkFavoritesGetPubServer = new JCheckBox(); chkFavoritesGetPubServer.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); panel63.add(chkFavoritesGetPubServer, gbc); chkFavoritesGetPubOriginal = new JCheckBox(); chkFavoritesGetPubOriginal.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); panel63.add(chkFavoritesGetPubOriginal, gbc); chkFavoritesGetPubLastUp = new JCheckBox(); chkFavoritesGetPubLastUp.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); panel63.add(chkFavoritesGetPubLastUp, gbc); chkFavoritesGetPubGeo = new JCheckBox(); chkFavoritesGetPubGeo.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); panel63.add(chkFavoritesGetPubGeo, gbc); chkFavoritesGetPubTags = new JCheckBox(); chkFavoritesGetPubTags.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); panel63.add(chkFavoritesGetPubTags, gbc); chkFavoritesGetPubMachine = new JCheckBox(); chkFavoritesGetPubMachine.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); panel63.add(chkFavoritesGetPubMachine, gbc); final JScrollPane scrollPane43 = new JScrollPane(); scrollPane43.setMaximumSize(new Dimension(550, 225)); scrollPane43.setMinimumSize(new Dimension(550, 225)); scrollPane43.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.gridwidth = 2; gbc.weighty = 1.0; panel62.add(scrollPane43, gbc); favoritesGetPubOutput = new JTextArea(); favoritesGetPubOutput.setBackground(new Color(-3355444)); scrollPane43.setViewportView(favoritesGetPubOutput); final JLabel label169 = new JLabel(); label169.setHorizontalAlignment(4); label169.setMaximumSize(new Dimension(400, 25)); label169.setMinimumSize(new Dimension(400, 25)); label169.setPreferredSize(new Dimension(400, 25)); label169.setText("Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel62.add(label169, gbc); txtFavoritesGetPubID = new JTextField(); txtFavoritesGetPubID.setMaximumSize(new Dimension(200, 25)); txtFavoritesGetPubID.setMinimumSize(new Dimension(200, 25)); txtFavoritesGetPubID.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); panel62.add(txtFavoritesGetPubID, gbc); final JLabel label170 = new JLabel(); label170.setHorizontalAlignment(4); label170.setMaximumSize(new Dimension(400, 25)); label170.setMinimumSize(new Dimension(400, 25)); label170.setPreferredSize(new Dimension(400, 25)); label170.setText("User ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel62.add(label170, gbc); final JPanel panel64 = new JPanel(); panel64.setLayout(new GridBagLayout()); favoritesOperationPane.addTab("Remove", panel64); final JLabel label171 = new JLabel(); label171.setFont(new Font(label171.getFont().getName(), Font.BOLD, label171.getFont().getSize())); label171.setHorizontalAlignment(0); label171.setMaximumSize(new Dimension(600, 50)); label171.setMinimumSize(new Dimension(600, 50)); label171.setPreferredSize(new Dimension(600, 50)); label171.setText("Removes a photo from a user's favorites list."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel64.add(label171, gbc); final JLabel label172 = new JLabel(); label172.setFont(new Font(label172.getFont().getName(), Font.BOLD, label172.getFont().getSize())); label172.setHorizontalAlignment(4); label172.setMaximumSize(new Dimension(400, 25)); label172.setMinimumSize(new Dimension(400, 25)); label172.setPreferredSize(new Dimension(400, 25)); label172.setText("Photo ID : "); label172.setVerticalAlignment(0); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.EAST; panel64.add(label172, gbc); txtFavoritesRmvID = new JTextField(); txtFavoritesRmvID.setMaximumSize(new Dimension(200, 25)); txtFavoritesRmvID.setMinimumSize(new Dimension(200, 25)); txtFavoritesRmvID.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); panel64.add(txtFavoritesRmvID, gbc); favoritesRmvInvoke = new JButton(); favoritesRmvInvoke.setFont(new Font(favoritesRmvInvoke.getFont().getName(), Font.BOLD, favoritesRmvInvoke.getFont().getSize())); favoritesRmvInvoke.setMaximumSize(new Dimension(100, 30)); favoritesRmvInvoke.setMinimumSize(new Dimension(100, 30)); favoritesRmvInvoke.setPreferredSize(new Dimension(100, 30)); favoritesRmvInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel64.add(favoritesRmvInvoke, gbc); final JScrollPane scrollPane44 = new JScrollPane(); scrollPane44.setMaximumSize(new Dimension(550, 225)); scrollPane44.setMinimumSize(new Dimension(550, 225)); scrollPane44.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; panel64.add(scrollPane44, gbc); favoritesRmvOutput = new JTextArea(); favoritesRmvOutput.setBackground(new Color(-3355444)); favoritesRmvOutput.setEditable(false); scrollPane44.setViewportView(favoritesRmvOutput); final JPanel panel65 = new JPanel(); panel65.setLayout(new GridBagLayout()); tabbedPane1.addTab("Geo", panel65); geoOperationPane = new JTabbedPane(); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.fill = GridBagConstraints.BOTH; panel65.add(geoOperationPane, gbc); final JPanel panel66 = new JPanel(); panel66.setLayout(new GridBagLayout()); geoOperationPane.addTab("GetLocation ", panel66); final JLabel label173 = new JLabel(); label173.setFont(new Font(label173.getFont().getName(), Font.BOLD, label173.getFont().getSize())); label173.setHorizontalAlignment(0); label173.setMaximumSize(new Dimension(600, 50)); label173.setMinimumSize(new Dimension(600, 50)); label173.setPreferredSize(new Dimension(600, 50)); label173.setText("Get the geo data (latitude and longitude and the accuracy level) for a photo."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel66.add(label173, gbc); final JLabel label174 = new JLabel(); label174.setFont(new Font(label174.getFont().getName(), Font.BOLD, label174.getFont().getSize())); label174.setHorizontalAlignment(4); label174.setMaximumSize(new Dimension(400, 25)); label174.setMinimumSize(new Dimension(400, 25)); label174.setPreferredSize(new Dimension(400, 25)); label174.setText("Photo ID : "); label174.setVerticalAlignment(0); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.EAST; panel66.add(label174, gbc); txtGeoGetLocID = new JTextField(); txtGeoGetLocID.setMaximumSize(new Dimension(200, 25)); txtGeoGetLocID.setMinimumSize(new Dimension(200, 25)); txtGeoGetLocID.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); panel66.add(txtGeoGetLocID, gbc); geoGetLocInvoke = new JButton(); geoGetLocInvoke.setFont( new Font(geoGetLocInvoke.getFont().getName(), Font.BOLD, geoGetLocInvoke.getFont().getSize())); geoGetLocInvoke.setMaximumSize(new Dimension(100, 30)); geoGetLocInvoke.setMinimumSize(new Dimension(100, 30)); geoGetLocInvoke.setPreferredSize(new Dimension(100, 30)); geoGetLocInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel66.add(geoGetLocInvoke, gbc); final JScrollPane scrollPane45 = new JScrollPane(); scrollPane45.setMaximumSize(new Dimension(550, 225)); scrollPane45.setMinimumSize(new Dimension(550, 225)); scrollPane45.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; panel66.add(scrollPane45, gbc); geoGetLocOutput = new JTextArea(); geoGetLocOutput.setBackground(new Color(-3355444)); geoGetLocOutput.setEditable(false); scrollPane45.setViewportView(geoGetLocOutput); final JPanel panel67 = new JPanel(); panel67.setLayout(new GridBagLayout()); geoOperationPane.addTab("GetPerms", panel67); final JLabel label175 = new JLabel(); label175.setFont(new Font(label175.getFont().getName(), Font.BOLD, label175.getFont().getSize())); label175.setHorizontalAlignment(0); label175.setMaximumSize(new Dimension(600, 50)); label175.setMinimumSize(new Dimension(600, 50)); label175.setPreferredSize(new Dimension(600, 50)); label175.setText("Get permissions for who may view geo data for a photo."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel67.add(label175, gbc); final JLabel label176 = new JLabel(); label176.setFont(new Font(label176.getFont().getName(), Font.BOLD, label176.getFont().getSize())); label176.setHorizontalAlignment(4); label176.setMaximumSize(new Dimension(400, 25)); label176.setMinimumSize(new Dimension(400, 25)); label176.setPreferredSize(new Dimension(400, 25)); label176.setText("Photo ID : "); label176.setVerticalAlignment(0); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.EAST; panel67.add(label176, gbc); txtGeoGetPermsID = new JTextField(); txtGeoGetPermsID.setMaximumSize(new Dimension(200, 25)); txtGeoGetPermsID.setMinimumSize(new Dimension(200, 25)); txtGeoGetPermsID.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); panel67.add(txtGeoGetPermsID, gbc); geoGetPermsInvoke = new JButton(); geoGetPermsInvoke.setFont( new Font(geoGetPermsInvoke.getFont().getName(), Font.BOLD, geoGetPermsInvoke.getFont().getSize())); geoGetPermsInvoke.setMaximumSize(new Dimension(100, 30)); geoGetPermsInvoke.setMinimumSize(new Dimension(100, 30)); geoGetPermsInvoke.setPreferredSize(new Dimension(100, 30)); geoGetPermsInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel67.add(geoGetPermsInvoke, gbc); final JScrollPane scrollPane46 = new JScrollPane(); scrollPane46.setMaximumSize(new Dimension(550, 225)); scrollPane46.setMinimumSize(new Dimension(550, 225)); scrollPane46.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; panel67.add(scrollPane46, gbc); geoGetPermsOutput = new JTextArea(); geoGetPermsOutput.setBackground(new Color(-3355444)); geoGetPermsOutput.setEditable(false); scrollPane46.setViewportView(geoGetPermsOutput); final JPanel panel68 = new JPanel(); panel68.setLayout(new GridBagLayout()); geoOperationPane.addTab("RemoveLocation", panel68); final JLabel label177 = new JLabel(); label177.setFont(new Font(label177.getFont().getName(), Font.BOLD, label177.getFont().getSize())); label177.setHorizontalAlignment(0); label177.setMaximumSize(new Dimension(600, 50)); label177.setMinimumSize(new Dimension(600, 50)); label177.setPreferredSize(new Dimension(600, 50)); label177.setText("Removes the geo data associated with a photo."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel68.add(label177, gbc); final JLabel label178 = new JLabel(); label178.setFont(new Font(label178.getFont().getName(), Font.BOLD, label178.getFont().getSize())); label178.setHorizontalAlignment(4); label178.setMaximumSize(new Dimension(400, 25)); label178.setMinimumSize(new Dimension(400, 25)); label178.setPreferredSize(new Dimension(400, 25)); label178.setText("Photo ID : "); label178.setVerticalAlignment(0); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.EAST; panel68.add(label178, gbc); txtGeoRmvLocID = new JTextField(); txtGeoRmvLocID.setMaximumSize(new Dimension(200, 25)); txtGeoRmvLocID.setMinimumSize(new Dimension(200, 25)); txtGeoRmvLocID.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); panel68.add(txtGeoRmvLocID, gbc); geoRmvLocInvoke = new JButton(); geoRmvLocInvoke.setFont( new Font(geoRmvLocInvoke.getFont().getName(), Font.BOLD, geoRmvLocInvoke.getFont().getSize())); geoRmvLocInvoke.setMaximumSize(new Dimension(100, 30)); geoRmvLocInvoke.setMinimumSize(new Dimension(100, 30)); geoRmvLocInvoke.setPreferredSize(new Dimension(100, 30)); geoRmvLocInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel68.add(geoRmvLocInvoke, gbc); final JScrollPane scrollPane47 = new JScrollPane(); scrollPane47.setMaximumSize(new Dimension(550, 225)); scrollPane47.setMinimumSize(new Dimension(550, 225)); scrollPane47.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; panel68.add(scrollPane47, gbc); geoRmvLocOutput = new JTextArea(); geoRmvLocOutput.setBackground(new Color(-3355444)); geoRmvLocOutput.setEditable(false); scrollPane47.setViewportView(geoRmvLocOutput); final JPanel panel69 = new JPanel(); panel69.setLayout(new GridBagLayout()); geoOperationPane.addTab("SetLocation", panel69); final JLabel label179 = new JLabel(); label179.setFont(new Font(label179.getFont().getName(), Font.BOLD, label179.getFont().getSize())); label179.setHorizontalAlignment(0); label179.setMaximumSize(new Dimension(600, 50)); label179.setMinimumSize(new Dimension(600, 50)); label179.setPreferredSize(new Dimension(600, 50)); label179.setText( "Sets the geo data (latitude and longitude and, optionally, the accuracy level) 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); panel69.add(label179, gbc); final JLabel label180 = new JLabel(); label180.setFont(new Font(label180.getFont().getName(), Font.BOLD, label180.getFont().getSize())); label180.setHorizontalAlignment(4); label180.setMaximumSize(new Dimension(400, 25)); label180.setMinimumSize(new Dimension(400, 25)); label180.setPreferredSize(new Dimension(400, 25)); label180.setText("Latitude : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel69.add(label180, gbc); final JLabel label181 = new JLabel(); label181.setHorizontalAlignment(4); label181.setMaximumSize(new Dimension(400, 25)); label181.setMinimumSize(new Dimension(400, 25)); label181.setPreferredSize(new Dimension(400, 25)); label181.setText("Accuracy : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.anchor = GridBagConstraints.WEST; panel69.add(label181, gbc); cmbGeoSetLocAccuracy = new JComboBox(); cmbGeoSetLocAccuracy.setMaximumSize(new Dimension(200, 25)); cmbGeoSetLocAccuracy.setMinimumSize(new Dimension(200, 25)); cmbGeoSetLocAccuracy.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); panel69.add(cmbGeoSetLocAccuracy, gbc); geoSetLocInvoke = new JButton(); geoSetLocInvoke.setFont( new Font(geoSetLocInvoke.getFont().getName(), Font.BOLD, geoSetLocInvoke.getFont().getSize())); geoSetLocInvoke.setMaximumSize(new Dimension(100, 30)); geoSetLocInvoke.setMinimumSize(new Dimension(100, 30)); geoSetLocInvoke.setPreferredSize(new Dimension(100, 30)); geoSetLocInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 2; gbc.insets = new Insets(25, 0, 25, 0); panel69.add(geoSetLocInvoke, gbc); final JScrollPane scrollPane48 = new JScrollPane(); scrollPane48.setMaximumSize(new Dimension(550, 225)); scrollPane48.setMinimumSize(new Dimension(550, 225)); scrollPane48.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 6; gbc.gridwidth = 2; gbc.weighty = 1.0; panel69.add(scrollPane48, gbc); geoSetLocOutput = new JTextArea(); geoSetLocOutput.setBackground(new Color(-3355444)); scrollPane48.setViewportView(geoSetLocOutput); cmbGeoSetLocLatitude = new JComboBox(); cmbGeoSetLocLatitude.setMaximumSize(new Dimension(200, 25)); cmbGeoSetLocLatitude.setMinimumSize(new Dimension(200, 25)); final DefaultComboBoxModel defaultComboBoxModel14 = new DefaultComboBoxModel(); cmbGeoSetLocLatitude.setModel(defaultComboBoxModel14); cmbGeoSetLocLatitude.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); panel69.add(cmbGeoSetLocLatitude, gbc); final JLabel label182 = new JLabel(); label182.setFont(new Font(label182.getFont().getName(), Font.BOLD, label182.getFont().getSize())); label182.setHorizontalAlignment(4); label182.setMaximumSize(new Dimension(400, 25)); label182.setMinimumSize(new Dimension(400, 25)); label182.setPreferredSize(new Dimension(400, 25)); label182.setText("Longitude : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel69.add(label182, gbc); cmbGeoSetLocLongitude = new JComboBox(); cmbGeoSetLocLongitude.setMaximumSize(new Dimension(200, 25)); cmbGeoSetLocLongitude.setMinimumSize(new Dimension(200, 25)); final DefaultComboBoxModel defaultComboBoxModel15 = new DefaultComboBoxModel(); cmbGeoSetLocLongitude.setModel(defaultComboBoxModel15); cmbGeoSetLocLongitude.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); panel69.add(cmbGeoSetLocLongitude, gbc); final JLabel label183 = new JLabel(); label183.setFont(new Font(label183.getFont().getName(), Font.BOLD, label183.getFont().getSize())); label183.setHorizontalAlignment(4); label183.setMaximumSize(new Dimension(400, 25)); label183.setMinimumSize(new Dimension(400, 25)); label183.setPreferredSize(new Dimension(400, 25)); label183.setText("Photo ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel69.add(label183, gbc); txtGeoSetLocID = new JTextField(); txtGeoSetLocID.setMaximumSize(new Dimension(200, 25)); txtGeoSetLocID.setMinimumSize(new Dimension(200, 25)); txtGeoSetLocID.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); panel69.add(txtGeoSetLocID, gbc); final JPanel panel70 = new JPanel(); panel70.setLayout(new GridBagLayout()); geoOperationPane.addTab("SetPerms", panel70); final JLabel label184 = new JLabel(); label184.setFont(new Font(label184.getFont().getName(), Font.BOLD, label184.getFont().getSize())); label184.setHorizontalAlignment(0); label184.setMaximumSize(new Dimension(600, 50)); label184.setMinimumSize(new Dimension(600, 50)); label184.setPreferredSize(new Dimension(600, 50)); label184.setText("Set the permission for who may view the geo data associated with 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); panel70.add(label184, gbc); final JLabel label185 = new JLabel(); label185.setFont(new Font(label185.getFont().getName(), Font.BOLD, label185.getFont().getSize())); label185.setHorizontalAlignment(4); label185.setMaximumSize(new Dimension(400, 25)); label185.setMinimumSize(new Dimension(400, 25)); label185.setPreferredSize(new Dimension(400, 25)); label185.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); panel70.add(label185, gbc); chkGeoSetPermsPublic = new JCheckBox(); chkGeoSetPermsPublic.setFont(new Font(chkGeoSetPermsPublic.getFont().getName(), Font.BOLD, chkGeoSetPermsPublic.getFont().getSize())); chkGeoSetPermsPublic.setHorizontalAlignment(4); chkGeoSetPermsPublic.setMaximumSize(new Dimension(300, 25)); chkGeoSetPermsPublic.setMinimumSize(new Dimension(300, 25)); chkGeoSetPermsPublic.setPreferredSize(new Dimension(300, 25)); chkGeoSetPermsPublic.setText("Is Public "); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel70.add(chkGeoSetPermsPublic, gbc); chkGeoSetPermsFriend = new JCheckBox(); chkGeoSetPermsFriend.setFont(new Font(chkGeoSetPermsFriend.getFont().getName(), Font.BOLD, chkGeoSetPermsFriend.getFont().getSize())); chkGeoSetPermsFriend.setMaximumSize(new Dimension(200, 25)); chkGeoSetPermsFriend.setMinimumSize(new Dimension(200, 25)); chkGeoSetPermsFriend.setPreferredSize(new Dimension(200, 25)); chkGeoSetPermsFriend.setText("Is Friend"); 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); panel70.add(chkGeoSetPermsFriend, gbc); final JScrollPane scrollPane49 = new JScrollPane(); scrollPane49.setMaximumSize(new Dimension(550, 225)); scrollPane49.setMinimumSize(new Dimension(550, 225)); scrollPane49.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 4; gbc.weighty = 1.0; panel70.add(scrollPane49, gbc); geoSetPermsOutput = new JTextArea(); geoSetPermsOutput.setBackground(new Color(-3355444)); scrollPane49.setViewportView(geoSetPermsOutput); geoSetPermsInvoke = new JButton(); geoSetPermsInvoke.setFont( new Font(geoSetPermsInvoke.getFont().getName(), Font.BOLD, geoSetPermsInvoke.getFont().getSize())); geoSetPermsInvoke.setLabel("Invoke"); geoSetPermsInvoke.setMaximumSize(new Dimension(100, 30)); geoSetPermsInvoke.setMinimumSize(new Dimension(100, 30)); geoSetPermsInvoke.setPreferredSize(new Dimension(100, 30)); geoSetPermsInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 4; gbc.insets = new Insets(10, 0, 0, 0); panel70.add(geoSetPermsInvoke, gbc); chkGeoSetPermsContact = new JCheckBox(); chkGeoSetPermsContact.setFont(new Font(chkGeoSetPermsContact.getFont().getName(), Font.BOLD, chkGeoSetPermsContact.getFont().getSize())); chkGeoSetPermsContact.setHorizontalAlignment(4); chkGeoSetPermsContact.setLabel("Is Contact"); chkGeoSetPermsContact.setMaximumSize(new Dimension(300, 25)); chkGeoSetPermsContact.setMinimumSize(new Dimension(300, 25)); chkGeoSetPermsContact.setPreferredSize(new Dimension(300, 25)); chkGeoSetPermsContact.setText("Is Contact"); gbc = new GridBagConstraints(); gbc.gridx = 1; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 10, 0); panel70.add(chkGeoSetPermsContact, gbc); txtGeoSetPermsID = new JTextField(); txtGeoSetPermsID.setMaximumSize(new Dimension(200, 25)); txtGeoSetPermsID.setMinimumSize(new Dimension(200, 25)); txtGeoSetPermsID.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, 10, 0); panel70.add(txtGeoSetPermsID, gbc); chkGeoSetPermsFamily = new JCheckBox(); chkGeoSetPermsFamily.setFont(new Font(chkGeoSetPermsFamily.getFont().getName(), Font.BOLD, chkGeoSetPermsFamily.getFont().getSize())); chkGeoSetPermsFamily.setMaximumSize(new Dimension(200, 25)); chkGeoSetPermsFamily.setMinimumSize(new Dimension(200, 25)); chkGeoSetPermsFamily.setPreferredSize(new Dimension(200, 25)); chkGeoSetPermsFamily.setText("Is Family"); gbc = new GridBagConstraints(); gbc.gridx = 2; gbc.gridy = 3; gbc.weightx = 1.0; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 100, 10, 0); panel70.add(chkGeoSetPermsFamily, gbc); final JPanel panel71 = new JPanel(); panel71.setLayout(new GridBagLayout()); tabbedPane1.addTab("Groups", panel71); groupsOperationPane = new JTabbedPane(); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.fill = GridBagConstraints.BOTH; panel71.add(groupsOperationPane, gbc); final JPanel panel72 = new JPanel(); panel72.setLayout(new GridBagLayout()); groupsOperationPane.addTab("Browse", panel72); final JLabel label186 = new JLabel(); label186.setFont(new Font(label186.getFont().getName(), Font.BOLD, label186.getFont().getSize())); label186.setHorizontalAlignment(0); label186.setMaximumSize(new Dimension(600, 50)); label186.setMinimumSize(new Dimension(600, 50)); label186.setPreferredSize(new Dimension(600, 50)); label186.setText("Browse the group category tree, finding groups and sub-categories."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel72.add(label186, gbc); final JLabel label187 = new JLabel(); label187.setFont(new Font(label187.getFont().getName(), Font.BOLD, label187.getFont().getSize())); label187.setHorizontalAlignment(4); label187.setMaximumSize(new Dimension(400, 25)); label187.setMinimumSize(new Dimension(400, 25)); label187.setPreferredSize(new Dimension(400, 25)); label187.setText("Category ID : "); label187.setVerticalAlignment(0); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.EAST; panel72.add(label187, gbc); txtGroupsBrowseID = new JTextField(); txtGroupsBrowseID.setMaximumSize(new Dimension(200, 25)); txtGroupsBrowseID.setMinimumSize(new Dimension(200, 25)); txtGroupsBrowseID.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); panel72.add(txtGroupsBrowseID, gbc); groupsBrowseInvoke = new JButton(); groupsBrowseInvoke.setFont(new Font(groupsBrowseInvoke.getFont().getName(), Font.BOLD, groupsBrowseInvoke.getFont().getSize())); groupsBrowseInvoke.setMaximumSize(new Dimension(100, 30)); groupsBrowseInvoke.setMinimumSize(new Dimension(100, 30)); groupsBrowseInvoke.setPreferredSize(new Dimension(100, 30)); groupsBrowseInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel72.add(groupsBrowseInvoke, gbc); final JScrollPane scrollPane50 = new JScrollPane(); scrollPane50.setMaximumSize(new Dimension(550, 225)); scrollPane50.setMinimumSize(new Dimension(550, 225)); scrollPane50.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; panel72.add(scrollPane50, gbc); groupsBrowseOutput = new JTextArea(); groupsBrowseOutput.setBackground(new Color(-3355444)); groupsBrowseOutput.setEditable(false); scrollPane50.setViewportView(groupsBrowseOutput); final JPanel panel73 = new JPanel(); panel73.setLayout(new GridBagLayout()); groupsOperationPane.addTab("GetInfo", panel73); final JLabel label188 = new JLabel(); label188.setFont(new Font(label188.getFont().getName(), Font.BOLD, label188.getFont().getSize())); label188.setHorizontalAlignment(0); label188.setMaximumSize(new Dimension(600, 50)); label188.setMinimumSize(new Dimension(600, 50)); label188.setPreferredSize(new Dimension(600, 50)); label188.setText("Get information about a group."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel73.add(label188, gbc); final JLabel label189 = new JLabel(); label189.setFont(new Font(label189.getFont().getName(), Font.BOLD, label189.getFont().getSize())); label189.setHorizontalAlignment(4); label189.setMaximumSize(new Dimension(400, 25)); label189.setMinimumSize(new Dimension(400, 25)); label189.setPreferredSize(new Dimension(400, 25)); label189.setText("Group ID : "); label189.setVerticalAlignment(0); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.EAST; panel73.add(label189, gbc); txtGroupsGetInfoID = new JTextField(); txtGroupsGetInfoID.setMaximumSize(new Dimension(200, 25)); txtGroupsGetInfoID.setMinimumSize(new Dimension(200, 25)); txtGroupsGetInfoID.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); panel73.add(txtGroupsGetInfoID, gbc); groupsGetInfoInvoke = new JButton(); groupsGetInfoInvoke.setFont(new Font(groupsGetInfoInvoke.getFont().getName(), Font.BOLD, groupsGetInfoInvoke.getFont().getSize())); groupsGetInfoInvoke.setMaximumSize(new Dimension(100, 30)); groupsGetInfoInvoke.setMinimumSize(new Dimension(100, 30)); groupsGetInfoInvoke.setPreferredSize(new Dimension(100, 30)); groupsGetInfoInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel73.add(groupsGetInfoInvoke, gbc); final JScrollPane scrollPane51 = new JScrollPane(); scrollPane51.setMaximumSize(new Dimension(550, 225)); scrollPane51.setMinimumSize(new Dimension(550, 225)); scrollPane51.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; panel73.add(scrollPane51, gbc); groupsGetInfoOutput = new JTextArea(); groupsGetInfoOutput.setBackground(new Color(-3355444)); groupsGetInfoOutput.setEditable(false); scrollPane51.setViewportView(groupsGetInfoOutput); final JPanel panel74 = new JPanel(); panel74.setLayout(new GridBagLayout()); groupsOperationPane.addTab("Search", panel74); final JLabel label190 = new JLabel(); label190.setFont(new Font(label190.getFont().getName(), Font.BOLD, label190.getFont().getSize())); label190.setHorizontalAlignment(0); label190.setMaximumSize(new Dimension(800, 50)); label190.setMinimumSize(new Dimension(800, 50)); label190.setPreferredSize(new Dimension(800, 50)); label190.setText( "Search for groups. 18+ groups will only be returned for authenticated calls where the authenticated user is over 18."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel74.add(label190, gbc); final JLabel label191 = new JLabel(); label191.setFont(new Font(label191.getFont().getName(), label191.getFont().getStyle(), label191.getFont().getSize())); label191.setHorizontalAlignment(4); label191.setMaximumSize(new Dimension(400, 25)); label191.setMinimumSize(new Dimension(400, 25)); label191.setPreferredSize(new Dimension(400, 25)); label191.setText("Text : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel74.add(label191, gbc); final JLabel label192 = new JLabel(); label192.setHorizontalAlignment(4); label192.setMaximumSize(new Dimension(400, 25)); label192.setMinimumSize(new Dimension(400, 25)); label192.setPreferredSize(new Dimension(400, 25)); label192.setText("Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel74.add(label192, gbc); txtGroupsSearchPage = new JTextField(); txtGroupsSearchPage.setMaximumSize(new Dimension(200, 25)); txtGroupsSearchPage.setMinimumSize(new Dimension(200, 25)); txtGroupsSearchPage.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); panel74.add(txtGroupsSearchPage, gbc); final JLabel label193 = new JLabel(); label193.setHorizontalAlignment(4); label193.setMaximumSize(new Dimension(400, 25)); label193.setMinimumSize(new Dimension(400, 25)); label193.setPreferredSize(new Dimension(400, 25)); label193.setText("Per Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.anchor = GridBagConstraints.WEST; panel74.add(label193, gbc); cmbGroupsSearchPerPage = new JComboBox(); cmbGroupsSearchPerPage.setMaximumSize(new Dimension(200, 25)); cmbGroupsSearchPerPage.setMinimumSize(new Dimension(200, 25)); cmbGroupsSearchPerPage.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); panel74.add(cmbGroupsSearchPerPage, gbc); groupsSearchInvoke = new JButton(); groupsSearchInvoke.setFont(new Font(groupsSearchInvoke.getFont().getName(), Font.BOLD, groupsSearchInvoke.getFont().getSize())); groupsSearchInvoke.setMaximumSize(new Dimension(100, 30)); groupsSearchInvoke.setMinimumSize(new Dimension(100, 30)); groupsSearchInvoke.setPreferredSize(new Dimension(100, 30)); groupsSearchInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel74.add(groupsSearchInvoke, gbc); final JScrollPane scrollPane52 = new JScrollPane(); scrollPane52.setMaximumSize(new Dimension(550, 225)); scrollPane52.setMinimumSize(new Dimension(550, 225)); scrollPane52.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 5; gbc.gridwidth = 2; gbc.weighty = 1.0; panel74.add(scrollPane52, gbc); groupsSearchOutput = new JTextArea(); groupsSearchOutput.setBackground(new Color(-3355444)); scrollPane52.setViewportView(groupsSearchOutput); txtGroupsSearchText = new JTextField(); txtGroupsSearchText.setMaximumSize(new Dimension(200, 25)); txtGroupsSearchText.setMinimumSize(new Dimension(200, 25)); txtGroupsSearchText.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); panel74.add(txtGroupsSearchText, gbc); final JPanel panel75 = new JPanel(); panel75.setLayout(new GridBagLayout()); tabbedPane1.addTab("GroupsPools", panel75); tabbedPane2 = new JTabbedPane(); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.weightx = 1.0; gbc.weighty = 1.0; gbc.fill = GridBagConstraints.BOTH; panel75.add(tabbedPane2, gbc); final JPanel panel76 = new JPanel(); panel76.setLayout(new GridBagLayout()); tabbedPane2.addTab("Add", panel76); final JLabel label194 = new JLabel(); label194.setFont(new Font(label194.getFont().getName(), Font.BOLD, label194.getFont().getSize())); label194.setHorizontalAlignment(0); label194.setMaximumSize(new Dimension(600, 50)); label194.setMinimumSize(new Dimension(600, 50)); label194.setPreferredSize(new Dimension(600, 50)); label194.setText("Add a photo to a group's pool."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel76.add(label194, gbc); final JLabel label195 = new JLabel(); label195.setFont(new Font(label195.getFont().getName(), Font.BOLD, label195.getFont().getSize())); label195.setHorizontalAlignment(4); label195.setMaximumSize(new Dimension(400, 25)); label195.setMinimumSize(new Dimension(400, 25)); label195.setPreferredSize(new Dimension(400, 25)); label195.setText("Photo ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel76.add(label195, gbc); final JLabel label196 = new JLabel(); label196.setFont(new Font(label196.getFont().getName(), Font.BOLD, label196.getFont().getSize())); label196.setHorizontalAlignment(4); label196.setMaximumSize(new Dimension(400, 25)); label196.setMinimumSize(new Dimension(400, 25)); label196.setPreferredSize(new Dimension(400, 25)); label196.setText("Group ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel76.add(label196, gbc); txtGrpPoolsAddGroupID = new JTextField(); txtGrpPoolsAddGroupID.setMaximumSize(new Dimension(200, 25)); txtGrpPoolsAddGroupID.setMinimumSize(new Dimension(200, 25)); txtGrpPoolsAddGroupID.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); panel76.add(txtGrpPoolsAddGroupID, gbc); grpPoolsAddInvoke = new JButton(); grpPoolsAddInvoke.setFont( new Font(grpPoolsAddInvoke.getFont().getName(), Font.BOLD, grpPoolsAddInvoke.getFont().getSize())); grpPoolsAddInvoke.setMaximumSize(new Dimension(100, 30)); grpPoolsAddInvoke.setMinimumSize(new Dimension(100, 30)); grpPoolsAddInvoke.setPreferredSize(new Dimension(100, 30)); grpPoolsAddInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel76.add(grpPoolsAddInvoke, gbc); final JScrollPane scrollPane53 = new JScrollPane(); scrollPane53.setMaximumSize(new Dimension(550, 225)); scrollPane53.setMinimumSize(new Dimension(550, 225)); scrollPane53.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.weighty = 1.0; panel76.add(scrollPane53, gbc); grpPoolsAddOutput = new JTextArea(); grpPoolsAddOutput.setBackground(new Color(-3355444)); scrollPane53.setViewportView(grpPoolsAddOutput); txtGrpPoolsAddPhotoID = new JTextField(); txtGrpPoolsAddPhotoID.setMaximumSize(new Dimension(200, 25)); txtGrpPoolsAddPhotoID.setMinimumSize(new Dimension(200, 25)); txtGrpPoolsAddPhotoID.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); panel76.add(txtGrpPoolsAddPhotoID, gbc); final JPanel panel77 = new JPanel(); panel77.setLayout(new GridBagLayout()); tabbedPane2.addTab("GetContext", panel77); final JLabel label197 = new JLabel(); label197.setFont(new Font(label197.getFont().getName(), Font.BOLD, label197.getFont().getSize())); label197.setHorizontalAlignment(0); label197.setMaximumSize(new Dimension(600, 50)); label197.setMinimumSize(new Dimension(600, 50)); label197.setPreferredSize(new Dimension(600, 50)); label197.setText("Returns next and previous photos for a photo in a group pool."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel77.add(label197, gbc); final JLabel label198 = new JLabel(); label198.setFont(new Font(label198.getFont().getName(), Font.BOLD, label198.getFont().getSize())); label198.setHorizontalAlignment(4); label198.setMaximumSize(new Dimension(400, 25)); label198.setMinimumSize(new Dimension(400, 25)); label198.setPreferredSize(new Dimension(400, 25)); label198.setText("Photo ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel77.add(label198, gbc); final JLabel label199 = new JLabel(); label199.setFont(new Font(label199.getFont().getName(), Font.BOLD, label199.getFont().getSize())); label199.setHorizontalAlignment(4); label199.setMaximumSize(new Dimension(400, 25)); label199.setMinimumSize(new Dimension(400, 25)); label199.setPreferredSize(new Dimension(400, 25)); label199.setText("Group ID : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel77.add(label199, gbc); txtGrpPoolsContextGrpID = new JTextField(); txtGrpPoolsContextGrpID.setMaximumSize(new Dimension(200, 25)); txtGrpPoolsContextGrpID.setMinimumSize(new Dimension(200, 25)); txtGrpPoolsContextGrpID.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); panel77.add(txtGrpPoolsContextGrpID, gbc); grpPoolsContextInvoke = new JButton(); grpPoolsContextInvoke.setFont(new Font(grpPoolsContextInvoke.getFont().getName(), Font.BOLD, grpPoolsContextInvoke.getFont().getSize())); grpPoolsContextInvoke.setMaximumSize(new Dimension(100, 30)); grpPoolsContextInvoke.setMinimumSize(new Dimension(100, 30)); grpPoolsContextInvoke.setPreferredSize(new Dimension(100, 30)); grpPoolsContextInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel77.add(grpPoolsContextInvoke, gbc); final JScrollPane scrollPane54 = new JScrollPane(); scrollPane54.setMaximumSize(new Dimension(550, 225)); scrollPane54.setMinimumSize(new Dimension(550, 225)); scrollPane54.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.weighty = 1.0; panel77.add(scrollPane54, gbc); grpPoolsContextOutput = new JTextArea(); grpPoolsContextOutput.setBackground(new Color(-3355444)); scrollPane54.setViewportView(grpPoolsContextOutput); txtGrpPoolsContextPhotoID = new JTextField(); txtGrpPoolsContextPhotoID.setMaximumSize(new Dimension(200, 25)); txtGrpPoolsContextPhotoID.setMinimumSize(new Dimension(200, 25)); txtGrpPoolsContextPhotoID.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); panel77.add(txtGrpPoolsContextPhotoID, gbc); final JPanel panel78 = new JPanel(); panel78.setLayout(new GridBagLayout()); tabbedPane2.addTab("GetGroups", panel78); final JLabel label200 = new JLabel(); label200.setFont(new Font(label200.getFont().getName(), Font.BOLD, label200.getFont().getSize())); label200.setHorizontalAlignment(0); label200.setMaximumSize(new Dimension(800, 50)); label200.setMinimumSize(new Dimension(800, 50)); label200.setPreferredSize(new Dimension(800, 50)); label200.setText("Returns a list of groups to which you can add photos."); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 2; gbc.anchor = GridBagConstraints.NORTH; gbc.insets = new Insets(50, 0, 50, 0); panel78.add(label200, gbc); final JLabel label201 = new JLabel(); label201.setHorizontalAlignment(4); label201.setMaximumSize(new Dimension(400, 25)); label201.setMinimumSize(new Dimension(400, 25)); label201.setPreferredSize(new Dimension(400, 25)); label201.setText("Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 1; gbc.anchor = GridBagConstraints.WEST; gbc.insets = new Insets(0, 0, 15, 0); panel78.add(label201, gbc); txtGrpPoolsGrpsPage = new JTextField(); txtGrpPoolsGrpsPage.setMaximumSize(new Dimension(200, 25)); txtGrpPoolsGrpsPage.setMinimumSize(new Dimension(200, 25)); txtGrpPoolsGrpsPage.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); panel78.add(txtGrpPoolsGrpsPage, gbc); final JLabel label202 = new JLabel(); label202.setHorizontalAlignment(4); label202.setMaximumSize(new Dimension(400, 25)); label202.setMinimumSize(new Dimension(400, 25)); label202.setPreferredSize(new Dimension(400, 25)); label202.setText("Per Page : "); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 2; gbc.anchor = GridBagConstraints.WEST; panel78.add(label202, gbc); cmbGrpPoolsGrpsPerPage = new JComboBox(); cmbGrpPoolsGrpsPerPage.setMaximumSize(new Dimension(200, 25)); cmbGrpPoolsGrpsPerPage.setMinimumSize(new Dimension(200, 25)); cmbGrpPoolsGrpsPerPage.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); panel78.add(cmbGrpPoolsGrpsPerPage, gbc); grpPoolsGrpsInvoke = new JButton(); grpPoolsGrpsInvoke.setFont(new Font(grpPoolsGrpsInvoke.getFont().getName(), Font.BOLD, grpPoolsGrpsInvoke.getFont().getSize())); grpPoolsGrpsInvoke.setMaximumSize(new Dimension(100, 30)); grpPoolsGrpsInvoke.setMinimumSize(new Dimension(100, 30)); grpPoolsGrpsInvoke.setPreferredSize(new Dimension(100, 30)); grpPoolsGrpsInvoke.setText("Invoke"); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 3; gbc.gridwidth = 2; gbc.insets = new Insets(50, 0, 50, 0); panel78.add(grpPoolsGrpsInvoke, gbc); final JScrollPane scrollPane55 = new JScrollPane(); scrollPane55.setMaximumSize(new Dimension(550, 225)); scrollPane55.setMinimumSize(new Dimension(550, 225)); scrollPane55.setPreferredSize(new Dimension(550, 225)); gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 4; gbc.gridwidth = 2; gbc.weighty = 1.0; panel78.add(scrollPane55, gbc); grpPoolsGrpsOutput = new JTextArea(); grpPoolsGrpsOutput.setBackground(new Color(-3355444)); scrollPane55.setViewportView(grpPoolsGrpsOutput); findByEmailOutput.setNextFocusableComponent(tabbedPane1); blogsGetListOutput.setNextFocusableComponent(tabbedPane1); }
From source file:MiGA.StatsSelection.java
public StatsSelection(final String[] organisms, final boolean flag) { setTitle("MiGA"); setSize(800, 600);/*w w w . ja v a 2 s. c om*/ setLocationRelativeTo(null); setResizable(false); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Image im = Toolkit.getDefaultToolkit().getImage("ssr.png"); this.setIconImage(im); try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { } countmono = new ArrayList<Integer>(); countdi = new ArrayList<Integer>(); counttri = new ArrayList<Integer>(); counttetra = new ArrayList<Integer>(); countpenta = new ArrayList<Integer>(); counthexa = new ArrayList<Integer>(); countmonore = new ArrayList<Integer>(); countdire = new ArrayList<Integer>(); counttrire = new ArrayList<Integer>(); counttetrare = new ArrayList<Integer>(); countpentare = new ArrayList<Integer>(); counthexare = new ArrayList<Integer>(); Amono = new ArrayList<Integer>(); Tmono = new ArrayList<Integer>(); Gmono = new ArrayList<Integer>(); Cmono = new ArrayList<Integer>(); Adi = new ArrayList<Integer>(); Tdi = new ArrayList<Integer>(); Gdi = new ArrayList<Integer>(); Cdi = new ArrayList<Integer>(); Atri = new ArrayList<Integer>(); Ttri = new ArrayList<Integer>(); Gtri = new ArrayList<Integer>(); Ctri = new ArrayList<Integer>(); Atetra = new ArrayList<Integer>(); Ttetra = new ArrayList<Integer>(); Gtetra = new ArrayList<Integer>(); Ctetra = new ArrayList<Integer>(); Apenta = new ArrayList<Integer>(); Tpenta = new ArrayList<Integer>(); Gpenta = new ArrayList<Integer>(); Cpenta = new ArrayList<Integer>(); Ahexa = new ArrayList<Integer>(); Thexa = new ArrayList<Integer>(); Ghexa = new ArrayList<Integer>(); Chexa = new ArrayList<Integer>(); for (int i = 0; i < organisms.length; i++) { countmono.add(0); countdi.add(0); counttri.add(0); counttetra.add(0); countpenta.add(0); counthexa.add(0); countmonore.add(0); countdire.add(0); counttrire.add(0); counttetrare.add(0); countpentare.add(0); counthexare.add(0); Amono.add(0); Tmono.add(0); Gmono.add(0); Cmono.add(0); Adi.add(0); Tdi.add(0); Gdi.add(0); Cdi.add(0); Atri.add(0); Ttri.add(0); Gtri.add(0); Ctri.add(0); Atetra.add(0); Ttetra.add(0); Gtetra.add(0); Ctetra.add(0); Apenta.add(0); Tpenta.add(0); Gpenta.add(0); Cpenta.add(0); Ahexa.add(0); Thexa.add(0); Ghexa.add(0); Chexa.add(0); } lab = new JLabel( "<html><b><p>To retrieve the sequence you want</p><p>simply copy and paste in the fields below</p><p>the data you were given in your result's file</p></b></html>"); startlab = new JLabel("Start:"); endlab = new JLabel("End:"); titlelab = new JLabel("Chromosome or field:"); startnum = new JTextField(); startnum.setColumns(5); endnum = new JTextField(); endnum.setColumns(5); titlef = new JTextField(); titlef.setColumns(30); flankst = new JLabel("Flanking region before: "); flankst.setEnabled(false); flankst.setVisible(false); flankend = new JLabel("Flanking region after: "); flankend.setEnabled(false); flankend.setVisible(false); flankstn = new JTextField(); flankstn.setColumns(5); flankstn.setEnabled(false); flankstn.setVisible(false); flankendn = new JTextField(); flankendn.setColumns(5); flankendn.setEnabled(false); flankendn.setVisible(false); result = new JTextArea("", 6, 90); result.setText(" "); result.setEditable(false); result.setLineWrap(true); result.setAutoscrolls(true); sbrText = new JScrollPane(result); sbrText.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); flk = new JCheckBox("Flanking Regions"); flk.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (flk.isSelected()) { flankst.setEnabled(true); flankst.setVisible(true); flankend.setEnabled(true); flankend.setVisible(true); flankstn.setEnabled(true); flankstn.setVisible(true); flankendn.setEnabled(true); flankendn.setVisible(true); } if (!flk.isSelected()) { flankst.setEnabled(false); flankst.setVisible(false); flankend.setEnabled(false); flankend.setVisible(false); flankstn.setEnabled(false); flankstn.setVisible(false); flankendn.setEnabled(false); flankendn.setVisible(false); } } }); retrieve = new JButton("Retrieve"); retrieve.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { int start = 0; int end = 0; BufferedReader in = null; String location = ""; String newlocation = ""; String bufferpre = ""; String bufferpost = ""; String pre = ""; String post = ""; String mid = ""; try { String[] locationarray = titlef.getText().split("data/"); location = locationarray[0] + locationarray[1]; newlocation = ""; if (location.contains("local")) { in = new BufferedReader(new FileReader(location + ".txt")); } else if (location.contains("organisms")) { String[] loc = location.split("/"); try { if (CheckForKaryotype(loc[1])) { newlocation = loc[0] + "/" + loc[1] + "/chrom-" + loc[2] + "-slices.txt"; } else { newlocation = loc[0] + "/" + loc[1] + "/slice-" + loc[2] + ".txt"; } } catch (SQLException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } catch (ClassNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } in = new BufferedReader(new FileReader(newlocation)); } } catch (FileNotFoundException ex) { msg.showMessageDialog(paneldown, "Wrong field", "Error", JOptionPane.ERROR_MESSAGE); } int rest = Integer.parseInt(startnum.getText()) % 20000; int lines = Integer.parseInt(startnum.getText()) / 20000; lines++; String buffer1 = ""; for (int c = 0; c < lines; c++) { try { buffer1 = in.readLine(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } try { in.close(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } if (flk.isSelected()) { boolean tfs = false, tfe = false; int fs = 0, fe = 0; try { fs = Integer.parseInt(flankstn.getText()); tfs = true; } catch (NumberFormatException ex) { tfs = false; } try { fe = Integer.parseInt(flankendn.getText()); tfe = true; } catch (NumberFormatException ex) { tfe = false; } if (tfs && tfe) { start = rest - Integer.parseInt(flankstn.getText()); end = rest + Integer.parseInt(endnum.getText()) - Integer.parseInt(startnum.getText()) + Integer.parseInt(flankendn.getText()); try { in = new BufferedReader(new FileReader(newlocation)); } catch (FileNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } if (start < 0 && lines == 1) { start = 0; } else if (start < 0 && lines > 1) { for (int j = 0; j < lines - 1; j++) { try { bufferpre = in.readLine(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } pre = bufferpre.substring(20000 + start); mid = buffer1.substring(0, end); try { in.close(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } int cl = 0; try { cl = countlines(newlocation); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } try { in = new BufferedReader(new FileReader(newlocation)); } catch (FileNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } if (end > 20000 && lines == cl - 1) { if (end - 20000 >= rest) { end = rest; mid = buffer1.substring(start); post = bufferpost; } else { for (int j = 0; j < lines - 1; j++) { try { bufferpost = in.readLine(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } mid = buffer1.substring(start); post = bufferpre.substring(0, end - 20000); try { in.close(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } } else if (end > 20000 && lines < cl - 1) { for (int j = 0; j < lines + 1; j++) { try { bufferpost = in.readLine(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } mid = buffer1.substring(start); post = bufferpost.substring(0, end - 20000); try { in.close(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } if (start >= 0 && (end <= 20000 || end <= rest)) { mid = buffer1.substring(start, end); } } else { if (!tfs) { msg.showMessageDialog(paneldown, "Flanking region start is empty.\nFill in the gap or uncheck the\nflanking regions checkbox", "Error", JOptionPane.ERROR_MESSAGE); } if (!tfe) { msg.showMessageDialog(paneldown, "Flanking region end is empty.\nFill in the gap or uncheck the\nflanking regions checkbox", "Error", JOptionPane.ERROR_MESSAGE); } } // } if (!flk.isSelected()) { start = rest; end = rest + Integer.parseInt(endnum.getText()) - Integer.parseInt(startnum.getText()); try { in = new BufferedReader(new FileReader(newlocation)); } catch (FileNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } if (start < 0 && lines == 1) { start = 0; } else if (start < 0 && lines > 1) { for (int j = 0; j < lines - 1; j++) { try { bufferpre = in.readLine(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } pre = bufferpre.substring(start); mid = buffer1.substring(0, end); try { in.close(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } int cl = 0; try { cl = countlines(newlocation); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } try { in = new BufferedReader(new FileReader(newlocation)); } catch (FileNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } if (end > 20000 && lines == cl - 1) { if (end - 20000 >= rest) { end = rest; mid = buffer1.substring(start); post = bufferpost; } else { for (int j = 0; j < lines - 1; j++) { try { bufferpost = in.readLine(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } mid = buffer1.substring(start); post = bufferpre.substring(0, end - 20000); try { in.close(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } } else if (end > 20000 && lines < cl - 1) { for (int j = 0; j < lines + 1; j++) { try { bufferpost = in.readLine(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } mid = buffer1.substring(start); post = bufferpost.substring(0, end - 20000); try { in.close(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } if (start >= 0 && (end <= 20000 || end <= rest)) { mid = buffer1.substring(start, end); } } result.setText(pre + mid + post); } }); mono = new JCheckBox("Mononucleotide"); di = new JCheckBox("Dinucleotide"); tri = new JCheckBox("Trinucleotide"); tetra = new JCheckBox("Tetranucleotide"); penta = new JCheckBox("Pentanucleotide"); hexa = new JCheckBox("Hexanucleotide"); SSR = new ArrayList<String>(); repeats = new ArrayList<Integer>(); EndOfSsr = new ArrayList<Integer>(); start = new ArrayList<Integer>(); select = new JLabel("Select type: "); minimumssrlen = new JLabel("Minimum SSR length(bp)"); minimumssrlen.setVisible(false); score = new JTextField(); score.setColumns(5); score.setVisible(false); msg = new JOptionPane(); gapmax = new JLabel("Maximum Mismatch length for Imperfect SSRs(bp)"); gapmax.setVisible(false); max = new JTextField(); max.setColumns(5); max.setVisible(false); minlenpregap = new JLabel("Minimum SSR length before given Mismatch length(bp)"); minlenpregap.setVisible(false); minpregap = new JTextField(); minpregap.setColumns(5); minpregap.setVisible(false); gapcomp = new JLabel("Maximum Inter-repeat R for Compound SSRs(bp)"); gapcomp.setVisible(false); maxgapcomp = new JTextField(); maxgapcomp.setColumns(5); maxgapcomp.setVisible(false); box1 = new JCheckBox("Perfect"); box2 = new JCheckBox("Imperfect"); box3 = new JCheckBox("Compound"); com = new JCheckBox("Perfect Compound"); incom = new JCheckBox("Imperfect Compound"); box1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (box2.isSelected() || box3.isSelected()) { if (box1.isSelected()) { std.setEnabled(true); no_st.setEnabled(true); part_st.setEnabled(true); full_st.setEnabled(true); if (!box3.isSelected()) { minimumssrlen.setVisible(true); score.setVisible(true); } } if (!box1.isSelected()) { std.setEnabled(false); no_st.setEnabled(false); part_st.setEnabled(false); full_st.setEnabled(false); if (!box3.isSelected()) { minimumssrlen.setVisible(false); score.setVisible(false); } } } else { if (box1.isSelected()) { std.setEnabled(true); no_st.setEnabled(true); part_st.setEnabled(true); full_st.setEnabled(true); panel2.setVisible(true); minimumssrlen.setVisible(true); score.setVisible(true); } if (!box1.isSelected()) { std.setEnabled(false); no_st.setEnabled(false); part_st.setEnabled(false); full_st.setEnabled(false); panel2.setVisible(false); minimumssrlen.setVisible(false); score.setVisible(false); } } } }); box2.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (box1.isSelected() || box3.isSelected()) { if (box2.isSelected()) { gapmax.setVisible(true); max.setVisible(true); minlenpregap.setVisible(true); minpregap.setVisible(true); } if (!box2.isSelected()) { gapmax.setVisible(false); max.setVisible(false); minlenpregap.setVisible(false); minpregap.setVisible(false); } } else { if (box2.isSelected()) { panel2.setVisible(true); gapmax.setVisible(true); max.setVisible(true); minlenpregap.setVisible(true); minpregap.setVisible(true); } if (!box2.isSelected()) { panel2.setVisible(false); gapmax.setVisible(false); max.setVisible(false); minlenpregap.setVisible(false); minpregap.setVisible(false); } } } }); box3.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (box1.isSelected() || box2.isSelected()) { if (box3.isSelected()) { paneldownleft.setVisible(true); if (!box1.isSelected()) { minimumssrlen.setVisible(true); score.setVisible(true); } gapcomp.setVisible(true); maxgapcomp.setVisible(true); com.setVisible(true); incom.setVisible(true); } if (!box3.isSelected()) { paneldownleft.setVisible(false); gapcomp.setVisible(false); maxgapcomp.setVisible(false); if (!box1.isSelected()) { minimumssrlen.setVisible(false); score.setVisible(false); com.setVisible(false); incom.setVisible(false); } } } else { if (box3.isSelected()) { paneldownleft.setVisible(true); panel2.setVisible(true); minimumssrlen.setVisible(true); score.setVisible(true); gapcomp.setVisible(true); maxgapcomp.setVisible(true); com.setVisible(true); incom.setVisible(true); } if (!box3.isSelected()) { paneldownleft.setVisible(false); panel2.setVisible(false); minimumssrlen.setVisible(false); score.setVisible(false); gapcomp.setVisible(false); maxgapcomp.setVisible(false); com.setVisible(false); incom.setVisible(false); } } } }); /* incom.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (incom.isSelected()) { if (!box2.isSelected()) { gapmax.setVisible(true); max.setVisible(true); minlenpregap.setVisible(true); minpregap.setVisible(true); } } if (!incom.isSelected()) { if (!box2.isSelected()) { gapmax.setVisible(false); max.setVisible(false); minlenpregap.setVisible(false); minpregap.setVisible(false); } } } });*/ std = new JPanel(); no_st = new JRadioButton("Not Standardized"); part_st = new JRadioButton("Partial Standardized"); full_st = new JRadioButton("Full Standardized"); no_st.setSelected(true); no_st.setEnabled(false); part_st.setEnabled(false); full_st.setEnabled(false); standard = new ButtonGroup(); standard.add(no_st); standard.add(part_st); standard.add(full_st); show = new JButton("Run"); show.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); if (!box1.isSelected() && !box2.isSelected() && !box3.isSelected()) { msg.showMessageDialog(paneldown, "Please select a type", "Error", JOptionPane.ERROR_MESSAGE); } for (int i = 0; i < organisms.length; i++) { File f = new File("organisms/" + organisms[i] + "/stats/"); if (f.exists()) { f.delete(); } } calendar = Calendar.getInstance(); now = calendar.getTime(); if (box1.isSelected()) { if (!score.getText().isEmpty()) { boolean isnumber = false; int minlen = 0; try { minlen = Integer.parseInt(score.getText()); isnumber = true; } catch (NumberFormatException ex) { isnumber = false; } if (isnumber) { try { getPerfectSSRs(organisms, minlen, flag); for (int i = 0; i < organisms.length; i++) { map = new HashMap<String, motifStats>(); String location = ""; String location2 = ""; PrintWriter out = null; // 18/11/2013 added starting here String filetype = ""; String filepro = ""; if (flag) { filetype = "organisms"; filepro = "organisms/" + organisms[i] + "/data/"; int ret = getOrganismStatus(organisms[i]); if (ret == -1) indexer = new Indexer(chromosomelist); else indexer = new Indexer(ret); } else { filetype = "local"; filepro = "local/" + organisms[i] + "/data/"; String indexfile = "local/" + organisms[i] + "/index.txt"; indexer = new Indexer(indexfile); } //List<String> files = getFiles(organisms[i], minlen, flag); // 18/11/2013 added ending here PrintWriter stats = null; PrintWriter html = null; PrintWriter motifstats = null; PrintWriter motifhtml = null; DataOutputStream lt = null; if (filetype.contains("organisms")) { File f = new File("organisms/" + organisms[i] + "/stats/"); if (!f.exists()) { f.mkdir(); } stats = new PrintWriter(new FileWriter("organisms/" + organisms[i] + "/stats/" + "summary_statistics" + now.toString().replace(':', '_').replace(' ', '_') + ".txt", true)); motifstats = new PrintWriter(new FileWriter("organisms/" + organisms[i] + "/stats/" + "motif_statistics" + now.toString().replace(':', '_').replace(' ', '_') + ".txt", true)); motifhtml = new PrintWriter(new FileWriter("organisms/" + organisms[i] + "/stats/" + "motif_statistics" + now.toString().replace(':', '_').replace(' ', '_') + ".html", true)); html = new PrintWriter(new FileWriter("organisms/" + organisms[i] + "/stats/" + "summary_statistics" + now.toString().replace(':', '_').replace(' ', '_') + ".html", true)); lt = new DataOutputStream(new BufferedOutputStream( new FileOutputStream("organisms/" + organisms[i] + "/data/" + now.toString().replace(':', '_').replace(' ', '_') + ".perf"))); File fi = new File("organisms/" + organisms[i] + "/results/"); if (!fi.exists()) { fi.mkdir(); } String toopen = "organisms/" + organisms[i] + "/results/allPerfect_" + now.toString().replace(':', '_').replace(' ', '_') + ".txt"; location = toopen; location2 = "organisms/" + organisms[i] + "/stats/" + "motif_statistics" + now.toString().replace(':', '_').replace(' ', '_') + ".txt"; out = new PrintWriter(toopen); out.println("Results for organism: " + organisms[i] + "\t Search Parameters --> Minimum SSR Length (bp): " + minlen); out.println( " SSR repeats start-end length Path(../organism/data/chromosome)"); } else if (filetype.contains("local")) { File f = new File("local/" + organisms[i] + "/stats/"); if (!f.exists()) { f.mkdir(); } stats = new PrintWriter(new FileWriter("local/" + organisms[i] + "/stats/" + "summary_statistics" + now.toString().replace(':', '_').replace(' ', '_') + ".txt", true)); motifstats = new PrintWriter(new FileWriter("local/" + organisms[i] + "/stats/" + "motif_statistics" + now.toString().replace(':', '_').replace(' ', '_') + ".txt", true)); motifhtml = new PrintWriter(new FileWriter("local/" + organisms[i] + "/stats/" + "motif_statistics" + now.toString().replace(':', '_').replace(' ', '_') + ".html", true)); lt = new DataOutputStream(new BufferedOutputStream( new FileOutputStream("local/" + organisms[i] + "/data/" + now.toString().replace(':', '_').replace(' ', '_') + ".perf"))); html = new PrintWriter(new FileWriter("local/" + organisms[i] + "/stats/" + "summary_statistics" + now.toString().replace(':', '_').replace(' ', '_') + ".html", true)); File fi = new File("local/" + organisms[i] + "/results/"); if (!fi.exists()) { fi.mkdir(); } String toopen = "local/" + organisms[i] + "/results/allPerfect_" + now.toString().replace(':', '_').replace(' ', '_') + ".txt"; location = toopen; location2 = "local/" + organisms[i] + "/stats/" + "motif_statistics" + now.toString().replace(':', '_').replace(' ', '_') + ".txt"; out = new PrintWriter(toopen); out.println("Results for project: " + organisms[i] + "\t Search Parameters --> Minimum SSR Length (bp): " + minlen); out.println( " SSR repeats start-end length Path(../organism/data/chromosome)"); out.println(); } if (mono.isSelected()) { // 18/11/2013 added starting here if (flag) { filetype = "organisms"; filepro = "organisms/" + organisms[i] + "/data/"; int ret = getOrganismStatus(organisms[i]); if (ret == -1) indexer = new Indexer(chromosomelist); else indexer = new Indexer(ret); } else { filetype = "local"; filepro = "local/" + organisms[i] + "/data/"; String indexfile = "local/" + organisms[i] + "/index.txt"; indexer = new Indexer(indexfile); } //List<String> files = getFiles(organisms[i], minlen, flag); //for (int j = 0; j < files.size(); j++) { while (indexer.hasNext()) { String files = filepro + indexer.getNextFileName(); DataInputStream in = new DataInputStream( new BufferedInputStream(new FileInputStream( files + "_" + minlen + "_monoPerfect.temp"))); boolean eof = false; while (!eof) { try { String ssr = in.readUTF(); int repeats = in.readInt(); int end = in.readInt(); out.println(cell(ssr, 6) + " " + cell(repeats, 11) + " " + cell(Integer .toString(end - repeats * ssr.length() + 1) + "-" + Integer.toString(end + 1), 20) + " " + cell(repeats * ssr.length(), 6) + " " + files.substring(0, files.lastIndexOf('.'))); // map for motifstats if (!map.containsKey(ssr)) { motifStats m = new motifStats(ssr, repeats); map.put(ssr, m); } else { map.get(ssr).update(repeats); } } catch (EOFException exc) { eof = true; } } in.close(); } } if (di.isSelected()) { //for (int j = 0; j < files.size(); j++) { // 18/11/2013 added starting here if (flag) { filetype = "organisms"; filepro = "organisms/" + organisms[i] + "/data/"; int ret = getOrganismStatus(organisms[i]); if (ret == -1) indexer = new Indexer(chromosomelist); else indexer = new Indexer(ret); } else { filetype = "local"; filepro = "local/" + organisms[i] + "/data/"; String indexfile = "local/" + organisms[i] + "/index.txt"; indexer = new Indexer(indexfile); } //List<String> files = getFiles(organisms[i], minlen, flag); while (indexer.hasNext()) { String files = filepro + indexer.getNextFileName(); DataInputStream in = new DataInputStream(new BufferedInputStream( new FileInputStream(files + "_" + minlen + "_diPerfect.temp"))); boolean eof = false; while (!eof) { try { String ssr = in.readUTF(); int repeats = in.readInt(); int end = in.readInt(); //out.println("SSR: " + ssr + " repeats: " + repeats + " start-end " + (end - repeats * ssr.length()) + "-" + end + " Path(../data/chromosome): " + files.substring(0, files.lastIndexOf('.'))); out.println(cell(ssr, 6) + " " + cell(repeats, 11) + " " + cell(Integer .toString(end - repeats * ssr.length() + 1) + "-" + Integer.toString(end + 1), 20) + " " + cell(repeats * ssr.length(), 6) + " " + files.substring(0, files.lastIndexOf('.'))); if (!map.containsKey(ssr)) { motifStats m = new motifStats(ssr, repeats); map.put(ssr, m); } else { map.get(ssr).update(repeats); } } catch (EOFException exc) { eof = true; } } in.close(); } } if (tri.isSelected()) { // 18/11/2013 added starting here if (flag) { filetype = "organisms"; filepro = "organisms/" + organisms[i] + "/data/"; int ret = getOrganismStatus(organisms[i]); if (ret == -1) indexer = new Indexer(chromosomelist); else indexer = new Indexer(ret); } else { filetype = "local"; filepro = "local/" + organisms[i] + "/data/"; String indexfile = "local/" + organisms[i] + "/index.txt"; indexer = new Indexer(indexfile); } //for (int j = 0; j < files.size(); j++) { while (indexer.hasNext()) { String files = filepro + indexer.getNextFileName(); DataInputStream in = new DataInputStream( new BufferedInputStream(new FileInputStream( files + "_" + minlen + "_triPerfect.temp"))); boolean eof = false; while (!eof) { try { String ssr = in.readUTF(); int repeats = in.readInt(); int end = in.readInt(); //out.println("SSR: " + ssr + " repeats: " + repeats + " start-end " + (end - repeats * ssr.length()) + "-" + end + " Path(../data/chromosome): " + files.substring(0, files.lastIndexOf('.'))); out.println(cell(ssr, 6) + " " + cell(repeats, 11) + " " + cell(Integer .toString(end - repeats * ssr.length() + 1) + "-" + Integer.toString(end + 1), 20) + " " + cell(repeats * ssr.length(), 6) + " " + files.substring(0, files.lastIndexOf('.'))); if (!map.containsKey(ssr)) { motifStats m = new motifStats(ssr, repeats); map.put(ssr, m); } else { map.get(ssr).update(repeats); } } catch (EOFException exc) { eof = true; } } in.close(); } } if (tetra.isSelected()) { // 18/11/2013 added starting here if (flag) { filetype = "organisms"; filepro = "organisms/" + organisms[i] + "/data/"; int ret = getOrganismStatus(organisms[i]); if (ret == -1) indexer = new Indexer(chromosomelist); else indexer = new Indexer(ret); } else { filetype = "local"; filepro = "local/" + organisms[i] + "/data/"; String indexfile = "local/" + organisms[i] + "/index.txt"; indexer = new Indexer(indexfile); } while (indexer.hasNext()) { String files = filepro + indexer.getNextFileName(); DataInputStream in = new DataInputStream( new BufferedInputStream(new FileInputStream( files + "_" + minlen + "_tetraPerfect.temp"))); boolean eof = false; while (!eof) { try { String ssr = in.readUTF(); int repeats = in.readInt(); int end = in.readInt(); // out.println("SSR: " + ssr + " repeats: " + repeats + " start-end " + (end - repeats * ssr.length()) + "-" + end + " Path(../data/chromosome): " + files.substring(0, files.lastIndexOf('.'))); out.println(cell(ssr, 6) + " " + cell(repeats, 11) + " " + cell(Integer .toString(end - repeats * ssr.length() + 1) + "-" + Integer.toString(end + 1), 20) + " " + cell(repeats * ssr.length(), 6) + " " + files.substring(0, files.lastIndexOf('.'))); if (!map.containsKey(ssr)) { motifStats m = new motifStats(ssr, repeats); map.put(ssr, m); } else { map.get(ssr).update(repeats); } } catch (EOFException exc) { eof = true; } } in.close(); } } if (penta.isSelected()) { // 18/11/2013 added starting here if (flag) { filetype = "organisms"; filepro = "organisms/" + organisms[i] + "/data/"; int ret = getOrganismStatus(organisms[i]); if (ret == -1) indexer = new Indexer(chromosomelist); else indexer = new Indexer(ret); } else { filetype = "local"; filepro = "local/" + organisms[i] + "/data/"; String indexfile = "local/" + organisms[i] + "/index.txt"; indexer = new Indexer(indexfile); } while (indexer.hasNext()) { String files = filepro + indexer.getNextFileName(); DataInputStream in = new DataInputStream( new BufferedInputStream(new FileInputStream( files + "_" + minlen + "_pentaPerfect.temp"))); boolean eof = false; while (!eof) { try { String ssr = in.readUTF(); int repeats = in.readInt(); int end = in.readInt(); // out.println("SSR: " + ssr + " repeats: " + repeats + " start-end " + (end - repeats * ssr.length()) + "-" + end + " Path(../data/chromosome): " + files.substring(0, files.lastIndexOf('.'))); out.println(cell(ssr, 6) + " " + cell(repeats, 11) + " " + cell(Integer .toString(end - repeats * ssr.length() + 1) + "-" + Integer.toString(end + 1), 20) + " " + cell(repeats * ssr.length(), 6) + " " + files.substring(0, files.lastIndexOf('.'))); if (!map.containsKey(ssr)) { motifStats m = new motifStats(ssr, repeats); map.put(ssr, m); } else { map.get(ssr).update(repeats); } } catch (EOFException exc) { eof = true; } } in.close(); } } if (hexa.isSelected()) { // 18/11/2013 added starting here if (flag) { filetype = "organisms"; filepro = "organisms/" + organisms[i] + "/data/"; int ret = getOrganismStatus(organisms[i]); if (ret == -1) indexer = new Indexer(chromosomelist); else indexer = new Indexer(ret); } else { filetype = "local"; filepro = "local/" + organisms[i] + "/data/"; String indexfile = "local/" + organisms[i] + "/index.txt"; indexer = new Indexer(indexfile); } while (indexer.hasNext()) { String files = filepro + indexer.getNextFileName(); DataInputStream in = new DataInputStream( new BufferedInputStream(new FileInputStream( files + "_" + minlen + "_hexaPerfect.temp"))); boolean eof = false; while (!eof) { try { String ssr = in.readUTF(); int repeats = in.readInt(); int end = in.readInt(); // out.println("SSR: " + ssr + " repeats: " + repeats + " start-end " + (end - repeats * ssr.length()) + "-" + end + " Path(../data/chromosome): " + files.substring(0, files.lastIndexOf('.'))); out.println(cell(ssr, 6) + " " + cell(repeats, 11) + " " + cell(Integer .toString(end - repeats * ssr.length() + 1) + "-" + Integer.toString(end + 1), 20) + " " + cell(repeats * ssr.length(), 6) + " " + files.substring(0, files.lastIndexOf('.'))); if (!map.containsKey(ssr)) { motifStats m = new motifStats(ssr, repeats); map.put(ssr, m); } else { map.get(ssr).update(repeats); } } catch (EOFException exc) { eof = true; } } in.close(); } } out.close(); Runtime.getRuntime().exec("notepad " + location); DecimalFormat round = new DecimalFormat("#.###"); html.println("<html><h1>******* Perfect SSRs *******</h1>"); html.println("<h4>Results for project: " + organisms[i] + "</h4><h4>Search Parameters --> Minimum SSR Length (bp): " + minlen + "</h4>"); html.println( "<table border=\"1\"><tr><td><b>motif</b></td><td><b>count</b></td><td><b>bp</b></td><td><b>A%</b></td><td><b>T%</b></td><td><b>C%</b></td><td><b>G%</b></td><td><b>Relative Frequency</b></td><td><b>Abundance</b></td><td><b>Relative Abundance</b></td></tr>"); stats.println("******* Perfect SSRs *******"); stats.println("Results for project: " + organisms[i] + "\n Search Parameters --> Minimum SSR Length (bp): " + minlen); stats.println( " ____________________________________________________________________________________________________________ "); stats.println( "| | | | | | | | Relative | | Relative |"); stats.println( "| motif | count | bp | A% | T% | C% | G% | Frequency | Abundance | Abundance |"); stats.println( "|=======|=======|============|=======|=======|=======|=======|===============|===============|===============|"); int totalcount = 0; long bpcount = 0; int Aperc = 0; int Tperc = 0; int Gperc = 0; int Cperc = 0; float relfreq = 0; float abfreq = 0; long seqcount = 0; if (mono.isSelected()) { totalcount += countmono.get(i); bpcount += countmonore.get(i); } if (di.isSelected()) { totalcount += countdi.get(i); bpcount += countdire.get(i) * 2; } if (tri.isSelected()) { totalcount += counttri.get(i); bpcount += counttrire.get(i) * 3; } if (tetra.isSelected()) { totalcount += counttetra.get(i); bpcount += counttetrare.get(i) * 4; } if (penta.isSelected()) { totalcount += countpenta.get(i); bpcount += countpentare.get(i) * 5; } if (hexa.isSelected()) { totalcount += counthexa.get(i); bpcount += counthexare.get(i) * 6; } try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } Connection con = null; try { con = DriverManager.getConnection("jdbc:mysql://localhost:3306", "biouser", "thesis2012"); } catch (SQLException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } Statement st = null; try { st = con.createStatement(); } catch (SQLException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } st.executeUpdate("use lobid"); seqcount = 0; if (filetype.contains("organisms")) { ResultSet rs = st.executeQuery( "SELECT end FROM slices INNER JOIN organism WHERE slices.org_id=organism.org_id AND organism.name='" + organisms[i] + "'"); while (rs.next()) { seqcount += Long.parseLong(rs.getString(1)); } } else if (filetype.contains("local")) { BufferedReader in = new BufferedReader( new FileReader("local/" + organisms[i] + "/index.txt")); int count = countlines("local/" + organisms[i] + "/index.txt"); for (int c = 0; c < count; c++) { String temp = in.readLine(); BufferedReader tmp = new BufferedReader( new FileReader("local/" + organisms[i] + "/" + temp + ".txt")); boolean eof = false; while (!eof) { String s = tmp.readLine(); if (s != null) { seqcount += s.length(); } else { eof = true; } } tmp.close(); } } if (mono.isSelected()) { Aperc += Amono.get(i); Tperc += Tmono.get(i); Gperc += Gmono.get(i); Cperc += Cmono.get(i); //lt.writeInt(countmono);lt.writeInt(countmonore);lt.writeFloat((float)Amono*100/countmonore);lt.writeFloat((float)Tmono*100/countmonore);lt.writeFloat((float)Gmono*100/countmonore);lt.writeFloat((float)Cmono*100/countmonore);lt.writeFloat((float) countmono / totalcount);lt.writeFloat((float) countmonore / seqcount);lt.writeFloat((float) countmonore / bpcount); stats.printf("|mono |" + cell(Integer.toString(countmono.get(i)), 7) + "|" + cell(Integer.toString(1 * countmonore.get(i)), 12) + "|%s|%s|%s|%s|" + cell((float) countmono.get(i) / totalcount, 15) + "|" + cell((float) countmonore.get(i) / seqcount, 15) + "|" + cell((float) countmonore.get(i) / bpcount, 15) + "|\n", cell((float) (Amono.get(i) * 100) / (countmonore.get(i)), 7), cell((float) (Tmono.get(i) * 100) / (countmonore.get(i)), 7), cell((float) (Cmono.get(i) * 100) / (countmonore.get(i)), 7), cell((float) (Gmono.get(i) * 100) / (countmonore.get(i)), 7)); stats.println( "|-------|-------|------------|-------|-------|-------|-------|---------------|---------------|---------------|"); html.println("<tr><td><b>mono</b></td><td>" + countmono.get(i) + "</td><td>" + (1 * countmonore.get(i)) + "</td><td>" + round.format((float) (Amono.get(i) * 100) / (countmonore.get(i))) + "</td><td>" + round.format((float) (Tmono.get(i) * 100) / (countmonore.get(i))) + "</td><td>" + round.format((float) (Cmono.get(i) * 100) / (countmonore.get(i))) + "</td><td>" + round.format((float) (Gmono.get(i) * 100) / (countmonore.get(i))) + "</td><td>" + round.format((float) countmono.get(i) / totalcount) + "</td><td>" + round.format((float) countmonore.get(i) / seqcount) + "</td><td>" + round.format((float) countmonore.get(i) / bpcount) + "</td></tr>"); } if (di.isSelected()) { Aperc += Adi.get(i); Tperc += Tdi.get(i); Gperc += Gdi.get(i); Cperc += Cdi.get(i); //lt.writeInt(countdi);lt.writeInt(countdire*2);lt.writeFloat((float)Adi*100/countdire*2);lt.writeFloat((float)Tdi*100/countdire*2);lt.writeFloat((float)Gdi*100/countdire*2);lt.writeFloat((float)Cdi*100/countdire*2);lt.writeFloat((float) countdi / totalcount);lt.writeFloat((float) countdire*2 / seqcount);lt.writeFloat((float) countdire*2 / bpcount); stats.printf("|di |" + cell(Integer.toString(countdi.get(i)), 7) + "|" + cell(Integer.toString(countdire.get(i) * 2), 12) + "|%s|%s|%s|%s|" + cell((float) countdi.get(i) / totalcount, 15) + "|" + cell((float) countdire.get(i) * 2 / seqcount, 15) + "|" + cell((float) countdire.get(i) * 2 / bpcount, 15) + "|\n", cell((float) (Adi.get(i) * 100) / (countdire.get(i) * 2), 7), cell((float) (Tdi.get(i) * 100) / (countdire.get(i) * 2), 7), cell((float) (Cdi.get(i) * 100) / (countdire.get(i) * 2), 7), cell((float) (Gdi.get(i) * 100) / (countdire.get(i) * 2), 7)); stats.println( "|-------|-------|------------|-------|-------|-------|-------|---------------|---------------|---------------|"); html.println("<tr><td><b>di</b></td><td>" + countdi.get(i) + "</td><td>" + (2 * countdire.get(i)) + "</td><td>" + round.format((float) (Adi.get(i) * 100) / (2 * countdire.get(i))) + "</td><td>" + round.format((float) (Tdi.get(i) * 100) / (2 * countdire.get(i))) + "</td><td>" + round.format((float) (Cdi.get(i) * 100) / (2 * countdire.get(i))) + "</td><td>" + round.format((float) (Gdi.get(i) * 100) / (2 * countdire.get(i))) + "</td><td>" + round.format((float) countdi.get(i) / totalcount) + "</td><td>" + round.format((float) 2 * countdire.get(i) / seqcount) + "</td><td>" + round.format((float) 2 * countdire.get(i) / bpcount) + "</td></tr>"); } if (tri.isSelected()) { Aperc += Atri.get(i); Tperc += Ttri.get(i); Gperc += Gtri.get(i); Cperc += Ctri.get(i); //lt.writeInt(counttri);lt.writeInt(counttrire*3);lt.writeFloat((float)Atri*100/counttrire*3);lt.writeFloat((float)Ttri*100/counttrire*3);lt.writeFloat((float)Gtri*100/counttrire*3);lt.writeFloat((float)Ctri*100/counttrire*3);lt.writeFloat((float) counttri / totalcount);lt.writeFloat((float) counttrire*3 / seqcount);lt.writeFloat((float) counttrire*3 / bpcount); stats.printf("|tri |" + cell(Integer.toString(counttri.get(i)), 7) + "|" + cell(Integer.toString(counttrire.get(i) * 3), 12) + "|%s|%s|%s|%s|" + cell((float) counttri.get(i) / totalcount, 15) + "|" + cell((float) counttrire.get(i) * 3 / seqcount, 15) + "|" + cell((float) counttrire.get(i) * 3 / bpcount, 15) + "|\n", cell((float) (Atri.get(i) * 100) / (counttrire.get(i) * 3), 7), cell((float) (Ttri.get(i) * 100) / (counttrire.get(i) * 3), 7), cell((float) (Ctri.get(i) * 100) / (counttrire.get(i) * 3), 7), cell((float) (Gtri.get(i) * 100) / (counttrire.get(i) * 3), 7)); stats.println( "|-------|-------|------------|-------|-------|-------|-------|---------------|---------------|---------------|"); html.println("<tr><td><b>tri</b></td><td>" + counttri.get(i) + "</td><td>" + (3 * counttrire.get(i)) + "</td><td>" + round.format( (float) (Atri.get(i) * 100) / (3 * counttrire.get(i))) + "</td><td>" + round.format( (float) (Ttri.get(i) * 100) / (3 * counttrire.get(i))) + "</td><td>" + round.format( (float) (Ctri.get(i) * 100) / (3 * counttrire.get(i))) + "</td><td>" + round.format( (float) (Gtri.get(i) * 100) / (3 * counttrire.get(i))) + "</td><td>" + round.format((float) counttri.get(i) / totalcount) + "</td><td>" + round.format((float) 3 * counttrire.get(i) / seqcount) + "</td><td>" + round.format((float) 3 * counttrire.get(i) / bpcount) + "</td></tr>"); } if (tetra.isSelected()) { Aperc += Atetra.get(i); Tperc += Ttetra.get(i); Gperc += Gtetra.get(i); Cperc += Ctetra.get(i); //lt.writeInt(counttetra);lt.writeInt(counttetrare*4);lt.writeFloat((float)Atetra*100/counttetrare*4);lt.writeFloat((float)Ttetra*100/counttetrare*4);lt.writeFloat((float)Gtetra*100/counttetrare*4);lt.writeFloat((float)Ctetra*100/counttetrare*4);lt.writeFloat((float) counttetra / totalcount);lt.writeFloat((float) counttetrare*4 / seqcount);lt.writeFloat((float) counttetrare*4 / bpcount); stats.printf("|tetra |" + cell(Integer.toString(counttetra.get(i)), 7) + "|" + cell(Integer.toString(counttetrare.get(i) * 4), 12) + "|%s|%s|%s|%s|" + cell((float) counttetra.get(i) / totalcount, 15) + "|" + cell((float) counttetrare.get(i) * 4 / seqcount, 15) + "|" + cell((float) counttetrare.get(i) * 4 / bpcount, 15) + "|\n", cell((float) (Atetra.get(i) * 100) / (counttetrare.get(i) * 4), 7), cell((float) (Ttetra.get(i) * 100) / (counttetrare.get(i) * 4), 7), cell((float) (Ctetra.get(i) * 100) / (counttetrare.get(i) * 4), 7), cell((float) (Gtetra.get(i) * 100) / (counttetrare.get(i) * 4), 7)); stats.println( "|-------|-------|------------|-------|-------|-------|-------|---------------|---------------|---------------|"); html.println("<tr><td><b>tetra</b></td><td>" + counttetra.get(i) + "</td><td>" + (4 * counttetrare.get(i)) + "</td><td>" + round.format( (float) (Atetra.get(i) * 100) / (4 * counttetrare.get(i))) + "</td><td>" + round.format( (float) (Ttetra.get(i) * 100) / (4 * counttetrare.get(i))) + "</td><td>" + round.format( (float) (Ctetra.get(i) * 100) / (4 * counttetrare.get(i))) + "</td><td>" + round.format( (float) (Gtetra.get(i) * 100) / (4 * counttetrare.get(i))) + "</td><td>" + round.format((float) counttetra.get(i) / totalcount) + "</td><td>" + round.format((float) 4 * counttetrare.get(i) / seqcount) + "</td><td>" + round.format((float) 4 * counttetrare.get(i) / bpcount) + "</td></tr>"); } if (penta.isSelected()) { Aperc += Apenta.get(i); Tperc += Tpenta.get(i); Gperc += Gpenta.get(i); Cperc += Cpenta.get(i); //lt.writeInt(countpenta);lt.writeInt(countpentare*5);lt.writeFloat((float)Apenta*100/countpentare*5);lt.writeFloat((float)Tpenta*100/countpentare*5);lt.writeFloat((float)Gpenta*100/countpentare*5);lt.writeFloat((float)Cpenta*100/countpentare*5);lt.writeFloat((float) countpenta / totalcount);lt.writeFloat((float) countpentare*5 / seqcount);lt.writeFloat((float) countpentare*5 / bpcount); stats.printf("|penta |" + cell(Integer.toString(countpenta.get(i)), 7) + "|" + cell(Integer.toString(countpentare.get(i) * 5), 12) + "|%s|%s|%s|%s|" + cell((float) countpenta.get(i) / totalcount, 15) + "|" + cell((float) countpentare.get(i) * 5 / seqcount, 15) + "|" + cell((float) countpentare.get(i) * 5 / bpcount, 15) + "|\n", cell((float) (Apenta.get(i) * 100) / (countpentare.get(i) * 5), 7), cell((float) (Tpenta.get(i) * 100) / (countpentare.get(i) * 5), 7), cell((float) (Cpenta.get(i) * 100) / (countpentare.get(i) * 5), 7), cell((float) (Gpenta.get(i) * 100) / (countpentare.get(i) * 5), 7)); stats.println( "|-------|-------|------------|-------|-------|-------|-------|---------------|---------------|---------------|"); html.println("<tr><td><b>penta</b></td><td>" + countpenta.get(i) + "</td><td>" + (5 * countpentare.get(i)) + "</td><td>" + round.format( (float) (Apenta.get(i) * 100) / (5 * countpentare.get(i))) + "</td><td>" + round.format( (float) (Tpenta.get(i) * 100) / (5 * countpentare.get(i))) + "</td><td>" + round.format( (float) (Cpenta.get(i) * 100) / (5 * countpentare.get(i))) + "</td><td>" + round.format( (float) (Gpenta.get(i) * 100) / (5 * countpentare.get(i))) + "</td><td>" + round.format((float) countpenta.get(i) / totalcount) + "</td><td>" + round.format((float) 5 * countpentare.get(i) / seqcount) + "</td><td>" + round.format((float) 5 * countpentare.get(i) / bpcount) + "</td></tr>"); } if (hexa.isSelected()) { Aperc += Ahexa.get(i); Tperc += Thexa.get(i); Gperc += Ghexa.get(i); Cperc += Chexa.get(i); //lt.writeInt(counthexa);lt.writeInt(counthexare*6);lt.writeFloat((float)Ahexa*100/counthexare*6);lt.writeFloat((float)Thexa*100/counthexare*6);lt.writeFloat((float)Ghexa*100/counthexare*6);lt.writeFloat((float)Chexa*100/counthexare*6);lt.writeFloat((float) counthexa / totalcount);lt.writeFloat((float) counthexare*6 / seqcount);lt.writeFloat((float) counthexare*6 / bpcount); stats.printf("|hexa |" + cell(Integer.toString(counthexa.get(i)), 7) + "|" + cell(Integer.toString(counthexare.get(i) * 6), 12) + "|%s|%s|%s|%s|" + cell((float) counthexa.get(i) / totalcount, 15) + "|" + cell((float) counthexare.get(i) * 6 / seqcount, 15) + "|" + cell((float) counthexare.get(i) * 6 / bpcount, 15) + "|\n", cell((float) (Ahexa.get(i) * 100) / (counthexare.get(i) * 6), 7), cell((float) (Thexa.get(i) * 100) / (counthexare.get(i) * 6), 7), cell((float) (Chexa.get(i) * 100) / (counthexare.get(i) * 6), 7), cell((float) (Ghexa.get(i) * 100) / (counthexare.get(i) * 6), 7)); stats.println( "|-------|-------|------------|-------|-------|-------|-------|---------------|---------------|---------------|"); html.println("<tr><td><b>hexa</b></td><td>" + counthexa.get(i) + "</td><td>" + (6 * counthexare.get(i)) + "</td><td>" + round.format( (float) (Ahexa.get(i) * 100) / (6 * counthexare.get(i))) + "</td><td>" + round.format( (float) (Thexa.get(i) * 100) / (6 * counthexare.get(i))) + "</td><td>" + round.format( (float) (Chexa.get(i) * 100) / (6 * counthexare.get(i))) + "</td><td>" + round.format( (float) (Ghexa.get(i) * 100) / (6 * counthexare.get(i))) + "</td><td>" + round.format((float) counthexa.get(i) / totalcount) + "</td><td>" + round.format((float) 6 * counthexare.get(i) / seqcount) + "</td><td>" + round.format((float) 6 * counthexare.get(i) / bpcount) + "</td></tr>"); } if (mono.isSelected()) { relfreq += (float) countmono.get(i) / totalcount; abfreq += (float) countmonore.get(i) / bpcount; } if (di.isSelected()) { relfreq += (float) countdi.get(i) / totalcount; abfreq += (float) countdire.get(i) * 2 / bpcount; } if (tri.isSelected()) { relfreq += (float) counttri.get(i) / totalcount; abfreq += (float) counttrire.get(i) * 3 / bpcount; } if (tetra.isSelected()) { relfreq += (float) counttetra.get(i) / totalcount; abfreq += (float) counttetrare.get(i) * 4 / bpcount; } if (penta.isSelected()) { relfreq += (float) countpenta.get(i) / totalcount; abfreq += (float) countpentare.get(i) * 5 / bpcount; } if (hexa.isSelected()) { relfreq += (float) counthexa.get(i) / totalcount; abfreq += (float) counthexare.get(i) * 6 / bpcount; } Globals.A = Aperc; Globals.T = Tperc; Globals.G = Gperc; Globals.C = Cperc; lt.writeLong(seqcount); lt.writeInt(totalcount); lt.writeLong(bpcount); lt.writeInt(Aperc); lt.writeInt(Tperc); lt.writeInt(Gperc); lt.writeInt(Cperc); stats.println("|TOTAL |" + cell(Integer.toString(totalcount), 7) + "|" + cell(Long.toString(bpcount), 12) + "|" + cell((float) Aperc * 100 / bpcount, 7) + "|" + cell((float) Tperc * 100 / bpcount, 7) + "|" + cell((float) Cperc * 100 / bpcount, 7) + "|" + cell((float) Gperc * 100 / bpcount, 7) + "|" + cell(relfreq, 15) + "|" + cell((float) bpcount / seqcount, 15) + "|" + cell((float) abfreq, 15) + "|"); stats.println( "|_______|_______|____________|_______|_______|_______|_______|_______________|_______________|_______________|"); stats.println("Genome length (bp): " + seqcount); stats.println("Relative Frequency: Count of each motif type / total SSR count"); stats.println("Abundance: bp of each motif type / total sequence bp"); stats.println( "Relative Abundance: bp of each motif type / total microsatellites bp"); stats.println(); stats.println(); stats.close(); lt.close(); html.println("<tr><td><b>TOTAL</b></td><td>" + totalcount + "</td><td>" + bpcount + "</td><td>" + round.format((float) Aperc * 100 / bpcount) + "</td><td>" + round.format((float) Tperc * 100 / bpcount) + "</td><td>" + round.format((float) Cperc * 100 / bpcount) + "</td><td>" + round.format((float) Gperc * 100 / bpcount) + "</td><td>" + round.format((float) relfreq) + "</td><td>" + round.format((float) bpcount / seqcount) + "</td><td>" + round.format((float) abfreq) + "</td></tr></table></html>"); html.close(); // it = map.keySet().iterator(); for (String key : map.keySet()) { map.get(key).refresh(); } List<String> n1 = new ArrayList<String>(); List<String> n2 = new ArrayList<String>(); List<String> n3 = new ArrayList<String>(); List<String> n4 = new ArrayList<String>(); List<String> n5 = new ArrayList<String>(); List<String> n6 = new ArrayList<String>(); Iterator<String> it = map.keySet().iterator(); while (it.hasNext()) { String next = it.next(); int len = next.length(); if (len == 1) n1.add(next); else if (len == 2) n2.add(next); else if (len == 3) n3.add(next); else if (len == 4) n4.add(next); else if (len == 5) n5.add(next); else if (len == 6) n6.add(next); } Collections.sort(n1); Collections.sort(n2); Collections.sort(n3); Collections.sort(n4); Collections.sort(n5); Collections.sort(n6); boolean[] id1 = new boolean[n1.size()]; boolean[] id2 = new boolean[n2.size()]; boolean[] id3 = new boolean[n3.size()]; boolean[] id4 = new boolean[n4.size()]; boolean[] id5 = new boolean[n5.size()]; boolean[] id6 = new boolean[n6.size()]; motifhtml.println("<html><head><title>Motif Statistics</title></head><body>"); int stand = checkStandardize(); // stand=2; debug if (stand == 0) { motifstats.println("**** Not Standardized ****"); motifhtml.println("<h1>**** Not Standardized ****</h1>"); Arrays.fill(id1, true); Arrays.fill(id2, true); Arrays.fill(id3, true); Arrays.fill(id4, true); Arrays.fill(id5, true); Arrays.fill(id6, true); } else { if (stand == 1) { motifstats.println("**** Partially Standardized ****"); motifhtml.println("<h1>**** Partially Standardized ****</h1>"); matrix = new parser(1); } if (stand == 2) { motifstats.println("**** Fully Standardized ****"); motifhtml.println("<h1>**** Fully Standardized ****</h1>"); matrix = new parser(2); } Arrays.fill(id1, true); Arrays.fill(id2, true); Arrays.fill(id3, true); Arrays.fill(id4, true); Arrays.fill(id5, true); Arrays.fill(id6, true); for (int n = 0; n < n1.size(); n++) { int id = -2; id = matrix.SearchMap(1, n1.get(n)); if (id >= 0) { int found = matrix.checkFound(1, id); if (found >= 0) { map.get(n1.get(found)).merge(map.get(n1.get(n))); id1[n] = false; // gia clean twn listwn apo merged TODO * } if (found == -4) { matrix.makeFound(1, id, n); } } } for (int n = 0; n < n2.size(); n++) { int id = -2; id = matrix.SearchMap(2, n2.get(n)); if (id >= 0) { int found = matrix.checkFound(2, id); if (found >= 0) { map.get(n2.get(found)).merge(map.get(n2.get(n))); id2[n] = false; // gia clean twn listwn apo merged TODO * } else { matrix.makeFound(2, id, n); id2[n] = true; } } } for (int n = 0; n < n3.size(); n++) { int id = -2; id = matrix.SearchMap(3, n3.get(n)); if (id >= 0) { int found = matrix.checkFound(3, id); if (found >= 0) { map.get(n3.get(found)).merge(map.get(n3.get(n))); id3[n] = false; // gia clean twn listwn apo merged TODO * } else { matrix.makeFound(3, id, n); id3[n] = true; } } } for (int n = 0; n < n4.size(); n++) { int id = -2; id = matrix.SearchMap(4, n4.get(n)); if (id >= 0) { int found = matrix.checkFound(4, id); if (found >= 0) { map.get(n4.get(found)).merge(map.get(n4.get(n))); id4[n] = false; // gia clean twn listwn apo merged TODO * } else { matrix.makeFound(4, id, n); id4[n] = true; } } } for (int n = 0; n < n5.size(); n++) { int id = -2; id = matrix.SearchMap(5, n5.get(n)); if (id >= 0) { int found = matrix.checkFound(5, id); if (found >= 0) { map.get(n5.get(found)).merge(map.get(n5.get(n))); id5[n] = false; // gia clean twn listwn apo merged TODO * } else { matrix.makeFound(5, id, n); id5[n] = true; } } } for (int n = 0; n < n6.size(); n++) { int id = -2; id = matrix.SearchMap(6, n6.get(n)); if (id >= 0) { int found = matrix.checkFound(6, id); if (found >= 0) { map.get(n6.get(found)).merge(map.get(n6.get(n))); id6[n] = false; // gia clean twn listwn apo merged TODO * } else { matrix.makeFound(6, id, n); id6[n] = true; } } } } for (String key : map.keySet()) { map.get(key).refresh(); } motifstats.println( " Motif Count Repeats bp Avg_Length SD_Length Max_Length Avg_Repeats A% T% C% G% "); motifhtml.println( "<table border=\"1\"><tr><td><b>Motif</b></td><td><b>Count</b></td><td><b>Repeats</b></td><td><b>bp</b></td><td><b>Avg_Length</b></td><td><b>SD_Length</b></td><td><b>Max_Length</b></td><td><b>Avg_Repeats</b></td><td><b>A%</b></td><td><b>T%</b></td><td><b>C%</b></td><td><b>G%</b></td></tr>"); if (mono.isSelected()) { for (int z = 0; z < n1.size(); z++) { if (id1[z] && !map.get(n1.get(z)).getMotif().contains("N")) { motifstats.println(map.get(n1.get(z)).toString()); motifhtml.println(map.get(n1.get(z)).toHTML()); } } } if (di.isSelected()) { for (int z = 0; z < n2.size(); z++) { if (id2[z] && !map.get(n2.get(z)).getMotif().contains("N")) { motifstats.println(map.get(n2.get(z)).toString()); motifhtml.println(map.get(n2.get(z)).toHTML()); } } } if (tri.isSelected()) { for (int z = 0; z < n3.size(); z++) { if (id3[z] && !map.get(n3.get(z)).getMotif().contains("N")) { motifstats.println(map.get(n3.get(z)).toString()); motifhtml.println(map.get(n3.get(z)).toHTML()); } } } if (tetra.isSelected()) { for (int z = 0; z < n4.size(); z++) { if (id4[z] && !map.get(n4.get(z)).getMotif().contains("N")) { motifstats.println(map.get(n4.get(z)).toString()); motifhtml.println(map.get(n4.get(z)).toHTML()); } } } if (penta.isSelected()) { for (int z = 0; z < n5.size(); z++) { if (id5[z] && !map.get(n5.get(z)).getMotif().contains("N")) { motifstats.println(map.get(n5.get(z)).toString()); motifhtml.println(map.get(n5.get(z)).toHTML()); } } } if (hexa.isSelected()) { for (int z = 0; z < n6.size(); z++) { if (id6[z] && !map.get(n6.get(z)).getMotif().contains("N")) { motifstats.println(map.get(n6.get(z)).toString()); motifhtml.println(map.get(n6.get(z)).toHTML()); } } } motifstats.close(); motifhtml.println("</table></body></html>"); motifhtml.close(); Runtime.getRuntime().exec("notepad " + location2); } } catch (FileNotFoundException ex) { //msg.showMessageDialog(paneldown, "Update your selected species", "Error", JOptionPane.ERROR_MESSAGE); Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } catch (SQLException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } catch (ClassNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } else { msg.showMessageDialog(paneldown, "Minimum length requires an Integer", "Error", JOptionPane.ERROR_MESSAGE); } } else { msg.showMessageDialog(paneldown, "Please fill in the minimum length (Integers only)", "Error", JOptionPane.ERROR_MESSAGE); } } if (box2.isSelected()) { boolean gapisnumber = false; boolean minisnumber = false; int gap = 0; int min = 0; try { gap = Integer.parseInt(max.getText()); gapisnumber = true; } catch (NumberFormatException ex) { gapisnumber = false; } try { min = Integer.parseInt(minpregap.getText()); minisnumber = true; } catch (NumberFormatException ex) { minisnumber = false; } if (gapisnumber && minisnumber) { try { getImPerfectSSRs(organisms, min, flag, gap); for (int i = 0; i < organisms.length; i++) { PrintWriter stats = null; PrintWriter html = null; String location = ""; // 18/11/2013 added starting here String filetype = ""; String filepro = ""; if (flag) { filetype = "organisms"; filepro = "organisms/" + organisms[i] + "/data/"; int ret = getOrganismStatus(organisms[i]); if (ret == -1) indexer = new Indexer(chromosomelist); else indexer = new Indexer(ret); } else { filetype = "local"; filepro = "local/" + organisms[i] + "/data/"; String indexfile = "local/" + organisms[i] + "/index.txt"; indexer = new Indexer(indexfile); } //List<String> files = getFiles(organisms[i], minlen, flag); // 18/11/2013 added ending here PrintWriter out = null; DataOutputStream lt = null; if (filetype.contains("organisms")) { File f = new File("organisms/" + organisms[i] + "/stats/"); if (!f.exists()) { f.mkdir(); } stats = new PrintWriter(new FileWriter( "organisms/" + organisms[i] + "/stats/" + "summary_statistics" + now.toString().replace(':', '_').replace(' ', '_') + ".txt", true)); lt = new DataOutputStream(new BufferedOutputStream( new FileOutputStream("organisms/" + organisms[i] + "/data/" + now.toString().replace(':', '_').replace(' ', '_') + ".imperf"))); html = new PrintWriter(new FileWriter( "organisms/" + organisms[i] + "/stats/" + "summary_statistics" + now.toString().replace(':', '_').replace(' ', '_') + ".html", true)); File fi = new File("organisms/" + organisms[i] + "/results/"); if (!fi.exists()) { fi.mkdir(); } String toopen = "organisms/" + organisms[i] + "/results/allImPerfect_" + now.toString().replace(':', '_').replace(' ', '_') + ".txt"; location = toopen; out = new PrintWriter(toopen); out.println("Results for organism: " + organisms[i] + "\t Search Parameters --> Maximum Mismatch length for ImPerfect SSRs : " + gap + " minimum SSR length before given gap: " + min); } else if (filetype.contains("local")) { File f = new File("local/" + organisms[i] + "/stats/"); if (!f.exists()) { f.mkdir(); } stats = new PrintWriter(new FileWriter( "local/" + organisms[i] + "/stats/" + "summary_statistics" + now.toString().replace(':', '_').replace(' ', '_') + ".txt", true)); lt = new DataOutputStream(new BufferedOutputStream(new FileOutputStream("local/" + organisms[i] + "/data/" + now.toString().replace(':', '_').replace(' ', '_') + ".imperf"))); html = new PrintWriter(new FileWriter( "local/" + organisms[i] + "/stats/" + "summary_statistics" + now.toString().replace(':', '_').replace(' ', '_') + ".html", true)); File fi = new File("local/" + organisms[i] + "/results/"); if (!fi.exists()) { fi.mkdir(); } String toopen = "local/" + organisms[i] + "/results/allImPerfect_" + now.toString().replace(':', '_').replace(' ', '_') + ".txt"; location = toopen; out = new PrintWriter(toopen); out.println("Results for project: " + organisms[i] + "\t Search Parameters --> Maximum Mismatch length for ImPerfect SSRs : " + gap + " minimum SSR length before given gap: " + min); } if (mono.isSelected()) { // 18/11/2013 added starting here if (flag) { filetype = "organisms"; filepro = "organisms/" + organisms[i] + "/data/"; int ret = getOrganismStatus(organisms[i]); if (ret == -1) indexer = new Indexer(chromosomelist); else indexer = new Indexer(ret); } else { filetype = "local"; filepro = "local/" + organisms[i] + "/data/"; String indexfile = "local/" + organisms[i] + "/index.txt"; indexer = new Indexer(indexfile); } while (indexer.hasNext()) { String files = filepro + indexer.getNextFileName(); DataInputStream in = new DataInputStream( new BufferedInputStream(new FileInputStream( files + "_" + min + "_" + gap + "_monoImPerfect.temp"))); boolean eof = false; while (!eof) { try { String ssr = in.readUTF(); int start = in.readInt(); int end = in.readInt(); if (!ssr.contains("N")) out.println("SSR: " + ssr + " start-end " + start + "-" + end + " Path(../data/chromosome): " + files.substring(0, files.lastIndexOf('.'))); } catch (EOFException exc) { eof = true; } } in.close(); } } if (di.isSelected()) { // 18/11/2013 added starting here if (flag) { filetype = "organisms"; filepro = "organisms/" + organisms[i] + "/data/"; int ret = getOrganismStatus(organisms[i]); if (ret == -1) indexer = new Indexer(chromosomelist); else indexer = new Indexer(ret); } else { filetype = "local"; filepro = "local/" + organisms[i] + "/data/"; String indexfile = "local/" + organisms[i] + "/index.txt"; indexer = new Indexer(indexfile); } while (indexer.hasNext()) { String files = filepro + indexer.getNextFileName(); DataInputStream in = new DataInputStream( new BufferedInputStream(new FileInputStream( files + "_" + min + "_" + gap + "_diImPerfect.temp"))); boolean eof = false; while (!eof) { try { String ssr = in.readUTF(); int start = in.readInt(); int end = in.readInt(); if (!ssr.contains("N")) out.println("SSR: " + ssr + " start-end " + start + "-" + end + " Path(../data/chromosome): " + files.substring(0, files.lastIndexOf('.'))); } catch (EOFException exc) { eof = true; } } in.close(); } } if (tri.isSelected()) { // 18/11/2013 added starting here if (flag) { filetype = "organisms"; filepro = "organisms/" + organisms[i] + "/data/"; int ret = getOrganismStatus(organisms[i]); if (ret == -1) indexer = new Indexer(chromosomelist); else indexer = new Indexer(ret); } else { filetype = "local"; filepro = "local/" + organisms[i] + "/data/"; String indexfile = "local/" + organisms[i] + "/index.txt"; indexer = new Indexer(indexfile); } while (indexer.hasNext()) { String files = filepro + indexer.getNextFileName(); DataInputStream in = new DataInputStream( new BufferedInputStream(new FileInputStream( files + "_" + min + "_" + gap + "_triImPerfect.temp"))); boolean eof = false; while (!eof) { try { String ssr = in.readUTF(); int start = in.readInt(); int end = in.readInt(); if (!ssr.contains("N")) out.println("SSR: " + ssr + " start-end " + start + "-" + end + " Path(../data/chromosome): " + files.substring(0, files.lastIndexOf('.'))); } catch (EOFException exc) { eof = true; } } in.close(); } } if (tetra.isSelected()) { // 18/11/2013 added starting here if (flag) { filetype = "organisms"; filepro = "organisms/" + organisms[i] + "/data/"; int ret = getOrganismStatus(organisms[i]); if (ret == -1) indexer = new Indexer(chromosomelist); else indexer = new Indexer(ret); } else { filetype = "local"; filepro = "local/" + organisms[i] + "/data/"; String indexfile = "local/" + organisms[i] + "/index.txt"; indexer = new Indexer(indexfile); } while (indexer.hasNext()) { String files = filepro + indexer.getNextFileName(); DataInputStream in = new DataInputStream( new BufferedInputStream(new FileInputStream( files + "_" + min + "_" + gap + "_tetraImPerfect.temp"))); boolean eof = false; while (!eof) { try { String ssr = in.readUTF(); int start = in.readInt(); int end = in.readInt(); if (!ssr.contains("N")) out.println("SSR: " + ssr + " start-end " + start + "-" + end + " Path(../data/chromosome): " + files.substring(0, files.lastIndexOf('.'))); } catch (EOFException exc) { eof = true; } } in.close(); } } if (penta.isSelected()) { // 18/11/2013 added starting here if (flag) { filetype = "organisms"; filepro = "organisms/" + organisms[i] + "/data/"; int ret = getOrganismStatus(organisms[i]); if (ret == -1) indexer = new Indexer(chromosomelist); else indexer = new Indexer(ret); } else { filetype = "local"; filepro = "local/" + organisms[i] + "/data/"; String indexfile = "local/" + organisms[i] + "/index.txt"; indexer = new Indexer(indexfile); } while (indexer.hasNext()) { String files = filepro + indexer.getNextFileName(); DataInputStream in = new DataInputStream( new BufferedInputStream(new FileInputStream( files + "_" + min + "_" + gap + "_pentaImPerfect.temp"))); boolean eof = false; while (!eof) { try { String ssr = in.readUTF(); int start = in.readInt(); int end = in.readInt(); if (!ssr.contains("N")) out.println("SSR: " + ssr + " start-end " + start + "-" + end + " Path(../data/chromosome): " + files.substring(0, files.lastIndexOf('.'))); } catch (EOFException exc) { eof = true; } } in.close(); } } if (hexa.isSelected()) { // 18/11/2013 added starting here if (flag) { filetype = "organisms"; filepro = "organisms/" + organisms[i] + "/data/"; int ret = getOrganismStatus(organisms[i]); if (ret == -1) indexer = new Indexer(chromosomelist); else indexer = new Indexer(ret); } else { filetype = "local"; filepro = "local/" + organisms[i] + "/data/"; String indexfile = "local/" + organisms[i] + "/index.txt"; indexer = new Indexer(indexfile); } while (indexer.hasNext()) { String files = filepro + indexer.getNextFileName(); DataInputStream in = new DataInputStream( new BufferedInputStream(new FileInputStream( files + "_" + min + "_" + gap + "_hexaImPerfect.temp"))); boolean eof = false; while (!eof) { try { String ssr = in.readUTF(); int start = in.readInt(); int end = in.readInt(); if (!ssr.contains("N")) out.println("SSR: " + ssr + " start-end " + start + "-" + end + " Path(../data/chromosome): " + files.substring(0, files.lastIndexOf('.'))); } catch (EOFException exc) { eof = true; } } in.close(); } } out.close(); Runtime.getRuntime().exec("notepad " + location); DecimalFormat round = new DecimalFormat("#.###"); html.println("<html><h1>******* ImPerfect SSRs *******</h1>"); html.println("<h4>Results for project: " + organisms[i] + "</h4><h4>Search Parameters --> Maximum Mismatch length for ImPerfect SSRs (bp): " + gap + "</h4><h4>minimum SSR length before given Mismatch length (bp): " + min + "</h4>"); html.println( "<table border=\"1\"><tr><td><b>motif</b></td><td><b>count</b></td><td><b>bp</b></td><td><b>A%</b></td><td><b>T%</b></td><td><b>C%</b></td><td><b>G%</b></td><td><b>Relative Frequency</b></td><td><b>Abundance</b></td><td><b>Relative Abundance</b></td></tr>"); stats.println("******* ImPerfect SSRs *******"); stats.println("Results for project: " + organisms[i] + "\n Search Parameters --> Maximum Mismatch length for ImPerfect SSRs (bp): " + gap + " \nminimum SSR length before given Mismatch length (bp): " + min); stats.println( " ____________________________________________________________________________________________________________ "); stats.println( "| | | | | | | | Relative | | Relative |"); stats.println( "| motif | count | bp | A% | T% | C% | G% | Frequency | Abundance | Abundance |"); stats.println( "|=======|=======|============|=======|=======|=======|=======|===============|===============|===============|"); int totalcount = 0; long bpcount = 0; int Aperc = 0; int Tperc = 0; int Gperc = 0; int Cperc = 0; float relfreq = 0; float abfreq = 0; long seqcount = 0; if (mono.isSelected()) { totalcount += countmono.get(i); bpcount += countmonore.get(i); } if (di.isSelected()) { totalcount += countdi.get(i); bpcount += countdire.get(i); } if (tri.isSelected()) { totalcount += counttri.get(i); bpcount += counttrire.get(i); } if (tetra.isSelected()) { totalcount += counttetra.get(i); bpcount += counttetrare.get(i); } if (penta.isSelected()) { totalcount += countpenta.get(i); bpcount += countpentare.get(i); } if (hexa.isSelected()) { totalcount += counthexa.get(i); bpcount += counthexare.get(i); } try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } Connection con = null; try { con = DriverManager.getConnection("jdbc:mysql://localhost:3306", "biouser", "thesis2012"); } catch (SQLException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } Statement st = null; try { st = con.createStatement(); } catch (SQLException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } st.executeUpdate("use lobid"); seqcount = 0; if (filetype.contains("organisms")) { ResultSet rs = st.executeQuery( "SELECT end FROM slices INNER JOIN organism WHERE slices.org_id=organism.org_id AND organism.name='" + organisms[i] + "'"); while (rs.next()) { seqcount += Long.parseLong(rs.getString(1)); } } else if (filetype.contains("local")) { BufferedReader in = new BufferedReader( new FileReader("local/" + organisms[i] + "/index.txt")); int count = countlines("local/" + organisms[i] + "/index.txt"); for (int c = 0; c < count; c++) { String temp = in.readLine(); BufferedReader tmp = new BufferedReader( new FileReader("local/" + organisms[i] + "/" + temp + ".txt")); boolean eof = false; while (!eof) { String s = tmp.readLine(); if (s != null) { seqcount += s.length(); } else { eof = true; } } tmp.close(); } } int tempmono = countmonore.get(i); int tempdi = countdire.get(i); int temptri = counttrire.get(i); int temptetra = counttetrare.get(i); int temppenta = countpentare.get(i); int temphexa = counthexare.get(i); if (tempmono == 0) tempmono = 1; if (tempdi == 0) tempdi = 1; if (temptri == 0) temptri = 1; if (temptetra == 0) temptetra = 1; if (temppenta == 0) temppenta = 1; if (temphexa == 0) temphexa = 1; if (mono.isSelected()) { Aperc += Amono.get(i); Tperc += Tmono.get(i); Gperc += Gmono.get(i); Cperc += Cmono.get(i); //lt.writeInt(countmono.get(i));lt.writeInt(countmonore.get(i));lt.writeFloat((float)Amono.get(i)*100/tempmono);lt.writeFloat((float)Tmono.get(i)*100/tempmono);lt.writeFloat((float)Gmono.get(i)*100/tempmono);lt.writeFloat((float)Cmono.get(i)*100/tempmono);lt.writeFloat((float) countmono.get(i) / totalcount);lt.writeFloat((float) countmonore.get(i) / seqcount);lt.writeFloat((float) countmonore.get(i) / bpcount); stats.printf("|mono |" + cell(Integer.toString(countmono.get(i)), 7) + "|" + cell(Integer.toString(countmonore.get(i)), 12) + "|%s|%s|%s|%s|" + cell((float) countmono.get(i) / totalcount, 15) + "|" + cell((float) countmonore.get(i) / seqcount, 15) + "|" + cell((float) countmonore.get(i) / bpcount, 15) + "|\n", cell((float) (Amono.get(i) * 100) / (tempmono), 7), cell((float) (Tmono.get(i) * 100) / (tempmono), 7), cell((float) (Cmono.get(i) * 100) / (tempmono), 7), cell((float) (Gmono.get(i) * 100) / (tempmono), 7)); stats.println( "|-------|-------|------------|-------|-------|-------|-------|---------------|---------------|---------------|"); html.println("<tr><td><b>mono</b></td><td>" + countmono.get(i) + "</td><td>" + (countmonore.get(i)) + "</td><td>" + round.format((float) (Amono.get(i) * 100) / (tempmono)) + "</td><td>" + round.format((float) (Tmono.get(i) * 100) / (tempmono)) + "</td><td>" + round.format((float) (Cmono.get(i) * 100) / (tempmono)) + "</td><td>" + round.format((float) (Gmono.get(i) * 100) / (tempmono)) + "</td><td>" + round.format((float) countmono.get(i) / totalcount) + "</td><td>" + round.format((float) countmonore.get(i) / seqcount) + "</td><td>" + round.format((float) countmonore.get(i) / bpcount) + "</td></tr>"); } if (di.isSelected()) { Aperc += Adi.get(i); Tperc += Tdi.get(i); Gperc += Gdi.get(i); Cperc += Cdi.get(i); //lt.writeInt(countdi.get(i));lt.writeInt(countdi.get(i)re.get(i));lt.writeFloat((float)Adi.get(i)*100/tempdi);lt.writeFloat((float)Tdi.get(i)*100/tempdi);lt.writeFloat((float)Gdi.get(i)*100/tempdi);lt.writeFloat((float)Cdi.get(i)*100/tempdi);lt.writeFloat((float) countdi.get(i) / totalcount);lt.writeFloat((float) countdi.get(i)re.get(i) / seqcount);lt.writeFloat((float) countdi.get(i)re.get(i) / bpcount); stats.printf( "|di |" + cell(Integer.toString(countdi.get(i)), 7) + "|" + cell(Integer.toString(countdire.get(i)), 12) + "|%s|%s|%s|%s|" + cell((float) countdi.get(i) / totalcount, 15) + "|" + cell((float) countdi.get(i) / seqcount, 15) + "|" + cell((float) countdi.get(i) / bpcount, 15) + "|\n", cell((float) (Adi.get(i) * 100) / (tempdi), 7), cell((float) (Tdi.get(i) * 100) / (tempdi), 7), cell((float) (Cdi.get(i) * 100) / (tempdi), 7), cell((float) (Gdi.get(i) * 100) / (tempdi), 7)); stats.println( "|-------|-------|------------|-------|-------|-------|-------|---------------|---------------|---------------|"); html.println("<tr><td><b>di</b></td><td>" + countdi.get(i) + "</td><td>" + (countdire.get(i)) + "</td><td>" + round.format((float) (Adi.get(i) * 100) / (tempdi)) + "</td><td>" + round.format((float) (Tdi.get(i) * 100) / (tempdi)) + "</td><td>" + round.format((float) (Cdi.get(i) * 100) / (tempdi)) + "</td><td>" + round.format((float) (Gdi.get(i) * 100) / (tempdi)) + "</td><td>" + round.format((float) countdi.get(i) / totalcount) + "</td><td>" + round.format((float) countdire.get(i) / seqcount) + "</td><td>" + round.format((float) countdire.get(i) / bpcount) + "</td></tr>"); } if (tri.isSelected()) { Aperc += Atri.get(i); Tperc += Ttri.get(i); Gperc += Gtri.get(i); Cperc += Ctri.get(i); //lt.writeInt(counttri.get(i));lt.writeInt(counttrire.get(i).get(i));lt.writeFloat((float)Atri.get(i)*100/temptri);lt.writeFloat((float)Ttri.get(i)*100/temptri);lt.writeFloat((float)Gtri.get(i)*100/temptri);lt.writeFloat((float)Ctri.get(i)*100/temptri);lt.writeFloat((float) counttri.get(i) / totalcount);lt.writeFloat((float) counttrire.get(i).get(i) / seqcount);lt.writeFloat((float) counttrire.get(i).get(i) / bpcount); stats.printf("|tri |" + cell(Integer.toString(counttri.get(i)), 7) + "|" + cell(Integer.toString(counttrire.get(i)), 12) + "|%s|%s|%s|%s|" + cell((float) counttri.get(i) / totalcount, 15) + "|" + cell((float) counttrire.get(i) / seqcount, 15) + "|" + cell((float) counttrire.get(i) / bpcount, 15) + "|\n", cell((float) (Atri.get(i) * 100) / (temptri), 7), cell((float) (Ttri.get(i) * 100) / (temptri), 7), cell((float) (Ctri.get(i) * 100) / (temptri), 7), cell((float) (Gtri.get(i) * 100) / (temptri), 7)); stats.println( "|-------|-------|------------|-------|-------|-------|-------|---------------|---------------|---------------|"); html.println("<tr><td><b>tri</b></td><td>" + counttri.get(i) + "</td><td>" + (counttrire.get(i)) + "</td><td>" + round.format((float) (Atri.get(i) * 100) / (temptri)) + "</td><td>" + round.format((float) (Ttri.get(i) * 100) / (temptri)) + "</td><td>" + round.format((float) (Ctri.get(i) * 100) / (temptri)) + "</td><td>" + round.format((float) (Gtri.get(i) * 100) / (temptri)) + "</td><td>" + round.format((float) counttri.get(i) / totalcount) + "</td><td>" + round.format((float) counttrire.get(i) / seqcount) + "</td><td>" + round.format((float) counttrire.get(i) / bpcount) + "</td></tr>"); } if (tetra.isSelected()) { Aperc += Atetra.get(i); Tperc += Ttetra.get(i); Gperc += Gtetra.get(i); Cperc += Ctetra.get(i); //lt.writeInt(counttetra.get(i));lt.writeInt(counttetrare.get(i));lt.writeFloat((float)Atetra.get(i)*100/temptetra);lt.writeFloat((float)Ttetra.get(i)*100/temptetra);lt.writeFloat((float)Gtetra.get(i)*100/temptetra);lt.writeFloat((float)Ctetra.get(i)*100/temptetra);lt.writeFloat((float) counttetra.get(i) / totalcount);lt.writeFloat((float) counttetrare.get(i) / seqcount);lt.writeFloat((float) counttetrare.get(i) / bpcount); stats.printf("|tetra |" + cell(Integer.toString(counttetra.get(i)), 7) + "|" + cell(Integer.toString(counttetrare.get(i)), 12) + "|%s|%s|%s|%s|" + cell((float) counttetra.get(i) / totalcount, 15) + "|" + cell((float) counttetrare.get(i) / seqcount, 15) + "|" + cell((float) counttetrare.get(i) / bpcount, 15) + "|\n", cell((float) (Atetra.get(i) * 100) / (temptetra), 7), cell((float) (Ttetra.get(i) * 100) / (temptetra), 7), cell((float) (Ctetra.get(i) * 100) / (temptetra), 7), cell((float) (Gtetra.get(i) * 100) / (temptetra), 7)); stats.println( "|-------|-------|------------|-------|-------|-------|-------|---------------|---------------|---------------|"); html.println("<tr><td><b>tetra</b></td><td>" + counttetra.get(i) + "</td><td>" + (counttetrare.get(i)) + "</td><td>" + round.format((float) (Atetra.get(i) * 100) / (temptetra)) + "</td><td>" + round.format((float) (Ttetra.get(i) * 100) / (temptetra)) + "</td><td>" + round.format((float) (Ctetra.get(i) * 100) / (temptetra)) + "</td><td>" + round.format((float) (Gtetra.get(i) * 100) / (temptetra)) + "</td><td>" + round.format((float) counttetra.get(i) / totalcount) + "</td><td>" + round.format((float) counttetrare.get(i) / seqcount) + "</td><td>" + round.format((float) counttetrare.get(i) / bpcount) + "</td></tr>"); } if (penta.isSelected()) { Aperc += Apenta.get(i); Tperc += Tpenta.get(i); Gperc += Gpenta.get(i); Cperc += Cpenta.get(i); //lt.writeInt(countpenta.get(i));lt.writeInt(countpentare.get(i));lt.writeFloat((float)Apenta.get(i)*100/temppenta);lt.writeFloat((float)Tpenta.get(i)*100/temppenta);lt.writeFloat((float)Gpenta.get(i)*100/temppenta);lt.writeFloat((float)Cpenta.get(i)*100/temppenta);lt.writeFloat((float) countpenta.get(i) / totalcount);lt.writeFloat((float) countpentare.get(i) / seqcount);lt.writeFloat((float) countpentare.get(i) / bpcount); stats.printf("|penta |" + cell(Integer.toString(countpenta.get(i)), 7) + "|" + cell(Integer.toString(countpentare.get(i)), 12) + "|%s|%s|%s|%s|" + cell((float) countpenta.get(i) / totalcount, 15) + "|" + cell((float) countpentare.get(i) / seqcount, 15) + "|" + cell((float) countpentare.get(i) / bpcount, 15) + "|\n", cell((float) (Apenta.get(i) * 100) / (temppenta), 7), cell((float) (Tpenta.get(i) * 100) / (temppenta), 7), cell((float) (Cpenta.get(i) * 100) / (temppenta), 7), cell((float) (Gpenta.get(i) * 100) / (temppenta), 7)); stats.println( "|-------|-------|------------|-------|-------|-------|-------|---------------|---------------|---------------|"); html.println("<tr><td><b>penta</b></td><td>" + countpenta.get(i) + "</td><td>" + (countpentare.get(i)) + "</td><td>" + round.format((float) (Apenta.get(i) * 100) / (temppenta)) + "</td><td>" + round.format((float) (Tpenta.get(i) * 100) / (temppenta)) + "</td><td>" + round.format((float) (Cpenta.get(i) * 100) / (temppenta)) + "</td><td>" + round.format((float) (Gpenta.get(i) * 100) / (temppenta)) + "</td><td>" + round.format((float) countpenta.get(i) / totalcount) + "</td><td>" + round.format((float) countpentare.get(i) / seqcount) + "</td><td>" + round.format((float) countpentare.get(i) / bpcount) + "</td></tr>"); } if (hexa.isSelected()) { Aperc += Ahexa.get(i); Tperc += Thexa.get(i); Gperc += Ghexa.get(i); Cperc += Chexa.get(i); //lt.writeInt(counthexa.get(i));lt.writeInt(counthexare.get(i));lt.writeFloat((float)Ahexa.get(i)*100/temphexa);lt.writeFloat((float)Thexa.get(i)*100/temphexa);lt.writeFloat((float)Ghexa.get(i)*100/temphexa);lt.writeFloat((float)Chexa.get(i)*100/temphexa);lt.writeFloat((float) counthexa.get(i) / totalcount);lt.writeFloat((float) counthexare.get(i) / seqcount);lt.writeFloat((float) counthexare.get(i) / bpcount); stats.printf("|hexa |" + cell(Integer.toString(counthexa.get(i)), 7) + "|" + cell(Integer.toString(counthexare.get(i)), 12) + "|%s|%s|%s|%s|" + cell((float) counthexa.get(i) / totalcount, 15) + "|" + cell((float) counthexare.get(i) / seqcount, 15) + "|" + cell((float) counthexare.get(i) / bpcount, 15) + "|\n", cell((float) (Ahexa.get(i) * 100) / (temphexa), 7), cell((float) (Thexa.get(i) * 100) / (temphexa), 7), cell((float) (Chexa.get(i) * 100) / (temphexa), 7), cell((float) (Ghexa.get(i) * 100) / (temphexa), 7)); stats.println( "|-------|-------|------------|-------|-------|-------|-------|---------------|---------------|---------------|"); html.println("<tr><td><b>hexa</b></td><td>" + counthexa.get(i) + "</td><td>" + (counthexare.get(i)) + "</td><td>" + round.format((float) (Ahexa.get(i) * 100) / (temphexa)) + "</td><td>" + round.format((float) (Thexa.get(i) * 100) / (temphexa)) + "</td><td>" + round.format((float) (Chexa.get(i) * 100) / (temphexa)) + "</td><td>" + round.format((float) (Ghexa.get(i) * 100) / (temphexa)) + "</td><td>" + round.format((float) counthexa.get(i) / totalcount) + "</td><td>" + round.format((float) counthexare.get(i) / seqcount) + "</td><td>" + round.format((float) counthexare.get(i) / bpcount) + "</td></tr>"); } if (mono.isSelected()) { relfreq += (float) countmono.get(i) / totalcount; abfreq += (float) countmonore.get(i) / bpcount; } if (di.isSelected()) { relfreq += (float) countdi.get(i) / totalcount; abfreq += (float) countdire.get(i) / bpcount; } if (tri.isSelected()) { relfreq += (float) counttri.get(i) / totalcount; abfreq += (float) counttrire.get(i) / bpcount; } if (tetra.isSelected()) { relfreq += (float) counttetra.get(i) / totalcount; abfreq += (float) counttetrare.get(i) / bpcount; } if (penta.isSelected()) { relfreq += (float) countpenta.get(i) / totalcount; abfreq += (float) countpentare.get(i) / bpcount; } if (hexa.isSelected()) { relfreq += (float) counthexa.get(i) / totalcount; abfreq += (float) counthexare.get(i) / bpcount; } lt.writeLong(seqcount); lt.writeInt(totalcount); lt.writeLong(bpcount); lt.writeInt(Aperc); lt.writeInt(Tperc); lt.writeInt(Gperc); lt.writeInt(Cperc); stats.println("|TOTAL |" + cell(Integer.toString(totalcount), 7) + "|" + cell(Long.toString(bpcount), 12) + "|" + cell((float) Aperc * 100 / bpcount, 7) + "|" + cell((float) Tperc * 100 / bpcount, 7) + "|" + cell((float) Cperc * 100 / bpcount, 7) + "|" + cell((float) Gperc * 100 / bpcount, 7) + "|" + cell(relfreq, 15) + "|" + cell((float) bpcount / seqcount, 15) + "|" + cell((float) abfreq, 15) + "|"); stats.println( "|_______|_______|____________|_______|_______|_______|_______|_______________|_______________|_______________|"); stats.println("Genome length (bp): " + seqcount); stats.println("Relative Frequency: Count of each motif type / total SSR count"); stats.println("Abundance: bp of each motif type / total sequence bp"); stats.println( "Relative Abundance: bp of each motif type / total microsatellites bp"); stats.println(); stats.println(); stats.close(); lt.close(); html.println("<tr><td><b>TOTAL</b></td><td>" + totalcount + "</td><td>" + bpcount + "</td><td>" + round.format((float) Aperc * 100 / bpcount) + "</td><td>" + round.format((float) Tperc * 100 / bpcount) + "</td><td>" + round.format((float) Cperc * 100 / bpcount) + "</td><td>" + round.format((float) Gperc * 100 / bpcount) + "</td><td>" + round.format((float) relfreq) + "</td><td>" + round.format((float) bpcount / seqcount) + "</td><td>" + round.format((float) abfreq) + "</td></tr></table></html>"); html.close(); } } catch (SQLException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } catch (ClassNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } catch (FileNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); //msg.showMessageDialog(paneldown, "Update your selected species", "Error", JOptionPane.ERROR_MESSAGE); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } else { if (!gapisnumber && !minisnumber) { msg.showMessageDialog(paneldown, "Fill in Mismatch length for Imperfect SSRs \n and the minimum sequence length before the Mismatch length\n (Integers only)", "Error", JOptionPane.ERROR_MESSAGE); } else { if (!gapisnumber) { msg.showMessageDialog(paneldown, "Fill in Mismatch length for Imperfect SSRs (Integer only)", "Error", JOptionPane.ERROR_MESSAGE); } if (!minisnumber) { msg.showMessageDialog(paneldown, "Fill in the minimum sequence length before the Mismatch length (Integer only)", "Error", JOptionPane.ERROR_MESSAGE); } } } } if (box3.isSelected()) { boolean lenisnumber; boolean gapisnumber; int minlen = 0; int gap = 0; if (!com.isSelected() && !incom.isSelected()) { msg.showMessageDialog(paneldown, "Select a Compound SSR Option", "Error", JOptionPane.ERROR_MESSAGE); } else { try { minlen = Integer.parseInt(score.getText()); lenisnumber = true; } catch (NumberFormatException ex) { lenisnumber = false; } try { gap = Integer.parseInt(maxgapcomp.getText()); gapisnumber = true; } catch (NumberFormatException ex) { gapisnumber = false; } if (lenisnumber && gapisnumber) { if (com.isSelected()) { try { getCompoundPerfectSSRs(organisms, minlen, flag, gap); } catch (SQLException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } catch (ClassNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } catch (FileNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); //msg.showMessageDialog(paneldown, "Update your selected species", "Error", JOptionPane.ERROR_MESSAGE); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } if (incom.isSelected()) { try { getImPerfectCompoundSSRs(organisms, minlen, flag, gap); } catch (SQLException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } catch (ClassNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } catch (FileNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); //msg.showMessageDialog(paneldown, "Update your selected species", "Error", JOptionPane.ERROR_MESSAGE); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } } else { if (!lenisnumber) { msg.showMessageDialog(paneldown, "Minimum length requires an Integer", "Error", JOptionPane.ERROR_MESSAGE); } if (!gapisnumber) { msg.showMessageDialog(paneldown, "Inter-repeat Region between compound SSRs requires an Integer", "Error", JOptionPane.ERROR_MESSAGE); } } } } if (box1.isSelected() || box2.isSelected() || box3.isSelected() || com.isSelected() || incom.isSelected()) { PrintWriter out = null; PrintWriter html = null; boolean orgs = true; DecimalFormat round = new DecimalFormat("#.###"); //String file=""; for (int i = 0; i < organisms.length; i++) { String file = "organisms/" + organisms[i] + "/stats/" + "summary_statistics" + now.toString().replace(':', '_').replace(' ', '_') + ".txt"; File stats = new File(file); if (!stats.exists()) { orgs = false; file = "local/" + organisms[i] + "/stats/" + "summary_statistics" + now.toString().replace(':', '_').replace(' ', '_') + ".txt"; } try { html = new PrintWriter( new FileWriter(file.substring(0, file.indexOf(".")) + ".html", true)); html.println("<html><h1>******* SUMMARY TABLE *******</h1>"); html.println( "<table border=\"1\"><tr><td>type</td><td><b>count</b></td><td><b>bp</b></td><td><b>A%</b></td><td><b>T%</b></td><td><b>C%</b></td><td><b>G%</b></td><td><b>Relative Frequency</b></td><td><b>Abundance</b></td><td><b>Relative Abundance</b></td></tr>"); out = new PrintWriter(new FileWriter(file, true)); out.println("******* SUMMARY TABLE *******"); out.println( " _________________________________________________________________________________________________________________ "); out.println( "| | | | | | | | Relative | | Relative |"); out.println( "| type | count | bp | A% | T% | C% | G% | Frequency | Abundance | Abundance |"); out.println( "|============|=======|============|=======|=======|=======|=======|===============|===============|===============|"); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } //TOTAL long seqcount = 0; int SSRcount = 0; int SSRbpcount = 0; int A = 0, T = 0, G = 0, C = 0; float relfreq = 0; float abfreq = 0; //perfect int pcount = 0; long pbpcount = 0; int Ap = 0, Tp = 0, Gp = 0, Cp = 0; //imperfect int imcount = 0; long imbpcount = 0; int Aim = 0, Tim = 0, Gim = 0, Cim = 0; //compound perfect int ccount = 0; long cbpcount = 0; int Ac = 0, Tc = 0, Gc = 0, Cc = 0; //compound imperfect int cicount = 0; long cibpcount = 0; int Aci = 0, Tci = 0, Gci = 0, Cci = 0; if (box1.isSelected()) { DataInputStream in = null; if (orgs) { try { in = new DataInputStream( new BufferedInputStream(new FileInputStream("organisms/" + organisms[i] + "/data/" + now.toString().replace(':', '_').replace(' ', '_') + ".perf"))); } catch (FileNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } else { try { in = new DataInputStream(new BufferedInputStream(new FileInputStream("local/" + organisms[i] + "/data/" + now.toString().replace(':', '_').replace(' ', '_') + ".perf"))); } catch (FileNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } try { seqcount = in.readLong(); pcount = in.readInt(); pbpcount = in.readLong(); Ap = in.readInt(); Tp = in.readInt(); Gp = in.readInt(); Cp = in.readInt(); A += Ap; T += Tp; G += Gp; C += Cp; SSRcount += pcount; SSRbpcount += pbpcount; in.close(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } if (box2.isSelected()) { DataInputStream in = null; if (orgs) { try { in = new DataInputStream( new BufferedInputStream(new FileInputStream("organisms/" + organisms[i] + "/data/" + now.toString().replace(':', '_').replace(' ', '_') + ".imperf"))); } catch (FileNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } else { try { in = new DataInputStream(new BufferedInputStream(new FileInputStream("local/" + organisms[i] + "/data/" + now.toString().replace(':', '_').replace(' ', '_') + ".imperf"))); } catch (FileNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } try { seqcount = in.readLong(); imcount = in.readInt(); imbpcount = in.readLong(); Aim = in.readInt(); Tim = in.readInt(); Gim = in.readInt(); Cim = in.readInt(); A += Aim; T += Tim; G += Gim; C += Cim; SSRcount += imcount; SSRbpcount += imbpcount; in.close(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } if (box3.isSelected()) { if (com.isSelected()) { DataInputStream in = null; if (orgs) { try { in = new DataInputStream(new BufferedInputStream( new FileInputStream("organisms/" + organisms[i] + "/data/" + now.toString().replace(':', '_').replace(' ', '_') + ".compp"))); } catch (FileNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } else { try { in = new DataInputStream(new BufferedInputStream( new FileInputStream("local/" + organisms[i] + "/data/" + now.toString().replace(':', '_').replace(' ', '_') + ".compp"))); } catch (FileNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } try { seqcount = in.readLong(); ccount = in.readInt(); cbpcount = in.readInt(); Ac = in.readInt(); Tc = in.readInt(); Gc = in.readInt(); Cc = in.readInt(); A += Ac; T += Tc; G += Gc; C += Cc; SSRcount += ccount; SSRbpcount += cbpcount; in.close(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } if (incom.isSelected()) { DataInputStream in = null; if (orgs) { try { in = new DataInputStream(new BufferedInputStream( new FileInputStream("organisms/" + organisms[i] + "/data/" + now.toString().replace(':', '_').replace(' ', '_') + ".compim"))); } catch (FileNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } else { try { in = new DataInputStream(new BufferedInputStream( new FileInputStream("local/" + organisms[i] + "/data/" + now.toString().replace(':', '_').replace(' ', '_') + ".compim"))); } catch (FileNotFoundException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } try { seqcount = in.readLong(); cicount = in.readInt(); cibpcount = in.readInt(); Aci = in.readInt(); Tci = in.readInt(); Gci = in.readInt(); Cci = in.readInt(); A += Aci; T += Tci; G += Gci; C += Cci; SSRcount += cicount; SSRbpcount += cibpcount; in.close(); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } } if (box1.isSelected()) { relfreq += (float) pcount / SSRcount; abfreq += (float) pbpcount / SSRbpcount; out.printf( "|Perfect |" + cell(Integer.toString(pcount), 7) + "|" + cell(Long.toString(pbpcount), 12) + "|%s|%s|%s|%s|" + cell((float) pcount / SSRcount, 15) + "|" + cell((float) pbpcount / seqcount, 15) + "|" + cell((float) pbpcount / SSRbpcount, 15) + "|\n", cell((float) (Ap * 100) / (SSRbpcount), 7), cell((float) (Tp * 100) / (SSRbpcount), 7), cell((float) (Cp * 100) / (SSRbpcount), 7), cell((float) (Gp * 100) / (SSRbpcount), 7)); out.println( "|------------|-------|------------|-------|-------|-------|-------|---------------|---------------|---------------|"); html.println("<tr><td><b>Perfect</b></td><td>" + pcount + "</td><td>" + pbpcount + "</td><td>" + round.format((float) Ap * 100 / SSRbpcount) + "</td><td>" + round.format((float) Tp * 100 / SSRbpcount) + "</td><td>" + round.format((float) Cp * 100 / SSRbpcount) + "</td><td>" + round.format((float) Gp * 100 / SSRbpcount) + "</td><td>" + round.format((float) pcount / SSRcount) + "</td><td>" + round.format((float) pbpcount / seqcount) + "</td><td>" + round.format((float) pbpcount / SSRbpcount) + "</td></tr>"); } if (box2.isSelected()) { relfreq += (float) imcount / SSRcount; abfreq += (float) imbpcount / SSRbpcount; out.printf( "|Imperfect |" + cell(Integer.toString(imcount), 7) + "|" + cell(Long.toString(imbpcount), 12) + "|%s|%s|%s|%s|" + cell((float) imcount / SSRcount, 15) + "|" + cell((float) imbpcount / seqcount, 15) + "|" + cell((float) imbpcount / SSRbpcount, 15) + "|\n", cell((float) (Aim * 100) / (SSRbpcount), 7), cell((float) (Tim * 100) / (SSRbpcount), 7), cell((float) (Cim * 100) / (SSRbpcount), 7), cell((float) (Gim * 100) / (SSRbpcount), 7)); out.println( "|------------|-------|------------|-------|-------|-------|-------|---------------|---------------|---------------|"); html.println("<tr><td><b>Imperfect</b></td><td>" + imcount + "</td><td>" + imbpcount + "</td><td>" + round.format((float) Aim * 100 / SSRbpcount) + "</td><td>" + round.format((float) Tim * 100 / SSRbpcount) + "</td><td>" + round.format((float) Cim * 100 / SSRbpcount) + "</td><td>" + round.format((float) Gim * 100 / SSRbpcount) + "</td><td>" + round.format((float) imcount / SSRcount) + "</td><td>" + round.format((float) imbpcount / seqcount) + "</td><td>" + round.format((float) imbpcount / SSRbpcount) + "</td></tr>"); } if (box3.isSelected()) { if (com.isSelected()) { abfreq += (float) cbpcount / SSRbpcount; relfreq += (float) ccount / SSRcount; out.printf( "|Compound Per|" + cell(Integer.toString(ccount), 7) + "|" + cell(Long.toString(cbpcount), 12) + "|%s|%s|%s|%s|" + cell((float) ccount / SSRcount, 15) + "|" + cell((float) cbpcount / seqcount, 15) + "|" + cell((float) cbpcount / SSRbpcount, 15) + "|\n", cell((float) (Ac * 100) / (SSRbpcount), 7), cell((float) (Tc * 100) / (SSRbpcount), 7), cell((float) (Cc * 100) / (SSRbpcount), 7), cell((float) (Gc * 100) / (SSRbpcount), 7)); out.println( "|------------|-------|------------|-------|-------|-------|-------|---------------|---------------|---------------|"); html.println("<tr><td><b>Compound Perf.</b></td><td>" + ccount + "</td><td>" + cbpcount + "</td><td>" + round.format((float) Ac * 100 / SSRbpcount) + "</td><td>" + round.format((float) Tc * 100 / SSRbpcount) + "</td><td>" + round.format((float) Cc * 100 / SSRbpcount) + "</td><td>" + round.format((float) Gc * 100 / SSRbpcount) + "</td><td>" + round.format((float) ccount / SSRcount) + "</td><td>" + round.format((float) cbpcount / seqcount) + "</td><td>" + round.format((float) cbpcount / SSRbpcount) + "</td></tr>"); } if (incom.isSelected()) { abfreq += (float) cibpcount / SSRbpcount; relfreq += (float) cicount / SSRcount; out.printf( "|Compound Imp|" + cell(Integer.toString(cicount), 7) + "|" + cell(Long.toString(cibpcount), 12) + "|%s|%s|%s|%s|" + cell((float) cicount / SSRcount, 15) + "|" + cell((float) cibpcount / seqcount, 15) + "|" + cell((float) cibpcount / SSRbpcount, 15) + "|\n", cell((float) (Aci * 100) / (SSRbpcount), 7), cell((float) (Tci * 100) / (SSRbpcount), 7), cell((float) (Cci * 100) / (SSRbpcount), 7), cell((float) (Gci * 100) / (SSRbpcount), 7)); out.println( "|------------|-------|------------|-------|-------|-------|-------|---------------|---------------|---------------|"); html.println("<tr><td><b>Compound Imperf.</b></td><td>" + cicount + "</td><td>" + cibpcount + "</td><td>" + round.format((float) Aci * 100 / SSRbpcount) + "</td><td>" + round.format((float) Tci * 100 / SSRbpcount) + "</td><td>" + round.format((float) Cci * 100 / SSRbpcount) + "</td><td>" + round.format((float) Gci * 100 / SSRbpcount) + "</td><td>" + round.format((float) cicount / SSRcount) + "</td><td>" + round.format((float) cibpcount / seqcount) + "</td><td>" + round.format((float) cibpcount / SSRbpcount) + "</td></tr>"); } } out.println("|TOTAL |" + cell(Integer.toString(SSRcount), 7) + "|" + cell(Long.toString(SSRbpcount), 12) + "|" + cell((float) A * 100 / SSRbpcount, 7) + "|" + cell((float) T * 100 / SSRbpcount, 7) + "|" + cell((float) C * 100 / SSRbpcount, 7) + "|" + cell((float) G * 100 / SSRbpcount, 7) + "|" + cell(relfreq, 15) + "|" + cell((float) SSRbpcount / seqcount, 15) + "|" + cell((float) abfreq, 15) + "|"); out.println( "|____________|_______|____________|_______|_______|_______|_______|_______________|_______________|_______________|"); out.println("Genome length (bp): " + seqcount); out.println("Relative Frequency: Count of each motif type / total SSR count"); out.println("Abundance: bp of each motif type / total sequence bp"); out.println("Relative Abundance: bp of each motif type / total microsatellites bp"); out.println(); out.println(); out.close(); html.println("<tr><td><b>TOTAL</b></td><td>" + SSRcount + "</td><td>" + SSRbpcount + "</td><td>" + round.format((float) A * 100 / SSRbpcount) + "</td><td>" + round.format((float) T * 100 / SSRbpcount) + "</td><td>" + round.format((float) C * 100 / SSRbpcount) + "</td><td>" + round.format((float) G * 100 / SSRbpcount) + "</td><td>" + round.format((float) relfreq) + "</td><td>" + round.format((float) SSRbpcount / seqcount) + "</td><td>" + round.format((float) abfreq) + "</td></tr></table></html>"); html.close(); try { Runtime.getRuntime().exec("notepad " + file); } catch (IOException ex) { Logger.getLogger(StatsSelection.class.getName()).log(Level.SEVERE, null, ex); } } } setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); } }); selectsp = new JButton("Select new Species"); selectsp.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { try { input_frame frame = new input_frame(); } catch (ClassNotFoundException ex) { Logger.getLogger(updateframe.class.getName()).log(Level.SEVERE, null, ex); } catch (SQLException ex) { Logger.getLogger(updateframe.class.getName()).log(Level.SEVERE, null, ex); } dispose(); } }); quit = new JButton("Quit"); quit.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { System.exit(0); } }); tab = new JTabbedPane(); tab.setSize(790, 590); // about us panel ImageIcon image = new ImageIcon("miga.png"); JLabel label = new JLabel("", image, JLabel.CENTER); contact = new JLabel( "<html><b><p>Machine Learning and Knowledge Discovery Group</p><p>Computer Science Department</p><p>Aristotle University of Thessaloniki</p><p> </p><p>In collaboration with the laboratory of</p><p> </p><p>Population Genetics of Animal Organisms</p><p>Department of Genetics, Development and Molecular Biology</p><p>School of Biology</p><p>Aristotle University of Thessaloniki</p><p> </p><p> </p><p>For any comments or information please contact with:</p><p><a href=\"mailto:ikavak@csd.auth.gr\">ikavak@csd.auth.gr</a></p></b></html>"); about = new JPanel(); about.setLayout(new GridBagLayout()); GridBagConstraints ab = new GridBagConstraints(); ab.fill = GridBagConstraints.WEST; ab.weightx = 0.5; ab.weighty = 0.5; ab.gridx = 0; ab.gridy = 0; about.add(label, ab); ab.fill = GridBagConstraints.WEST; ab.weightx = 0.5; ab.weighty = 0.5; ab.gridx = 0; ab.gridy = 1; about.add(contact, ab); //end of about us //below are the rest of th panels paneltop = new JPanel(); TitledBorder t = BorderFactory.createTitledBorder("Select Period"); paneltop.setBorder(t); paneltop.setLayout(new GridBagLayout()); GridBagConstraints pt = new GridBagConstraints(); pt.fill = GridBagConstraints.HORIZONTAL; pt.weightx = 0.5; pt.weighty = 0.5; pt.gridx = 0; pt.gridy = 0; paneltop.add(mono, pt); pt.fill = GridBagConstraints.HORIZONTAL; pt.weightx = 0.5; pt.weighty = 0.5; pt.gridx = 0; pt.gridy = -1; paneltop.add(di, pt); pt.fill = GridBagConstraints.HORIZONTAL; pt.weightx = 0.5; pt.weighty = 0.5; pt.gridx = 0; pt.gridy = -2; paneltop.add(tri, pt); pt.fill = GridBagConstraints.HORIZONTAL; pt.weightx = 0.5; pt.weighty = 0.5; pt.gridx = 0; pt.gridy = -3; paneltop.add(tetra, pt); pt.fill = GridBagConstraints.HORIZONTAL; pt.weightx = 0.5; pt.weighty = 0.5; pt.gridx = 0; pt.gridy = -4; paneltop.add(penta, pt); pt.fill = GridBagConstraints.HORIZONTAL; pt.weightx = 0.5; pt.weighty = 0.5; pt.gridx = 0; pt.gridy = -5; paneltop.add(hexa, pt); panel1 = new JPanel(); TitledBorder title = BorderFactory.createTitledBorder("Type"); panel1.setBorder(title); panel1.setLayout(new GridBagLayout()); GridBagConstraints a = new GridBagConstraints(); a.fill = GridBagConstraints.HORIZONTAL; a.weightx = 0.5; a.weighty = 0.5; a.gridx = 0; a.gridy = 0; panel1.add(select, a); a.fill = GridBagConstraints.HORIZONTAL; a.weightx = 0.5; a.weighty = 0.5; a.gridx = 0; a.gridy = -1; panel1.add(box1, a); a.fill = GridBagConstraints.HORIZONTAL; a.weightx = 0.5; a.weighty = 0.5; a.gridx = 0; a.gridy = -2; panel1.add(box2, a); a.fill = GridBagConstraints.HORIZONTAL; a.weightx = 0.5; a.weighty = 0.5; a.gridx = 0; a.gridy = -3; panel1.add(box3, a); panel2 = new JPanel(); panel2.setVisible(false); TitledBorder title2 = BorderFactory.createTitledBorder("More Options"); panel2.setBorder(title2); panel2.setLayout(new GridBagLayout()); GridBagConstraints b = new GridBagConstraints(); b.fill = GridBagConstraints.HORIZONTAL; b.weightx = 0.5; b.weighty = 0.5; b.gridx = 0; b.gridy = 0; panel2.add(minimumssrlen, b); b.fill = GridBagConstraints.CENTER; b.weightx = 0.5; b.weighty = 0.5; b.gridx = 1; b.gridy = 0; panel2.add(score, b); b.fill = GridBagConstraints.HORIZONTAL; b.weightx = 0.5; b.weighty = 0.5; b.gridx = 0; b.gridy = -1; panel2.add(gapmax, b); b.fill = GridBagConstraints.CENTER; b.weightx = 0.5; b.weighty = 0.5; b.gridx = 1; b.gridy = -1; panel2.add(max, b); b.fill = GridBagConstraints.HORIZONTAL; b.weightx = 0.5; b.weighty = 0.5; b.gridx = 0; b.gridy = -2; panel2.add(minlenpregap, b); b.fill = GridBagConstraints.CENTER; b.weightx = 0.5; b.weighty = 0.5; b.gridx = 1; b.gridy = -2; panel2.add(minpregap, b); b.fill = GridBagConstraints.HORIZONTAL; b.weightx = 0.5; b.weighty = 0.5; b.gridx = 0; b.gridy = -3; panel2.add(gapcomp, b); b.fill = GridBagConstraints.CENTER; b.weightx = 0.5; b.weighty = 0.5; b.gridx = 1; b.gridy = -3; panel2.add(maxgapcomp, b); paneldownleft = new JPanel(); paneldownleft.setVisible(false); TitledBorder titledl = BorderFactory.createTitledBorder("Compound SSR options"); paneldownleft.setBorder(titledl); paneldownleft.setLayout(new GridBagLayout()); GridBagConstraints dl = new GridBagConstraints(); dl.fill = GridBagConstraints.CENTER; dl.weightx = 0.5; dl.weighty = 0.5; dl.gridx = 0; dl.gridy = 0; paneldownleft.add(com, dl); dl.fill = GridBagConstraints.CENTER; dl.weightx = 0.5; dl.weighty = 0.5; dl.gridx = 0; dl.gridy = -1; paneldownleft.add(incom, dl); paneldownright = new JPanel(); paneldownright.setLayout(new GridBagLayout()); GridBagConstraints dr = new GridBagConstraints(); dr.fill = GridBagConstraints.CENTER; dr.weightx = 0.5; dr.weighty = 0.5; dr.gridx = 0; dr.gridy = 0; paneldownright.add(show, dr); dr.fill = GridBagConstraints.CENTER; dr.weightx = 0.5; dr.weighty = 0.5; dr.gridx = 0; dr.gridy = -1; paneldownright.add(selectsp, dr); dr.fill = GridBagConstraints.CENTER; dr.weightx = 0.5; dr.weighty = 0.5; dr.gridx = 0; dr.gridy = -2; paneldownright.add(quit, dr); panelup = new JPanel(); TitledBorder titleup = BorderFactory.createTitledBorder("Statistics"); panelup.setBorder(titleup); panelup.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.HORIZONTAL; c.weightx = 0.5; c.weighty = 0.5; c.gridx = 0; c.gridy = 0; panelup.add(paneltop, c); c.fill = GridBagConstraints.HORIZONTAL; c.weightx = 0.5; c.weighty = 0.5; c.gridx = 1; c.gridy = 0; panelup.add(panel1, c); c.fill = GridBagConstraints.HORIZONTAL; c.weightx = 0.5; c.weighty = 0.5; c.gridx = 0; c.gridy = -1; panelup.add(paneldownleft, c); c.fill = GridBagConstraints.HORIZONTAL; c.weightx = 0.5; c.weighty = 0.5; c.gridx = 1; c.gridy = -1; panelup.add(panel2, c); c.fill = GridBagConstraints.HORIZONTAL; c.weightx = 0.5; c.weighty = 0.5; c.gridx = 0; c.gridy = -2; panelup.add(paneldownright, c); TitledBorder s = BorderFactory.createTitledBorder("Standardization"); std.setBorder(s); std.add(no_st); std.add(part_st); std.add(full_st); std.setEnabled(false); c.fill = GridBagConstraints.HORIZONTAL; c.weightx = 0.5; c.weighty = 0.5; c.gridx = 0; c.gridy = -3; panelup.add(std, c); tab.add(panelup, "Statistics"); panelshow = new JPanel(); TitledBorder ps = BorderFactory.createTitledBorder("Sequence Retrieval"); panelshow.setBorder(ps); panelshow.setLayout(new GridBagLayout()); GridBagConstraints psg = new GridBagConstraints(); panelshowup = new JPanel(); panelshowup.setLayout(new GridBagLayout()); GridBagConstraints p = new GridBagConstraints(); p.fill = GridBagConstraints.WEST; p.weightx = 0.5; p.weighty = 0.5; p.gridx = 0; p.gridy = 0; panelshowup.add(lab, p); panelshowd = new JPanel(); panelshowd.setLayout(new GridBagLayout()); GridBagConstraints pd = new GridBagConstraints(); pd.fill = GridBagConstraints.CENTER; pd.weightx = 0.5; pd.weighty = 0.5; pd.gridx = 0; pd.gridy = -1; panelshowd.add(startlab, pd); pd.fill = GridBagConstraints.CENTER; pd.weightx = 0.5; pd.weighty = 0.5; pd.gridx = 1; pd.gridy = -1; panelshowd.add(startnum, pd); pd.fill = GridBagConstraints.CENTER; pd.weightx = 0.5; pd.weighty = 0.5; pd.gridx = 0; pd.gridy = -2; panelshowd.add(endlab, pd); pd.fill = GridBagConstraints.CENTER; pd.weightx = 0.5; pd.weighty = 0.5; pd.gridx = 1; pd.gridy = -2; panelshowd.add(endnum, pd); pd.fill = GridBagConstraints.CENTER; pd.weightx = 0.5; pd.weighty = 0.5; pd.gridx = 0; pd.gridy = -3; panelshowd.add(titlelab, pd); pd.fill = GridBagConstraints.CENTER; pd.weightx = 0.5; pd.weighty = 0.5; pd.gridx = 1; pd.gridy = -3; panelshowd.add(titlef, pd); pd.fill = GridBagConstraints.CENTER; pd.weightx = 0.5; pd.weighty = 0.5; pd.gridx = 0; pd.gridy = -4; panelshowd.add(flk, pd); pd.fill = GridBagConstraints.CENTER; pd.weightx = 0.5; pd.weighty = 0.5; pd.gridx = 1; pd.gridy = -4; panelshowd.add(new JLabel(" "), pd); pd.fill = GridBagConstraints.CENTER; pd.weightx = 0.5; pd.weighty = 0.5; pd.gridx = 0; pd.gridy = -5; panelshowd.add(flankst, pd); pd.fill = GridBagConstraints.CENTER; pd.weightx = 0.5; pd.weighty = 0.5; pd.gridx = 1; pd.gridy = -5; panelshowd.add(flankstn, pd); pd.fill = GridBagConstraints.CENTER; pd.weightx = 0.5; pd.weighty = 0.5; pd.gridx = 0; pd.gridy = -6; panelshowd.add(flankend, pd); pd.fill = GridBagConstraints.CENTER; pd.weightx = 0.5; pd.weighty = 0.5; pd.gridx = 1; pd.gridy = -6; panelshowd.add(flankendn, pd); pd.fill = GridBagConstraints.CENTER; pd.weightx = 0.5; pd.weighty = 0.5; pd.gridx = 1; pd.gridy = -7; panelshowd.add(retrieve, pd); psg.fill = GridBagConstraints.CENTER; psg.weightx = 0.5; psg.weighty = 0.5; psg.gridx = 0; psg.gridy = 0; panelshow.add(panelshowup, psg); psg.fill = GridBagConstraints.CENTER; psg.weightx = 0.5; psg.weighty = 0.5; psg.gridx = 0; psg.gridy = -1; panelshow.add(panelshowd, psg); psg.fill = GridBagConstraints.CENTER; psg.weightx = 0.5; psg.weighty = 0.5; psg.gridx = 0; psg.gridy = -2; panelshow.add(sbrText, psg); tab.add(panelshow, "Sequence Retrieval"); tab.add(about, "About us"); add(tab); setVisible(true); }
From source file:org.wso2.appserver.sample.flickr.client.FlickrServiceFrame.java
public void populateOperationPane() { GridBagConstraints gbc;/* w w w. ja va 2 s.com*/ 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:interfaces.InterfazPrincipal.java
private void botonGenerarReporteClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonGenerarReporteClienteActionPerformed // TODO add your handling code here: try {// w w w . j av a 2 s. co m if (clienteReporteClienteFechaFinal.getSelectedDate().getTime() .compareTo(clienteReporteClienteFechaInicial.getSelectedDate().getTime()) < 0) { JOptionPane.showMessageDialog(this, "La fecha final debe ser posterior al dia de inicio"); } else { final ArrayList<Integer> listaIDFlujos = new ArrayList<>(); final JDialog dialogoEditar = new JDialog(); dialogoEditar.setTitle("Reporte cliente"); dialogoEditar.setSize(350, 610); dialogoEditar.setResizable(false); JPanel panelDialogo = new JPanel(); panelDialogo.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); //c.fill = GridBagConstraints.HORIZONTAL; JLabel ediitarTextoPrincipalDialogo = new JLabel("Informe cliente"); c.gridx = 0; c.gridy = 0; c.gridwidth = 1; c.insets = new Insets(10, 45, 10, 10); Font textoGrande = new Font("Arial", 1, 18); ediitarTextoPrincipalDialogo.setFont(textoGrande); panelDialogo.add(ediitarTextoPrincipalDialogo, c); final JTable tablaDialogo = new JTable(); DefaultTableModel modeloTabla = new DefaultTableModel() { @Override public boolean isCellEditable(int row, int column) { //all cells false return false; } }; ; modeloTabla.addColumn("Factura"); modeloTabla.addColumn("Tipo Flujo"); modeloTabla.addColumn("Fecha"); modeloTabla.addColumn("Valor"); //Llenar tabla ControladorFlujoFactura controladorFlujoFactura = new ControladorFlujoFactura(); ArrayList<String[]> flujosCliente = controladorFlujoFactura.getTodosFlujo_Factura( " where factura_id in (select factura_id from Factura where cliente_id = " + String.valueOf(jTextFieldIdentificacionClienteReporte.getText()) + ") order by factura_id"); // {"flujo_id","factura_id","tipo_flujo","fecha","valor"}; ArrayList<Calendar> fechasFlujos = new ArrayList<>(); for (int i = 0; i < flujosCliente.size(); i++) { String fila[] = new String[4]; String[] objeto = flujosCliente.get(i); fila[0] = objeto[1]; fila[1] = objeto[2]; fila[2] = objeto[3]; fila[3] = objeto[4]; //Filtrar, mirar las fechas String[] partirEspacios = objeto[3].split("\\s"); //El primer string es la fecha sin hora //Ahora esparamos por - String[] tomarAgeMesDia = partirEspacios[0].split("-"); //Realizar filtro int ageConsulta = Integer.parseInt(tomarAgeMesDia[0]); int mesConsulta = Integer.parseInt(tomarAgeMesDia[1]); int diaConsulta = Integer.parseInt(tomarAgeMesDia[2]); //Obtenemos dias, mes y ao de la consulta //Inicial int anioInicial = clienteReporteClienteFechaFinal.getSelectedDate().get(Calendar.YEAR); int mesInicial = clienteReporteClienteFechaFinal.getSelectedDate().get(Calendar.MONTH) + 1; int diaInicial = clienteReporteClienteFechaFinal.getSelectedDate().get(Calendar.DAY_OF_MONTH); //Final int anioFinal = clienteReporteClienteFechaInicial.getSelectedDate().get(Calendar.YEAR); int mesFinal = clienteReporteClienteFechaInicial.getSelectedDate().get(Calendar.MONTH) + 1; int diaFinal = clienteReporteClienteFechaInicial.getSelectedDate().get(Calendar.DAY_OF_MONTH); //Construir fechas Calendar fechaDeLaBD = new GregorianCalendar(ageConsulta, mesConsulta, diaConsulta); //Set year, month, day) Calendar fechaInicialRango = new GregorianCalendar(anioInicial, mesInicial, diaInicial); Calendar fechaFinalRango = new GregorianCalendar(anioFinal, mesFinal, diaFinal); if (fechaDeLaBD.compareTo(fechaInicialRango) <= 0 && fechaDeLaBD.compareTo(fechaFinalRango) >= 0) { fechasFlujos.add(fechaDeLaBD); modeloTabla.addRow(fila); } } if (modeloTabla.getRowCount() > 0) { tablaDialogo.setModel(modeloTabla); tablaDialogo.getColumn("Factura").setMinWidth(80); tablaDialogo.getColumn("Tipo Flujo").setMinWidth(80); tablaDialogo.getColumn("Fecha").setMinWidth(90); tablaDialogo.getColumn("Valor").setMinWidth(80); tablaDialogo.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); JScrollPane scroll = new JScrollPane(tablaDialogo); scroll.setPreferredSize(new Dimension(330, 150)); c.gridx = 0; c.gridy = 1; c.gridwidth = 1; c.insets = new Insets(0, 0, 0, 0); panelDialogo.add(scroll, c); TimeSeries localTimeSeries = new TimeSeries("Compras del cliente en el periodo"); Map listaAbonos = new HashMap(); for (int i = 0; i < modeloTabla.getRowCount(); i++) { listaIDFlujos.add(Integer.parseInt(flujosCliente.get(i)[0])); if (modeloTabla.getValueAt(i, 1).equals("abono")) { Calendar fechaFlujo = fechasFlujos.get(i); double valor = Double.parseDouble(String.valueOf(modeloTabla.getValueAt(i, 3))); int anoDato = fechaFlujo.get(Calendar.YEAR); int mesDato = fechaFlujo.get(Calendar.MONTH) + 1; int diaDato = fechaFlujo.get(Calendar.DAY_OF_MONTH); Day FechaDato = new Day(diaDato, mesDato, anoDato); if (listaAbonos.get(FechaDato) != null) { double valorAbono = (double) listaAbonos.get(FechaDato); listaAbonos.remove(FechaDato); listaAbonos.put(FechaDato, valorAbono + valor); } else { listaAbonos.put(FechaDato, valor); } } } Double maximo = 0.0; Iterator iterator = listaAbonos.keySet().iterator(); while (iterator.hasNext()) { Day key = (Day) iterator.next(); Double value = (double) listaAbonos.get(key); maximo = Math.max(maximo, value); localTimeSeries.add(key, value); } //localTimeSeries.add(); TimeSeriesCollection datos = new TimeSeriesCollection(localTimeSeries); JFreeChart chart = ChartFactory.createTimeSeriesChart("Compras del cliente en el periodo", // Title "Tiempo", // x-axis Label "Total ($)", // y-axis Label datos, // Dataset true, // Show Legend true, // Use tooltips false // Configure chart to generate URLs? ); /*Altering the graph */ XYPlot plot = (XYPlot) chart.getPlot(); plot.setAxisOffset(new RectangleInsets(5.0, 10.0, 10.0, 5.0)); plot.setDomainCrosshairVisible(true); plot.setRangeCrosshairVisible(true); XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) plot.getRenderer(); renderer.setBaseShapesVisible(true); renderer.setBaseShapesFilled(true); NumberAxis numberAxis = (NumberAxis) plot.getRangeAxis(); numberAxis.setRange(new Range(0, maximo * 1.2)); Font font = new Font("Dialog", Font.PLAIN, 9); numberAxis.setTickLabelFont(font); numberAxis.setLabelFont(font); DateAxis axis = (DateAxis) plot.getDomainAxis(); axis.setDateFormatOverride(new SimpleDateFormat("dd-MM-yyyy")); axis.setAutoTickUnitSelection(false); axis.setVerticalTickLabels(true); axis.setTickLabelFont(font); axis.setLabelFont(font); LegendTitle leyendaChart = chart.getLegend(); leyendaChart.setItemFont(font); Font fontTitulo = new Font("Dialog", Font.BOLD, 12); TextTitle tituloChart = chart.getTitle(); tituloChart.setFont(fontTitulo); ChartPanel CP = new ChartPanel(chart); Dimension D = new Dimension(330, 300); CP.setPreferredSize(D); CP.setVisible(true); c.gridx = 0; c.gridy = 2; c.gridwidth = 1; c.insets = new Insets(10, 0, 0, 0); panelDialogo.add(CP, c); c.gridx = 0; c.gridy = 3; c.gridwidth = 1; c.anchor = GridBagConstraints.WEST; c.insets = new Insets(10, 30, 0, 0); JButton botonCerrar = new JButton("Cerrar"); botonCerrar.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { dialogoEditar.dispose(); } }); panelDialogo.add(botonCerrar, c); JButton botonGenerarPDF = new JButton("Guardar archivo"); botonGenerarPDF.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { ReporteFlujosCliente reporteFlujosCliente = new ReporteFlujosCliente(); reporteFlujosCliente.guardarDocumentoDialogo(dialogoEditar, listaIDFlujos, Integer.parseInt(jTextFieldIdentificacionClienteReporte.getText()), clienteReporteClienteFechaInicial.getSelectedDate(), clienteReporteClienteFechaFinal.getSelectedDate()); } }); c.insets = new Insets(10, 100, 0, 0); panelDialogo.add(botonGenerarPDF, c); JButton botonImprimir = new JButton("Imprimir"); botonImprimir.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { ReporteFlujosCliente reporteFlujosCliente = new ReporteFlujosCliente(); reporteFlujosCliente.imprimirFlujo(listaIDFlujos, Integer.parseInt(jTextFieldIdentificacionClienteReporte.getText()), clienteReporteClienteFechaInicial.getSelectedDate(), clienteReporteClienteFechaFinal.getSelectedDate()); } }); c.insets = new Insets(10, 230, 0, 0); panelDialogo.add(botonImprimir, c); dialogoEditar.add(panelDialogo); dialogoEditar.setVisible(true); } else { JOptionPane.showMessageDialog(this, "El cliente no registra movimientos en el rango de fechas seleccionado"); } } } catch (Exception e) { JOptionPane.showMessageDialog(this, "Debe seleccionar un da inicial y final de fechas"); } }