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 Font font = tabLabel.getFont().deriveFont(18).deriveFont(Font.BOLD);
68 tabLabel.setFont(font);
71 setTabComponentAt(0, tabLabel);
73 this.addMouseListener(
new MouseAdapter() {
75 public void mouseClicked(MouseEvent evt) {
80 this.setTabPlacement(JTabbedPane.RIGHT);
88 void setTitle(String title) {
89 tabLabel.setText(title);
97 void setIcon(Icon icon) {
98 tabLabel.setIcon(icon);
106 void setPanel(JPanel panel) {
107 scrollPane.setViewportView(panel);
116 int index = indexAtLocation(point.x, point.y);
125 panelVisible =
false;
127 panel.add(scrollPane, BorderLayout.CENTER);
static final long serialVersionUID
final JScrollPane scrollPane
void handleMouseClick(Point point)