use of javax.swing.ImageIcon in project binnavi by google.
the class CWindowFunctions method showAboutDialog.
/**
* Shows the BinNavi About dialog.
*
* @param parent Parent window used for dialogs.
*/
public static void showAboutDialog(final JFrame parent) {
try {
final List<Pair<String, URL>> urls = new ArrayList<>();
urls.add(new Pair<>("zynamics Website", new URL("http://www.zynamics.com")));
urls.add(new Pair<>("BinNavi Product Site", new URL("http://www.zynamics.com/binnavi.html")));
urls.add(new Pair<>("Report Bugs", new URL("mailto:zynamics-support@google.com")));
final String message = Constants.PROJECT_NAME_VERSION_BUILD + "\n\nCopyright ©2004-2011 zynamics GmbH.\nCopyright ©2011-2016 Google Inc.\n";
final String description = "\nParts of this software were created by third parties and have different licensing " + "requirements.\nPlease see the manual file for a complete list.\n";
final Image appImage = new ImageIcon(CMain.class.getResource("data/binnavi_logo3_border.png")).getImage();
final CDialogAboutEx dlg = new CDialogAboutEx(parent, new ImageIcon(appImage), Constants.PROJECT_NAME_VERSION, message, description, urls);
GuiHelper.centerOnScreen(dlg);
dlg.setVisible(true);
} catch (final Exception e) {
CUtilityFunctions.logException(e);
}
}
use of javax.swing.ImageIcon in project android-classyshark by google.
the class Toolbar method buildLeftPanelToggleButton.
private JToggleButton buildLeftPanelToggleButton() {
final ImageIcon toggleIcon = theme.getToggleIcon();
final JToggleButton jToggleButton = new JToggleButton(toggleIcon, true);
jToggleButton.setToolTipText("Show/hide navigation tree");
jToggleButton.setBorderPainted(false);
jToggleButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
toolbarController.onChangeLeftPaneVisibility(jToggleButton.isSelected());
}
});
return jToggleButton;
}
use of javax.swing.ImageIcon in project gephi by gephi.
the class ShortestPath method getUI.
@Override
public ToolUI getUI() {
return new ToolUI() {
@Override
public JPanel getPropertiesBar(Tool tool) {
shortestPathPanel = new ShortestPathPanel();
shortestPathPanel.setColor(color);
shortestPathPanel.setStatus(NbBundle.getMessage(ShortestPath.class, "ShortestPath.status1"));
return shortestPathPanel;
}
@Override
public String getName() {
return NbBundle.getMessage(ShortestPath.class, "ShortestPath.name");
}
@Override
public Icon getIcon() {
return new ImageIcon(getClass().getResource("/org/gephi/tools/plugin/resources/shortestpath.png"));
}
@Override
public String getDescription() {
return NbBundle.getMessage(ShortestPath.class, "ShortestPath.description");
}
@Override
public int getPosition() {
return 140;
}
};
}
use of javax.swing.ImageIcon in project gephi by gephi.
the class Brush method getUI.
@Override
public ToolUI getUI() {
return new ToolUI() {
@Override
public JPanel getPropertiesBar(Tool tool) {
brushPanel = new BrushPanel();
brushPanel.setDiffusionMethod(diffusionMethod);
brushPanel.setColor(new Color(color[0], color[1], color[2]));
brushPanel.setIntensity(intensity);
return brushPanel;
}
@Override
public String getName() {
return NbBundle.getMessage(Brush.class, "Brush.name");
}
@Override
public Icon getIcon() {
return new ImageIcon(getClass().getResource("/org/gephi/tools/plugin/resources/brush.png"));
}
@Override
public String getDescription() {
return NbBundle.getMessage(Painter.class, "Brush.description");
}
@Override
public int getPosition() {
return 110;
}
};
}
use of javax.swing.ImageIcon in project gephi by gephi.
the class CloseButton method init.
private void init() {
if (UIUtils.isGTKLookAndFeel()) {
setIcon(new ImageIcon(getClass().getResource("/org/gephi/ui/components/resources/gtk_bigclose_enabled.png")));
setRolloverIcon(new ImageIcon(getClass().getResource("/org/gephi/ui/components/resources/gtk_bigclose_rollover.png")));
setPressedIcon(new ImageIcon(getClass().getResource("/org/gephi/ui/components/resources/gtk_bigclose_pressed.png")));
} else if (UIUtils.isWindowsClassicLookAndFeel()) {
setIcon(new ImageIcon(getClass().getResource("/org/gephi/ui/components/resources/win_bigclose_enabled.png")));
setRolloverIcon(new ImageIcon(getClass().getResource("/org/gephi/ui/components/resources/win_bigclose_rollover.png")));
setPressedIcon(new ImageIcon(getClass().getResource("/org/gephi/ui/components/resources/win_bigclose_pressed.png")));
} else if (UIUtils.isWindowsXPLookAndFeel()) {
setIcon(new ImageIcon(getClass().getResource("/org/gephi/ui/components/resources/xp_bigclose_enabled.png")));
setRolloverIcon(new ImageIcon(getClass().getResource("/org/gephi/ui/components/resources/xp_bigclose_rollover.png")));
setPressedIcon(new ImageIcon(getClass().getResource("/org/gephi/ui/components/resources/xp_bigclose_pressed.png")));
} else if (UIUtils.isWindowsVistaLookAndFeel()) {
setIcon(new ImageIcon(getClass().getResource("/org/gephi/ui/components/resources/vista_bigclose_enabled.png")));
setRolloverIcon(new ImageIcon(getClass().getResource("/org/gephi/ui/components/resources/vista_bigclose_rollover.png")));
setPressedIcon(new ImageIcon(getClass().getResource("/org/gephi/ui/components/resources/vista_bigclose_pressed.png")));
} else if (UIUtils.isAquaLookAndFeel()) {
setIcon(new ImageIcon(getClass().getResource("/org/gephi/ui/components/resources/mac_bigclose_enabled.png")));
setRolloverIcon(new ImageIcon(getClass().getResource("/org/gephi/ui/components/resources/mac_bigclose_rollover.png")));
setPressedIcon(new ImageIcon(getClass().getResource("/org/gephi/ui/components/resources/mac_bigclose_pressed.png")));
}
setText("");
setBorder(javax.swing.BorderFactory.createEmptyBorder());
setBorderPainted(false);
setContentAreaFilled(false);
setFocusable(false);
setOpaque(false);
}
Aggregations