/** * 詳細コメント表示イベント * * @param e */ protected void changeAction(ActionEvent e) { if (underPanel.isVisible()) { underPanel.setVisible(false); } else { underPanel.setVisible(true); } }
protected void initComponent() { super.initComponent(); detailButton = new ACButton(); affairPanel = new ACPanel(); explanationLabel = new ACLabel(); underPanel = new ACPanel(); affairButton = new ACButton(); iconLabel = new ACLabel(); explanationLabel.setAutoWrap(true); setColor(Color.WHITE); underPanel.setVisible(false); affairPanel.setFollowChildEnabled(true); affairPanel.add(iconLabel, VRLayout.WEST); affairButton.setHorizontalAlignment(SwingConstants.LEFT); affairButton.setBorder(BorderFactory.createEmptyBorder()); affairPanel.add(affairButton, VRLayout.CLIENT); // affairPanel.add(detailButton, VRLayout.EAST); underPanel.add(explanationLabel, VRLayout.CLIENT); add(affairPanel, VRLayout.NORTH); add(underPanel, VRLayout.CLIENT); event(); }