本文整理了Java中javax.swing.JFrame.setIconImages()
方法的一些代码示例,展示了JFrame.setIconImages()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFrame.setIconImages()
方法的具体详情如下:
包路径:javax.swing.JFrame
类名称:JFrame
方法名:setIconImages
暂无
代码示例来源:origin: com.github.insubstantial/flamingo
private void setLegacyIconImages(List<Image> images) {
if (this.wasSetIconImagesCalled) {
return;
}
super.setIconImages(images);
}
代码示例来源:origin: com.github.insubstantial/flamingo
@Override
public synchronized void setIconImages(List<? extends Image> icons) {
super.setIconImages(icons);
this.wasSetIconImagesCalled = true;
}
代码示例来源:origin: threerings/tripleplay
/**
* Sets the window icon.
*
* Takes icons of different sizes, preferring earlier ones in case of duplicate sizes.
*/
public void setIcon (playn.core.Image... icons) {
assert icons.length > 0;
List<BufferedImage> images = new ArrayList<BufferedImage>();
for (playn.core.Image icon : icons) images.add(((JavaImage)icon).bufferedImage());
_frame.setIconImages(images);
}
代码示例来源:origin: robward-scisys/sldeditor
/** Sets the application icon. */
private void setApplicationIcon() {
if (frame != null) {
List<Image> icons = new ArrayList<>();
icons.add(getImage(APPLICATION_ICON_SMALL));
icons.add(getImage(APPLICATION_ICON_MEDIUM));
frame.setIconImages(icons);
}
}
代码示例来源:origin: kaikramer/keystore-explorer
private void initApplicationIcons() {
// Adds many different sizes to give each OS flexibility in choosing a
// suitable icon for display
ArrayList<Image> icons = new ArrayList<>();
icons.add(Toolkit.getDefaultToolkit().createImage(
getClass().getResource(res.getString("KseFrame.Icon.image.16x16"))));
icons.add(Toolkit.getDefaultToolkit().createImage(
getClass().getResource(res.getString("KseFrame.Icon.image.24x24"))));
icons.add(Toolkit.getDefaultToolkit().createImage(
getClass().getResource(res.getString("KseFrame.Icon.image.32x32"))));
icons.add(Toolkit.getDefaultToolkit().createImage(
getClass().getResource(res.getString("KseFrame.Icon.image.48x48"))));
icons.add(Toolkit.getDefaultToolkit().createImage(
getClass().getResource(res.getString("KseFrame.Icon.image.128x128"))));
icons.add(Toolkit.getDefaultToolkit().createImage(
getClass().getResource(res.getString("KseFrame.Icon.image.256x256"))));
icons.add(Toolkit.getDefaultToolkit().createImage(
getClass().getResource(res.getString("KseFrame.Icon.image.512x512"))));
frame.setIconImages(icons);
}
代码示例来源:origin: grakic/jfreesteel
frame.setIconImages(icons);
代码示例来源:origin: mguessan/davmail
mainFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
mainFrame.setTitle(BundleMessage.format("UI_DAVMAIL_GATEWAY"));
mainFrame.setIconImages(frameIcons);
代码示例来源:origin: GoldenGnu/jeveassets
icons.add(Images.MISC_ASSETS_32.getImage());
icons.add(Images.MISC_ASSETS_64.getImage());
jFrame.setIconImages(icons);
jFrame.addWindowListener(listener);
jFrame.addComponentListener(listener);
代码示例来源:origin: org.vesalainen.dsql/dsql
frame.setIconImages(icons);
代码示例来源:origin: MegaMek/megamek
new MegaMekFile(Configuration.miscImagesDir(), FILENAME_ICON_256X256)
.toString()));
frame.setIconImages(iconList);
代码示例来源:origin: MegaMek/megamek
new MegaMekFile(Configuration.miscImagesDir(), FILENAME_ICON_256X256).toString()
));
frame.setIconImages(iconList);
代码示例来源:origin: MegaMek/megamek
new MegaMekFile(Configuration.miscImagesDir(), FILENAME_ICON_256X256)
.toString()));
frame.setIconImages(iconList);
CommonMenuBar menuBar = new CommonMenuBar();
menuBar.addActionListener(actionListener);
代码示例来源:origin: com.github.insubstantial/flamingo
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
super.setIconImages(Arrays.asList(FlamingoUtilities.getBlankImage(16,
16)));
内容来源于网络,如有侵权,请联系作者删除!