private Map<Component, PanelInTab> initialized = new HashMap<>();
LazyTabInitializer() {
lazyInitializers.put(convertPanel, new Runnable() {
public void run() {
PanelInTab panel = new ConvertPanel();
convertPanel.add(panel.getRootComponent());
initialized.put(convertPanel, panel);
}
});
lazyInitializers.put(browsePanel, new Runnable() {
public void run() {
PanelInTab panel = new BrowsePanel();
browsePanel.add(panel.getRootComponent());
initialized.put(browsePanel, panel);
}
});
}