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;