19 package org.sleuthkit.autopsy.geolocation;
21 import java.awt.BorderLayout;
23 import java.awt.Point;
24 import java.awt.event.MouseAdapter;
25 import java.awt.event.MouseEvent;
26 import javax.swing.Icon;
27 import javax.swing.JLabel;
28 import javax.swing.JPanel;
29 import javax.swing.JScrollPane;
30 import javax.swing.JTabbedPane;
31 import org.openide.util.NbBundle.Messages;
54 "HidingPane_default_title=Filters"
59 scrollPane =
new JScrollPane();
61 panel.setLayout(
new BorderLayout());
62 panel.add(scrollPane, BorderLayout.CENTER);
63 tabLabel =
new JLabel(Bundle.HidingPane_default_title());
64 tabLabel.setIcon(
new javax.swing.ImageIcon(getClass().getResource(
"/org/sleuthkit/autopsy/images/funnel.png")));
65 tabLabel.setUI(
new VerticalLabelUI(
true));
66 tabLabel.setOpaque(
false);
67 tabLabel.setFont(tabLabel.getFont().deriveFont(Font.BOLD, tabLabel.getFont().getSize()+7));
70 setTabComponentAt(0, tabLabel);
72 this.addMouseListener(
new MouseAdapter() {
74 public void mouseClicked(MouseEvent evt) {
79 this.setTabPlacement(JTabbedPane.RIGHT);
87 void setTitle(String title) {
88 tabLabel.setText(title);
96 void setIcon(Icon icon) {
97 tabLabel.setIcon(icon);
105 void setPanel(JPanel panel) {
106 scrollPane.setViewportView(panel);
115 int index = indexAtLocation(point.x, point.y);
124 panelVisible =
false;
126 panel.add(scrollPane, BorderLayout.CENTER);
static final long serialVersionUID
final JScrollPane scrollPane
void handleMouseClick(Point point)