mapInstall.setVisible(false);
mapInstall.addActionListener(new ActionListener() {
@Override
public void actionPerformed (ActionEvent arg0) {
if (mapsPane.mapPanels.size() > 0 && getSelectedMapIndex() >= 0) {
MapManager man = new MapManager(new JFrame(), true);
man.setVisible(true);
MapManager.cleanUp();
}
}
});
mapInstallLocation = new JComboBox();
mapInstallLocation.setBounds(480, 20, 160, 30);
mapInstallLocation.setToolTipText("Install to...");
mapInstallLocation.setVisible(false);
serverMap.setBounds(480, 20, 330, 30);
serverMap.setText(I18N.getLocaleString("DOWNLOAD_MAP_SERVER"));
serverMap.setVisible(false);
serverMap.addActionListener(new ActionListener() {
@Override
public void actionPerformed (ActionEvent event) {
if (mapsPane.mapPanels.size() > 0 && getSelectedMapIndex() >= 0) {
OSUtils.browse(DownloadUtils.getCreeperhostLink("maps/" + Map.getMap(LaunchFrame.getSelectedMapIndex()).getMapName() + "/"
+ Map.getMap(LaunchFrame.getSelectedMapIndex()).getVersion() + "/" + Map.getMap(LaunchFrame.getSelectedMapIndex()).getUrl()));
}
}
});
tpInstall.setBounds(650, 20, 160, 30);
tpInstall.setText(I18N.getLocaleString("INSTALL_TEXTUREPACK"));
tpInstall.setVisible(false);
tpInstall.addActionListener(new ActionListener() {
@Override
public void actionPerformed (ActionEvent arg0) {
if (tpPane.texturePackPanels.size() > 0 && getSelectedTexturePackIndex() >= 0) {
TextureManager man = new TextureManager(new JFrame(), true);
man.setVisible(true);
}
}
});
tpInstallLocation = new JComboBox();