From 5471ee68c60c305f479bf435786ab864ed0e3b0c Mon Sep 17 00:00:00 2001 From: spark_xp Date: Mon, 13 Sep 2010 16:24:45 +0000 Subject: [PATCH] =?utf8?q?=E3=82=AD=E3=83=BC=E3=83=AF=E3=83=BC=E3=83=89?= =?utf8?q?=E6=A4=9C=E7=B4=A2=E3=81=AE=E7=82=BA=E3=81=AE=E3=83=80=E3=82=A4?= =?utf8?q?=E3=82=A2=E3=83=AD=E3=82=B0=E3=82=92=E4=BD=9C=E6=88=90=EF=BC=8E?= =?utf8?q?=E4=B8=AD=E8=BA=AB=E3=81=AF=E3=81=BE=E3=81=A0=E3=81=AA=E3=81=84?= =?utf8?q?=EF=BC=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.sourceforge.jp/svnroot/nt-manager/NishioTweetManager/trunk@21 d8c9ecd3-d47d-4367-8645-de82c00e513f --- src/twitter/gui/form/KeywordSearchDialog.form | 146 +++++++++++++++++++++++++ src/twitter/gui/form/KeywordSearchDialog.java | 152 ++++++++++++++++++++++++++ src/twitter/gui/form/NishioTweetManager.form | 12 ++ src/twitter/gui/form/NishioTweetManager.java | 11 ++ 4 files changed, 321 insertions(+) create mode 100644 src/twitter/gui/form/KeywordSearchDialog.form create mode 100644 src/twitter/gui/form/KeywordSearchDialog.java diff --git a/src/twitter/gui/form/KeywordSearchDialog.form b/src/twitter/gui/form/KeywordSearchDialog.form new file mode 100644 index 0000000..1e1aad4 --- /dev/null +++ b/src/twitter/gui/form/KeywordSearchDialog.form @@ -0,0 +1,146 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/src/twitter/gui/form/KeywordSearchDialog.java b/src/twitter/gui/form/KeywordSearchDialog.java new file mode 100644 index 0000000..54367be --- /dev/null +++ b/src/twitter/gui/form/KeywordSearchDialog.java @@ -0,0 +1,152 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +/* + * KeywordSearchDialog.java + * + * Created on 2010/09/14, 1:09:08 + */ + +package twitter.gui.form; + +/** + * + * @author nishio + */ +public class KeywordSearchDialog extends javax.swing.JDialog { + + /** Creates new form KeywordSearchDialog */ + public KeywordSearchDialog(java.awt.Frame parent, boolean modal) { + super(parent, modal); + initComponents(); + } + + /** This method is called from within the constructor to + * initialize the form. + * WARNING: Do NOT modify this code. The content of this method is + * always regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // //GEN-BEGIN:initComponents + private void initComponents() { + + buttonGroup1 = new javax.swing.ButtonGroup(); + jLabel1 = new javax.swing.JLabel(); + jTextField1 = new javax.swing.JTextField(); + jLabel2 = new javax.swing.JLabel(); + jRadioButton1 = new javax.swing.JRadioButton(); + jTextField2 = new javax.swing.JTextField(); + jLabel3 = new javax.swing.JLabel(); + jRadioButton2 = new javax.swing.JRadioButton(); + jButton1 = new javax.swing.JButton(); + jButton2 = new javax.swing.JButton(); + + setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); + setTitle("Twitter全体からキーワード検索"); + + jLabel1.setText("検索したいキーワードを入力してください"); + + jLabel2.setText("情報更新間隔を指定してください"); + + buttonGroup1.add(jRadioButton1); + jRadioButton1.setText("情報を定期的に更新する"); + + jTextField2.setText("60"); + + jLabel3.setText("秒間隔"); + + buttonGroup1.add(jRadioButton2); + jRadioButton2.setText("更新しない"); + + jButton1.setText("キャンセル"); + + jButton2.setText("検索開始"); + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 440, Short.MAX_VALUE) + .addComponent(jLabel1) + .addComponent(jLabel2) + .addGroup(layout.createSequentialGroup() + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jRadioButton1) + .addComponent(jRadioButton2)) + .addGap(56, 56, 56) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) + .addGroup(layout.createSequentialGroup() + .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(6, 6, 6) + .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 102, Short.MAX_VALUE)) + .addGroup(layout.createSequentialGroup() + .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 107, Short.MAX_VALUE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))))) + .addContainerGap()) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addComponent(jLabel1) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jLabel2) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jRadioButton1) + .addComponent(jLabel3) + .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(jRadioButton2)) + .addGroup(layout.createSequentialGroup() + .addGap(27, 27, 27) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)))) + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + ); + + pack(); + }// //GEN-END:initComponents + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + KeywordSearchDialog dialog = new KeywordSearchDialog(new javax.swing.JFrame(), true); + dialog.addWindowListener(new java.awt.event.WindowAdapter() { + public void windowClosing(java.awt.event.WindowEvent e) { + System.exit(0); + } + }); + dialog.setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.ButtonGroup buttonGroup1; + private javax.swing.JButton jButton1; + private javax.swing.JButton jButton2; + private javax.swing.JLabel jLabel1; + private javax.swing.JLabel jLabel2; + private javax.swing.JLabel jLabel3; + private javax.swing.JRadioButton jRadioButton1; + private javax.swing.JRadioButton jRadioButton2; + private javax.swing.JTextField jTextField1; + private javax.swing.JTextField jTextField2; + // End of variables declaration//GEN-END:variables + +} diff --git a/src/twitter/gui/form/NishioTweetManager.form b/src/twitter/gui/form/NishioTweetManager.form index 956de6f..57abcef 100644 --- a/src/twitter/gui/form/NishioTweetManager.form +++ b/src/twitter/gui/form/NishioTweetManager.form @@ -34,6 +34,18 @@ + + + + + + + + + + + + diff --git a/src/twitter/gui/form/NishioTweetManager.java b/src/twitter/gui/form/NishioTweetManager.java index f001522..7f80ce3 100644 --- a/src/twitter/gui/form/NishioTweetManager.java +++ b/src/twitter/gui/form/NishioTweetManager.java @@ -181,6 +181,8 @@ public class NishioTweetManager extends javax.swing.JFrame { jMenuItem1 = new javax.swing.JMenuItem(); jMenu4 = new javax.swing.JMenu(); jMenuItem5 = new javax.swing.JMenuItem(); + jMenu5 = new javax.swing.JMenu(); + jMenuItem6 = new javax.swing.JMenuItem(); jMenu2 = new javax.swing.JMenu(); jMenuItem2 = new javax.swing.JMenuItem(); jMenuItem4 = new javax.swing.JMenuItem(); @@ -522,6 +524,13 @@ public class NishioTweetManager extends javax.swing.JFrame { jMenuBar1.add(jMenu4); + jMenu5.setText("検索"); + + jMenuItem6.setText("キーワードでTwitter全体を検索"); + jMenu5.add(jMenuItem6); + + jMenuBar1.add(jMenu5); + jMenu2.setText("設定"); jMenuItem2.setText("基本設定"); @@ -947,12 +956,14 @@ public class NishioTweetManager extends javax.swing.JFrame { private javax.swing.JMenu jMenu2; private javax.swing.JMenu jMenu3; private javax.swing.JMenu jMenu4; + private javax.swing.JMenu jMenu5; private javax.swing.JMenuBar jMenuBar1; private javax.swing.JMenuItem jMenuItem1; private javax.swing.JMenuItem jMenuItem2; private javax.swing.JMenuItem jMenuItem3; private javax.swing.JMenuItem jMenuItem4; private javax.swing.JMenuItem jMenuItem5; + private javax.swing.JMenuItem jMenuItem6; private javax.swing.JPanel jPanel1; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JScrollPane jScrollPane2; -- 2.11.0