• R/O
  • HTTP
  • SSH
  • HTTPS

nt-manager: Commit

Nishio Tweet Managerのgit


Commit MetaInfo

Revision3bc81dca3cb404e7b7f7cf80b6c2b585952b7221 (tree)
Time2011-09-02 04:36:55
AuthorU-nishio-PC8\nishio <spark_xp@user...>
CommiterU-nishio-PC8\nishio

Log Message

ツイートテーブルの背景色を設定画面から変更できるように改良

Change Summary

Incremental Difference

--- a/src/twitter/gui/action/TweetMainAction.java
+++ b/src/twitter/gui/action/TweetMainAction.java
@@ -145,7 +145,11 @@ public class TweetMainAction implements ConnectionLifeCycleListener{
145145 // hashtag search dialog
146146 private HashtagSearchDialog hashtagSearchDialog = null;
147147 // 新しく取得した部分のテーブルカラー
148- private Color newTableColor = new Color(230,230,250);
148+ private Color newTableColor = new Color(230,230,255);
149+ // Tweet表示テーブルodd(奇数)の色
150+ private Color oddTableColor = new Color(243,243,250);
151+ // tweet表示テーブルevenの色
152+ private Color evenTableColor = new Color(255,255,255);
149153 // TLのフォント名
150154 private String tlFontName = "MS Pゴシック";
151155 // TLのフォントサイズ
@@ -1949,6 +1953,8 @@ public class TweetMainAction implements ConnectionLifeCycleListener{
19491953 String gsdmp = this.property.getProperty("getSendDirectMessagePeriod");
19501954
19511955 String ntrgb = this.property.getProperty("newTableColorRGB");
1956+ String odd = this.property.getProperty("oddTableColorRGB");
1957+ String even = this.property.getProperty("evenTableColorRGB");
19521958
19531959 this.tlFontName = this.property.getProperty("tlFontName");
19541960 this.detailFontName = this.property.getProperty("detailFontName");
@@ -1996,6 +2002,8 @@ public class TweetMainAction implements ConnectionLifeCycleListener{
19962002
19972003 try {
19982004 this.newTableColor = new Color(Integer.parseInt(ntrgb));
2005+ this.setEvenTableColor(new Color(Integer.parseInt(even)));
2006+ this.setOddTableColor(new Color(Integer.parseInt(odd)));
19992007 this.tlFontSize = Integer.parseInt(tfs);
20002008 this.detailFontSize = Integer.parseInt(dfs);
20012009 this.tableElementHeight = Integer.parseInt(teh);
@@ -2068,6 +2076,8 @@ public class TweetMainAction implements ConnectionLifeCycleListener{
20682076
20692077 this.property.setProperty("newTableColorRGB", newTableColor.getRGB()
20702078 + "");
2079+ this.property.setProperty("oddTableColorRGB", this.getOddTableColor().getRGB() + "");
2080+ this.property.setProperty("evenTableColorRGB", this.getEvenTableColor().getRGB() + "");
20712081 this.property.setProperty("tlFontName", this.tlFontName);
20722082 this.property.setProperty("tlFontSize", this.tlFontSize + "");
20732083 this.property.setProperty("detailFontName", this.detailFontName);
@@ -2482,4 +2492,35 @@ public class TweetMainAction implements ConnectionLifeCycleListener{
24822492 public void setFavNotify(boolean notify) {
24832493 this.favNotify = notify;
24842494 }
2495+
2496+ /**
2497+ * 偶数行テーブルの色取得
2498+ * @return
2499+ */
2500+ public Color getEvenTableColor() {
2501+ return evenTableColor;
2502+ }
2503+
2504+ /**
2505+ * 偶数行テーブルの色設定
2506+ */
2507+ public void setEvenTableColor(Color evenTableColor) {
2508+ this.evenTableColor = evenTableColor;
2509+ }
2510+
2511+ /**
2512+ * 奇数行テーブルの色取得
2513+ * @return
2514+ */
2515+ public Color getOddTableColor() {
2516+ return oddTableColor;
2517+ }
2518+
2519+ /**
2520+ * 奇数行テーブルの色設定
2521+ * @param oddTableColor
2522+ */
2523+ public void setOddTableColor(Color oddTableColor) {
2524+ this.oddTableColor = oddTableColor;
2525+ }
24852526 }
--- a/src/twitter/gui/component/TweetCommentRenderer.java
+++ b/src/twitter/gui/component/TweetCommentRenderer.java
@@ -61,9 +61,9 @@ public class TweetCommentRenderer extends JEditorPane implements
6161 //一行ずつTableの色を変更する
6262 //TODO: ここも後で色を変更できるようにする
6363 if( row % 2 == 0 ) {
64- setBackground(new Color(240,240,255));
64+ setBackground(this.mainAction.getEvenTableColor());
6565 }else {
66- setBackground(Color.white);
66+ setBackground(this.mainAction.getOddTableColor());
6767 }
6868
6969 // TODO: あとでここのカラーを変える
@@ -71,9 +71,9 @@ public class TweetCommentRenderer extends JEditorPane implements
7171 if( column >= 2 ) {
7272 if (this.newTableRow >= 0 && row < this.newTableRow) {
7373 setBackground(this.mainAction.getNewTableColor());
74- } else {
74+ }/* else {
7575 setBackground(Color.white);
76- }
76+ }*/
7777 }
7878
7979 // フォントを変更
--- a/src/twitter/gui/form/ConfigurationDialog.form
+++ b/src/twitter/gui/form/ConfigurationDialog.form
@@ -24,14 +24,14 @@
2424 <DimensionLayout dim="0">
2525 <Group type="103" groupAlignment="0" attributes="0">
2626 <Group type="102" alignment="1" attributes="0">
27- <EmptySpace pref="227" max="32767" attributes="0"/>
27+ <EmptySpace pref="230" max="32767" attributes="0"/>
2828 <Component id="jButton1" min="-2" pref="114" max="-2" attributes="0"/>
2929 <EmptySpace max="-2" attributes="0"/>
3030 <Component id="jButton2" min="-2" pref="116" max="-2" attributes="0"/>
3131 <EmptySpace min="-2" pref="8" max="-2" attributes="0"/>
3232 </Group>
3333 <Group type="102" alignment="0" attributes="0">
34- <Component id="jTabbedPane1" pref="460" max="32767" attributes="0"/>
34+ <Component id="jTabbedPane1" pref="463" max="32767" attributes="0"/>
3535 <EmptySpace max="-2" attributes="0"/>
3636 </Group>
3737 </Group>
@@ -84,13 +84,13 @@
8484 </Group>
8585 <EmptySpace min="-2" pref="24" max="-2" attributes="0"/>
8686 <Group type="103" groupAlignment="0" attributes="0">
87- <Component id="jSpinner4" alignment="0" pref="204" max="32767" attributes="0"/>
88- <Component id="jSpinner3" alignment="0" pref="204" max="32767" attributes="0"/>
89- <Component id="jSpinner2" alignment="0" pref="204" max="32767" attributes="0"/>
90- <Component id="jSpinner1" alignment="0" pref="204" max="32767" attributes="0"/>
87+ <Component id="jSpinner4" alignment="0" pref="207" max="32767" attributes="0"/>
88+ <Component id="jSpinner3" alignment="0" pref="207" max="32767" attributes="0"/>
89+ <Component id="jSpinner2" alignment="0" pref="207" max="32767" attributes="0"/>
90+ <Component id="jSpinner1" alignment="0" pref="207" max="32767" attributes="0"/>
9191 </Group>
9292 </Group>
93- <Component id="jLabel13" alignment="0" pref="431" max="32767" attributes="0"/>
93+ <Component id="jLabel13" alignment="0" pref="434" max="32767" attributes="0"/>
9494 </Group>
9595 <EmptySpace max="-2" attributes="0"/>
9696 </Group>
@@ -297,11 +297,31 @@
297297 <DimensionLayout dim="0">
298298 <Group type="103" groupAlignment="0" attributes="0">
299299 <Group type="102" alignment="0" attributes="0">
300- <EmptySpace max="-2" attributes="0"/>
301- <Component id="jLabel9" min="-2" max="-2" attributes="0"/>
302- <EmptySpace max="-2" attributes="0"/>
303- <Component id="jPanel5" max="32767" attributes="0"/>
304- <EmptySpace max="-2" attributes="0"/>
300+ <EmptySpace min="-2" max="-2" attributes="0"/>
301+ <Group type="103" groupAlignment="0" attributes="0">
302+ <Component id="jLabel16" alignment="0" min="-2" max="-2" attributes="0"/>
303+ <Group type="102" attributes="0">
304+ <Component id="jLabel9" min="-2" max="-2" attributes="0"/>
305+ <EmptySpace min="-2" pref="31" max="-2" attributes="0"/>
306+ <Component id="jPanel5" max="32767" attributes="0"/>
307+ </Group>
308+ <Component id="jLabel17" alignment="0" min="-2" max="-2" attributes="0"/>
309+ </Group>
310+ <EmptySpace min="-2" max="-2" attributes="0"/>
311+ </Group>
312+ <Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
313+ <Group type="102" alignment="1" attributes="0">
314+ <EmptySpace min="-2" pref="137" max="-2" attributes="0"/>
315+ <Component id="jPanel6" max="32767" attributes="0"/>
316+ <EmptySpace min="-2" max="-2" attributes="0"/>
317+ </Group>
318+ </Group>
319+ <Group type="103" rootIndex="2" groupAlignment="0" attributes="0">
320+ <Group type="102" alignment="1" attributes="0">
321+ <EmptySpace min="-2" pref="137" max="-2" attributes="0"/>
322+ <Component id="jPanel7" max="32767" attributes="0"/>
323+ <EmptySpace min="-2" max="-2" attributes="0"/>
324+ </Group>
305325 </Group>
306326 </Group>
307327 </DimensionLayout>
@@ -309,11 +329,29 @@
309329 <Group type="103" groupAlignment="0" attributes="0">
310330 <Group type="102" alignment="0" attributes="0">
311331 <EmptySpace max="-2" attributes="0"/>
312- <Group type="103" groupAlignment="0" max="-2" attributes="0">
313- <Component id="jLabel9" alignment="1" max="32767" attributes="1"/>
314- <Component id="jPanel5" alignment="1" max="32767" attributes="1"/>
332+ <Group type="103" groupAlignment="0" attributes="0">
333+ <Component id="jLabel9" pref="35" max="32767" attributes="1"/>
334+ <Component id="jPanel5" linkSize="2" alignment="0" max="32767" attributes="1"/>
335+ </Group>
336+ <EmptySpace max="-2" attributes="0"/>
337+ <Component id="jLabel17" pref="27" max="32767" attributes="1"/>
338+ <EmptySpace min="-2" pref="9" max="-2" attributes="0"/>
339+ <Component id="jLabel16" min="-2" pref="25" max="-2" attributes="1"/>
340+ <EmptySpace min="-2" pref="202" max="-2" attributes="0"/>
341+ </Group>
342+ <Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
343+ <Group type="102" alignment="0" attributes="0">
344+ <EmptySpace min="-2" pref="46" max="-2" attributes="0"/>
345+ <Component id="jPanel6" linkSize="2" min="-2" max="-2" attributes="1"/>
346+ <EmptySpace pref="233" max="32767" attributes="0"/>
347+ </Group>
348+ </Group>
349+ <Group type="103" rootIndex="2" groupAlignment="0" attributes="0">
350+ <Group type="102" alignment="0" attributes="0">
351+ <EmptySpace min="-2" pref="83" max="-2" attributes="0"/>
352+ <Component id="jPanel7" linkSize="2" min="-2" max="-2" attributes="1"/>
353+ <EmptySpace pref="196" max="32767" attributes="0"/>
315354 </Group>
316- <EmptySpace pref="274" max="32767" attributes="0"/>
317355 </Group>
318356 </Group>
319357 </DimensionLayout>
@@ -336,12 +374,12 @@
336374 <Layout>
337375 <DimensionLayout dim="0">
338376 <Group type="103" groupAlignment="0" attributes="0">
339- <Component id="jLabel10" alignment="0" pref="328" max="32767" attributes="0"/>
377+ <Component id="jLabel10" alignment="0" pref="305" max="32767" attributes="0"/>
340378 </Group>
341379 </DimensionLayout>
342380 <DimensionLayout dim="1">
343381 <Group type="103" groupAlignment="0" attributes="0">
344- <Component id="jLabel10" alignment="0" pref="26" max="32767" attributes="0"/>
382+ <Component id="jLabel10" alignment="0" pref="31" max="32767" attributes="0"/>
345383 </Group>
346384 </DimensionLayout>
347385 </Layout>
@@ -359,6 +397,86 @@
359397 </Component>
360398 </SubComponents>
361399 </Container>
400+ <Container class="javax.swing.JPanel" name="jPanel6">
401+ <Properties>
402+ <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
403+ <Border info="org.netbeans.modules.form.compat2.border.EtchedBorderInfo">
404+ <EtchetBorder/>
405+ </Border>
406+ </Property>
407+ </Properties>
408+
409+ <Layout>
410+ <DimensionLayout dim="0">
411+ <Group type="103" groupAlignment="0" attributes="0">
412+ <Component id="jLabel14" alignment="1" pref="305" max="32767" attributes="0"/>
413+ </Group>
414+ </DimensionLayout>
415+ <DimensionLayout dim="1">
416+ <Group type="103" groupAlignment="0" attributes="0">
417+ <Component id="jLabel14" alignment="0" pref="31" max="32767" attributes="0"/>
418+ </Group>
419+ </DimensionLayout>
420+ </Layout>
421+ <SubComponents>
422+ <Component class="javax.swing.JLabel" name="jLabel14">
423+ <Properties>
424+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
425+ <Color blue="0" green="0" id="black" palette="1" red="0" type="palette"/>
426+ </Property>
427+ <Property name="opaque" type="boolean" value="true"/>
428+ </Properties>
429+ <Events>
430+ <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel14MouseClicked"/>
431+ </Events>
432+ </Component>
433+ </SubComponents>
434+ </Container>
435+ <Container class="javax.swing.JPanel" name="jPanel7">
436+ <Properties>
437+ <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
438+ <Border info="org.netbeans.modules.form.compat2.border.EtchedBorderInfo">
439+ <EtchetBorder/>
440+ </Border>
441+ </Property>
442+ </Properties>
443+
444+ <Layout>
445+ <DimensionLayout dim="0">
446+ <Group type="103" groupAlignment="0" attributes="0">
447+ <Component id="jLabel15" alignment="1" pref="305" max="32767" attributes="0"/>
448+ </Group>
449+ </DimensionLayout>
450+ <DimensionLayout dim="1">
451+ <Group type="103" groupAlignment="0" attributes="0">
452+ <Component id="jLabel15" alignment="0" pref="31" max="32767" attributes="0"/>
453+ </Group>
454+ </DimensionLayout>
455+ </Layout>
456+ <SubComponents>
457+ <Component class="javax.swing.JLabel" name="jLabel15">
458+ <Properties>
459+ <Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
460+ <Color blue="0" green="0" id="black" palette="1" red="0" type="palette"/>
461+ </Property>
462+ <Property name="opaque" type="boolean" value="true"/>
463+ </Properties>
464+ <Events>
465+ <EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jLabel15MouseClicked"/>
466+ </Events>
467+ </Component>
468+ </SubComponents>
469+ </Container>
470+ <Component class="javax.swing.JLabel" name="jLabel16">
471+ <Properties>
472+ <Property name="text" type="java.lang.String" value="&#x30c6;&#x30fc;&#x30d6;&#x30eb;&#x306e;&#x5076;&#x6570;&#x884c;&#x306e;&#x8272;"/>
473+ </Properties>
474+ </Component>
475+ <Component class="javax.swing.JLabel" name="jLabel17">
476+ <Properties>
477+ <Property name="text" type="java.lang.String" value="&#x30c6;&#x30fc;&#x30d6;&#x30eb;&#x306e;&#x5947;&#x6570;&#x884c;&#x306e;&#x8272;"/>
478+ </Properties>
479+ </Component>
362480 </SubComponents>
363481 </Container>
364482 <Container class="javax.swing.JPanel" name="jPanel4">
@@ -376,9 +494,9 @@
376494 <Group type="102" alignment="0" attributes="0">
377495 <EmptySpace max="-2" attributes="0"/>
378496 <Group type="103" groupAlignment="0" attributes="0">
379- <Component id="jCheckBox3" alignment="0" pref="431" max="32767" attributes="0"/>
380- <Component id="jCheckBox1" alignment="0" pref="431" max="32767" attributes="0"/>
381- <Component id="jCheckBox2" alignment="0" pref="431" max="32767" attributes="0"/>
497+ <Component id="jCheckBox3" alignment="0" pref="434" max="32767" attributes="0"/>
498+ <Component id="jCheckBox1" alignment="0" pref="434" max="32767" attributes="0"/>
499+ <Component id="jCheckBox2" alignment="0" pref="434" max="32767" attributes="0"/>
382500 <Group type="102" alignment="0" attributes="0">
383501 <Group type="103" groupAlignment="0" attributes="0">
384502 <Component id="jLabel12" min="-2" max="-2" attributes="0"/>
@@ -386,11 +504,11 @@
386504 </Group>
387505 <EmptySpace max="-2" attributes="0"/>
388506 <Group type="103" groupAlignment="0" attributes="0">
389- <Component id="jSpinner5" alignment="0" pref="290" max="32767" attributes="0"/>
390- <Component id="jSpinner6" alignment="0" pref="290" max="32767" attributes="0"/>
507+ <Component id="jSpinner5" alignment="0" pref="293" max="32767" attributes="0"/>
508+ <Component id="jSpinner6" alignment="0" pref="293" max="32767" attributes="0"/>
391509 </Group>
392510 </Group>
393- <Component id="jCheckBox4" alignment="0" pref="431" max="32767" attributes="0"/>
511+ <Component id="jCheckBox4" alignment="0" pref="434" max="32767" attributes="0"/>
394512 </Group>
395513 <EmptySpace max="-2" attributes="0"/>
396514 </Group>
--- a/src/twitter/gui/form/ConfigurationDialog.java
+++ b/src/twitter/gui/form/ConfigurationDialog.java
@@ -73,6 +73,8 @@ public class ConfigurationDialog extends javax.swing.JDialog {
7373 jSpinner4.setValue( mainAction.getGetSendDirectMessagePeriod() );
7474
7575 jLabel10.setBackground(mainAction.getNewTableColor());
76+ jLabel14.setBackground(mainAction.getOddTableColor());
77+ jLabel15.setBackground(mainAction.getEvenTableColor());
7678
7779 // font関係
7880 if (mainAction.getTlFontName() != null) {
@@ -142,6 +144,12 @@ public class ConfigurationDialog extends javax.swing.JDialog {
142144 jLabel9 = new javax.swing.JLabel();
143145 jPanel5 = new javax.swing.JPanel();
144146 jLabel10 = new javax.swing.JLabel();
147+ jPanel6 = new javax.swing.JPanel();
148+ jLabel14 = new javax.swing.JLabel();
149+ jPanel7 = new javax.swing.JPanel();
150+ jLabel15 = new javax.swing.JLabel();
151+ jLabel16 = new javax.swing.JLabel();
152+ jLabel17 = new javax.swing.JLabel();
145153 jPanel4 = new javax.swing.JPanel();
146154 jLabel11 = new javax.swing.JLabel();
147155 jSpinner5 = new javax.swing.JSpinner();
@@ -208,11 +216,11 @@ public class ConfigurationDialog extends javax.swing.JDialog {
208216 .addComponent(jLabel4))
209217 .addGap(24, 24, 24)
210218 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
211- .addComponent(jSpinner4, javax.swing.GroupLayout.DEFAULT_SIZE, 204, Short.MAX_VALUE)
212- .addComponent(jSpinner3, javax.swing.GroupLayout.DEFAULT_SIZE, 204, Short.MAX_VALUE)
213- .addComponent(jSpinner2, javax.swing.GroupLayout.DEFAULT_SIZE, 204, Short.MAX_VALUE)
214- .addComponent(jSpinner1, javax.swing.GroupLayout.DEFAULT_SIZE, 204, Short.MAX_VALUE)))
215- .addComponent(jLabel13, javax.swing.GroupLayout.DEFAULT_SIZE, 431, Short.MAX_VALUE))
219+ .addComponent(jSpinner4, javax.swing.GroupLayout.DEFAULT_SIZE, 207, Short.MAX_VALUE)
220+ .addComponent(jSpinner3, javax.swing.GroupLayout.DEFAULT_SIZE, 207, Short.MAX_VALUE)
221+ .addComponent(jSpinner2, javax.swing.GroupLayout.DEFAULT_SIZE, 207, Short.MAX_VALUE)
222+ .addComponent(jSpinner1, javax.swing.GroupLayout.DEFAULT_SIZE, 207, Short.MAX_VALUE)))
223+ .addComponent(jLabel13, javax.swing.GroupLayout.DEFAULT_SIZE, 434, Short.MAX_VALUE))
216224 .addContainerGap())
217225 );
218226 jPanel1Layout.setVerticalGroup(
@@ -316,34 +324,110 @@ public class ConfigurationDialog extends javax.swing.JDialog {
316324 jPanel5.setLayout(jPanel5Layout);
317325 jPanel5Layout.setHorizontalGroup(
318326 jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
319- .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, 328, Short.MAX_VALUE)
327+ .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, 305, Short.MAX_VALUE)
320328 );
321329 jPanel5Layout.setVerticalGroup(
322330 jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
323- .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, 26, Short.MAX_VALUE)
331+ .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, 31, Short.MAX_VALUE)
324332 );
325333
334+ jPanel6.setBorder(javax.swing.BorderFactory.createEtchedBorder());
335+
336+ jLabel14.setBackground(java.awt.Color.black);
337+ jLabel14.setOpaque(true);
338+ jLabel14.addMouseListener(new java.awt.event.MouseAdapter() {
339+ public void mouseClicked(java.awt.event.MouseEvent evt) {
340+ jLabel14MouseClicked(evt);
341+ }
342+ });
343+
344+ javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
345+ jPanel6.setLayout(jPanel6Layout);
346+ jPanel6Layout.setHorizontalGroup(
347+ jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
348+ .addComponent(jLabel14, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 305, Short.MAX_VALUE)
349+ );
350+ jPanel6Layout.setVerticalGroup(
351+ jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
352+ .addComponent(jLabel14, javax.swing.GroupLayout.DEFAULT_SIZE, 31, Short.MAX_VALUE)
353+ );
354+
355+ jPanel7.setBorder(javax.swing.BorderFactory.createEtchedBorder());
356+
357+ jLabel15.setBackground(java.awt.Color.black);
358+ jLabel15.setOpaque(true);
359+ jLabel15.addMouseListener(new java.awt.event.MouseAdapter() {
360+ public void mouseClicked(java.awt.event.MouseEvent evt) {
361+ jLabel15MouseClicked(evt);
362+ }
363+ });
364+
365+ javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
366+ jPanel7.setLayout(jPanel7Layout);
367+ jPanel7Layout.setHorizontalGroup(
368+ jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
369+ .addComponent(jLabel15, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 305, Short.MAX_VALUE)
370+ );
371+ jPanel7Layout.setVerticalGroup(
372+ jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
373+ .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, 31, Short.MAX_VALUE)
374+ );
375+
376+ jLabel16.setText("テーブルの偶数行の色");
377+
378+ jLabel17.setText("テーブルの奇数行の色");
379+
326380 javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
327381 jPanel3.setLayout(jPanel3Layout);
328382 jPanel3Layout.setHorizontalGroup(
329383 jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
330384 .addGroup(jPanel3Layout.createSequentialGroup()
331385 .addContainerGap()
332- .addComponent(jLabel9)
333- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
334- .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
386+ .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
387+ .addComponent(jLabel16)
388+ .addGroup(jPanel3Layout.createSequentialGroup()
389+ .addComponent(jLabel9)
390+ .addGap(31, 31, 31)
391+ .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
392+ .addComponent(jLabel17))
335393 .addContainerGap())
394+ .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
395+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
396+ .addGap(137, 137, 137)
397+ .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
398+ .addContainerGap()))
399+ .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
400+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
401+ .addGap(137, 137, 137)
402+ .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
403+ .addContainerGap()))
336404 );
337405 jPanel3Layout.setVerticalGroup(
338406 jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
339407 .addGroup(jPanel3Layout.createSequentialGroup()
340408 .addContainerGap()
341- .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
342- .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
343- .addComponent(jPanel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
344- .addContainerGap(274, Short.MAX_VALUE))
409+ .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
410+ .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)
411+ .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
412+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
413+ .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, 27, Short.MAX_VALUE)
414+ .addGap(9, 9, 9)
415+ .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
416+ .addGap(202, 202, 202))
417+ .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
418+ .addGroup(jPanel3Layout.createSequentialGroup()
419+ .addGap(46, 46, 46)
420+ .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
421+ .addContainerGap(233, Short.MAX_VALUE)))
422+ .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
423+ .addGroup(jPanel3Layout.createSequentialGroup()
424+ .addGap(83, 83, 83)
425+ .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
426+ .addContainerGap(196, Short.MAX_VALUE)))
345427 );
346428
429+ jPanel3Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jPanel5, jPanel6, jPanel7});
430+
347431 jTabbedPane1.addTab("カラー", jPanel3);
348432
349433 jLabel11.setText("タイムラインのテーブルの高さ");
@@ -384,18 +468,18 @@ public class ConfigurationDialog extends javax.swing.JDialog {
384468 .addGroup(jPanel4Layout.createSequentialGroup()
385469 .addContainerGap()
386470 .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
387- .addComponent(jCheckBox3, javax.swing.GroupLayout.DEFAULT_SIZE, 431, Short.MAX_VALUE)
388- .addComponent(jCheckBox1, javax.swing.GroupLayout.DEFAULT_SIZE, 431, Short.MAX_VALUE)
389- .addComponent(jCheckBox2, javax.swing.GroupLayout.DEFAULT_SIZE, 431, Short.MAX_VALUE)
471+ .addComponent(jCheckBox3, javax.swing.GroupLayout.DEFAULT_SIZE, 434, Short.MAX_VALUE)
472+ .addComponent(jCheckBox1, javax.swing.GroupLayout.DEFAULT_SIZE, 434, Short.MAX_VALUE)
473+ .addComponent(jCheckBox2, javax.swing.GroupLayout.DEFAULT_SIZE, 434, Short.MAX_VALUE)
390474 .addGroup(jPanel4Layout.createSequentialGroup()
391475 .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
392476 .addComponent(jLabel12)
393477 .addComponent(jLabel11))
394478 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
395479 .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
396- .addComponent(jSpinner5, javax.swing.GroupLayout.DEFAULT_SIZE, 290, Short.MAX_VALUE)
397- .addComponent(jSpinner6, javax.swing.GroupLayout.DEFAULT_SIZE, 290, Short.MAX_VALUE)))
398- .addComponent(jCheckBox4, javax.swing.GroupLayout.DEFAULT_SIZE, 431, Short.MAX_VALUE))
480+ .addComponent(jSpinner5, javax.swing.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE)
481+ .addComponent(jSpinner6, javax.swing.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE)))
482+ .addComponent(jCheckBox4, javax.swing.GroupLayout.DEFAULT_SIZE, 434, Short.MAX_VALUE))
399483 .addContainerGap())
400484 );
401485 jPanel4Layout.setVerticalGroup(
@@ -441,13 +525,13 @@ public class ConfigurationDialog extends javax.swing.JDialog {
441525 layout.setHorizontalGroup(
442526 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
443527 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
444- .addContainerGap(227, Short.MAX_VALUE)
528+ .addContainerGap(230, Short.MAX_VALUE)
445529 .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
446530 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
447531 .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)
448532 .addGap(8, 8, 8))
449533 .addGroup(layout.createSequentialGroup()
450- .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 460, Short.MAX_VALUE)
534+ .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 463, Short.MAX_VALUE)
451535 .addContainerGap())
452536 );
453537 layout.setVerticalGroup(
@@ -498,6 +582,8 @@ public class ConfigurationDialog extends javax.swing.JDialog {
498582 mainAction.setGetSendDirectMessagePeriod(Integer.parseInt(jSpinner4.getValue().toString()));
499583
500584 mainAction.setNewTableColor(jLabel10.getBackground());
585+ mainAction.setOddTableColor(jLabel14.getBackground());
586+ mainAction.setEvenTableColor(jLabel15.getBackground());
501587
502588 // フォント情報
503589 mainAction.setTlFontName((String) jComboBox1.getSelectedItem());
@@ -591,6 +677,22 @@ private void jSpinner6StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIR
591677 // TODO add your handling code here:
592678 }//GEN-LAST:event_jSpinner6StateChanged
593679
680+private void jLabel14MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel14MouseClicked
681+ Color c = JColorChooser.showDialog(this, "テーブルカラーの選択",
682+ mainAction.getOddTableColor());
683+ if (c != null) {
684+ jLabel14.setBackground(c);
685+ }
686+}//GEN-LAST:event_jLabel14MouseClicked
687+
688+private void jLabel15MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel15MouseClicked
689+ Color c = JColorChooser.showDialog(this, "テーブルカラーの選択",
690+ mainAction.getEvenTableColor());
691+ if (c != null) {
692+ jLabel15.setBackground(c);
693+ }
694+}//GEN-LAST:event_jLabel15MouseClicked
695+
594696 //twitter
595697 private TweetMainAction mainAction;
596698 // 利用可能なフォント一覧
@@ -621,6 +723,10 @@ private void jSpinner6StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIR
621723 private javax.swing.JLabel jLabel11;
622724 private javax.swing.JLabel jLabel12;
623725 private javax.swing.JLabel jLabel13;
726+ private javax.swing.JLabel jLabel14;
727+ private javax.swing.JLabel jLabel15;
728+ private javax.swing.JLabel jLabel16;
729+ private javax.swing.JLabel jLabel17;
624730 private javax.swing.JLabel jLabel2;
625731 private javax.swing.JLabel jLabel3;
626732 private javax.swing.JLabel jLabel4;
@@ -634,6 +740,8 @@ private void jSpinner6StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIR
634740 private javax.swing.JPanel jPanel3;
635741 private javax.swing.JPanel jPanel4;
636742 private javax.swing.JPanel jPanel5;
743+ private javax.swing.JPanel jPanel6;
744+ private javax.swing.JPanel jPanel7;
637745 private javax.swing.JSpinner jSpinner1;
638746 private javax.swing.JSpinner jSpinner2;
639747 private javax.swing.JSpinner jSpinner3;
Show on old repository browser