*/
package yukihane.inqubus.gui;
-import static javax.swing.GroupLayout.DEFAULT_SIZE;
-import static javax.swing.GroupLayout.PREFERRED_SIZE;
-
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.util.List;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
import javax.swing.BorderFactory;
import javax.swing.ButtonGroup;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
+import static javax.swing.GroupLayout.DEFAULT_SIZE;
+import static javax.swing.GroupLayout.PREFERRED_SIZE;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.SpinnerNumberModel;
import javax.swing.WindowConstants;
import org.apache.commons.configuration.ConfigurationException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import yukihane.inqubus.config.Config;
import yukihane.inqubus.config.Config.CookieBrowser;
public ConfigDialog(JFrame owner){
super(owner);
+ setTitle("いんきゅばす 設定");
final JTabbedPane tabbedPane = new JTabbedPane();
final JPanel pnlNetwork = new JPanel();
final JLabel lblCommentMinSizeManual = new JLabel();
final JLabel lblCommentDisplayMax = new JLabel();
final JLabel lblCommentDisplayMaxManual = new JLabel();
+ final JLabel lblCommentOwnerOnly = new JLabel();
final JPanel pnlCommentAdvanced = new JPanel();
final JLabel lblFontPath = new JLabel();
cbFontSizeArrangeDisable = new JCheckBox();
lblCommentDisplayMaxManual.setText("手動設定");
+ lblCommentOwnerOnly.setText("取得するコメントの種類");
+
GroupLayout gl_pnlCommentStandard = new GroupLayout(pnlCommentStandard);
pnlCommentStandard.setLayout(gl_pnlCommentStandard);
gl_pnlCommentStandard.setAutoCreateContainerGaps(true);
.addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
.addComponent(lblCommentSize)
.addComponent(lblCommentMinSize)
- .addComponent(lblCommentDisplayMax))
- .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
- .addComponent(cbCommentSizeAuto)
- .addComponent(cbCommentMinDisable)
- .addComponent(cbCommentMinSizeAuto)
- .addComponent(cbCommentDisplaySizeDefault))
- .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
- .addComponent(lblCommentSizeManual)
- .addComponent(lblCommentMinSizeManual)
- .addComponent(lblCommentDisplayMaxManual))
+ .addComponent(lblCommentDisplayMax)
+ .addComponent(lblCommentOwnerOnly)
+ )
.addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
- .addComponent(fldCommentSizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(fldCommentMinSizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
- .addComponent(fldCommentDisplaySizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
+ .addGroup(gl_pnlCommentStandard.createSequentialGroup()
+ .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
+ .addComponent(cbCommentSizeAuto)
+ .addComponent(cbCommentMinDisable)
+ .addComponent(cbCommentMinSizeAuto)
+ .addComponent(cbCommentDisplaySizeDefault)
+ )
+ .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
+ .addComponent(lblCommentSizeManual)
+ .addComponent(lblCommentMinSizeManual)
+ .addComponent(lblCommentDisplayMaxManual))
+ .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
+ .addComponent(fldCommentSizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
+ .addComponent(fldCommentMinSizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
+ .addComponent(fldCommentDisplaySizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
+ )
+ .addGroup(gl_pnlCommentStandard.createSequentialGroup()
+ .addComponent(cbCommentOwnerOnly)
+ )
+ )
);
gl_pnlCommentStandard.setVerticalGroup(
gl_pnlCommentStandard.createSequentialGroup()
.addComponent(cbCommentDisplaySizeDefault)
.addComponent(lblCommentDisplayMaxManual)
.addComponent(fldCommentDisplaySizeManual))
+ .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.BASELINE)
+ .addComponent(lblCommentOwnerOnly)
+ .addComponent(cbCommentOwnerOnly)
+ )
);
pnlCommentAdvanced.setBorder(BorderFactory.createTitledBorder("高度な設定"));
private final NumberFormattedTextField fldCommentMinSizeManual = new NumberFormattedTextField();
private final JCheckBox cbCommentDisplaySizeDefault = new JCheckBox("標準(30)");
private final NumberFormattedTextField fldCommentDisplaySizeManual = new NumberFormattedTextField();
+ private final JCheckBox cbCommentOwnerOnly = new JCheckBox("投稿者コメントのみ");
// コメント - 高度な設定
private final JTextField fldFontPath;
private final JTextField fldFontIndex;