19 package org.sleuthkit.autopsy.communications.relationships;
21 import java.awt.Component;
22 import javax.swing.JPanel;
23 import org.openide.util.Lookup;
44 MediaViewer mediaViewer =
new MediaViewer();
45 CallLogViewer callLogViewer =
new CallLogViewer();
51 tabPane.add(callLogViewer.getDisplayName(), callLogViewer);
53 tabPane.add(mediaViewer.getDisplayName(), mediaViewer);
63 currentSelection = info;
72 @SuppressWarnings(
"unchecked")
75 java.awt.GridBagConstraints gridBagConstraints;
77 tabPane =
new javax.swing.JTabbedPane();
79 setLayout(
new java.awt.GridBagLayout());
81 tabPane.addChangeListener(
new javax.swing.event.ChangeListener() {
82 public void stateChanged(javax.swing.event.ChangeEvent evt) {
86 gridBagConstraints =
new java.awt.GridBagConstraints();
87 gridBagConstraints.gridx = 0;
88 gridBagConstraints.gridy = 0;
89 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
90 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
91 gridBagConstraints.weightx = 1.0;
92 gridBagConstraints.weighty = 1.0;
93 add(
tabPane, gridBagConstraints);
97 if(currentSelection != null) {
101 Component selectedComponent =
tabPane.getSelectedComponent();
102 if(selectedComponent instanceof Lookup.Provider) {
103 Lookup lookup = ((Lookup.Provider)selectedComponent).getLookup();
void setSelectionInfo(SelectionInfo info)
void tabPaneStateChanged(javax.swing.event.ChangeEvent evt)
SelectionInfo currentSelection
final ModifiableProxyLookup proxyLookup
javax.swing.JTabbedPane tabPane
void setNewLookups(final Lookup...lookups)