1. How to change JFrame Icon stackoverflow.comI have a JFrame but it displays a Java icon on the title bar (left corner). I want to change that icon to my custom icon. How should i do it ... |
2. Unable to change the jFrame icon / load a resource for a .jar with Eclipse stackoverflow.comI'm trying to load an ImageIcon as described here, but I'm getting an error. Tried the method here too, but ran into the same error. It says: "Uncaught error ... |
3. Get Icon Image from the Title Bar of the JFrame stackoverflow.comI m using Netbeans IDE, I need to get the icon from the title bar of the JFrame and set it in the JButton. Is there any way to get the ... |
4. Setting an icon for a frame stackoverflow.comI have used this statement for setting an icon for a frame but still it shows the "java" instead of my image,would you please help me?
|
5. Having difficulty add a custom icon to a JFrame stackoverflow.comI have been trying to change the icon in the frame. I have virtually tried everything:
|
6. Java swing applets change frame icon stackoverflow.comHow do I change the icon of a frame when loading the applet from JNLP? I'm also using substance to change the appearance of the applet, and in a stand alone application ... |
7. Java: Replacing the coffee cup icon in the top-left corner of the Window stackoverflow.comJava Swing applications by default have the Java coffee cup icon appear in the top left corner of the application. I would like to replace this with my own image - what ... |
8. Howto dynamically enable or disable taskbar icon for a Java Swing program stackoverflow.comI am writing a Java Swing-based program using and JFrame that is able to display a system tray icon for quick access to most-used features. Now I want to add an ... |
9. How to customize the size of frame Icon image? stackoverflow.comI am creating Swing frame demo.
I have set an image icon in the title bar of |
10. how to set icon for JFrame window and tray stackoverflow.comI would like to show my own icon instead of the Java cup in the window. Also when minimized, I would like to display, my own image. ... |
11. Separate small, large JFrame icons stackoverflow.comI have an icon I want to use for my JFrame, and it looks good in the Windows 7 taskbar, and in the alt-tab view, but it doesn't look so great ... |
12. How to add an image to a JFrame title bar? stackoverflow.comI want to add an image (small icon) to the |
13. Setting an icon for a jFrame in Netbeans swing gui builder stackoverflow.comI've been trying to set up a window in Netbean's GUI builder, without success. I've tried accessing the JFrame, from my main class as:
|
14. Changing the background color of a JFrame icon on the windows taskbar stackoverflow.comI have had a look on the web and can't find any info on it, but I was wondering how to change the background colour of the icon (the icon which ... |
15. JavaHelp Frame icon stackoverflow.comHow can I set the |
16. Java - Maven - Setting Icon Images in a Form stackoverflow.comI've a maven project where there is a |
17. JFrame minimize icon query? stackoverflow.comI was able to hide the the maximize icon by setting |
18. Remove default JFrame icon stackoverflow.comIn my JFrame i have the default coffee icon. I want to remove it. But when i do setIconImage(null) it does't work. Can anyone tell me the solution as to how ... |
19. JFrame Icon in Netbeans stackoverflow.comI'm Building a Swing Application and I need to know how to set an Icon for my JFrames through Netbeans 7.0 if it is possible. Thank you for your cooperation. Best Regards. |
20. Java: Image Icon doesnt show up on top left app window stackoverflow.comI have this code:
|
21. Java Icon File not showing image stackoverflow.comI am using a Imagebox JFrame to add image, I want to change image in runtime so I add following code but nothing is displayed.
|
22. javax.imageio.ImageIO - Cannot load the icon to JFrame stackoverflow.comIn the following code snippet I am trying to set the icon of my JFrame instance using javax.imageio.ImageIO and I get below exceptions. Could you please tell me what I am ... |
23. changing swing frame icon bytes.com |
24. How can I change the default icon of JFrame (java cup) to my desired image in netbeans forums.netbeans.orgHi Tonny, It doesn't works , error occured . I have imported :- import java.awt.Image; import javax.swing.JFrame; Error Occurred : Cannot find symbol Symbol: Class setIconImage location : Class javax.swing.JFrame |
25. how change the default java icon in jframe? forums.netbeans.orgHi, I know that this problem was largely discussed in the net, but all method I've found don't work for me The last try gives me the following error: Code: ...\src\Gui\MainFrame.java:1575: cannot find symbol symbol : method setIconImage(javax.swing.ImageIcon) location: class Gui.MainFrame setIconImage(icona); Here is an extract of my code: Code: package Gui; ... |
26. Setting the icon on the main frame of an application coderanch.com |
27. Replacing JFrame Icon coderanch.com |
28. replacing Java Icon in JFrame coderanch.com |
29. how to change a frame or applets icon coderanch.com |
30. icon on JFrame coderanch.com |
31. Short Question on Frame Icons coderanch.com |
32. setResizable hides the icon on the title bar coderanch.comHi, I found out that when you call setResizable(false), it will hide the icon on the title bar, the icon next to the title. is there a easy way to show it when i still can call setResizable(false)? I know I can can add a listener for resizing, and disable resize that way. But is there a easier way to do ... |
33. how to change Java icon in frame ? coderanch.com |
34. How to change the coffee cup icon in JFrame coderanch.comOriginally posted by Murali Sivanath: Hello All, I have a simple doubt that How can i change i mean how to set the icon in my JFrame.By defaulf this will set to coffee cup icon.I have to change it to some other icon.How can i do that?Pls help me. Thanks in Advance, Murli |
35. Frame Minimized Icon Problem coderanch.comHi, In my code implementation, I designed a frame with my specified minimized icon. But when I implemented the code on IBM AIX 4.3 platform with jre version 1.3.0, But when the frame is iconized, it shows java icon instead of my specified one. After debugging, I found that the icon is correctly loaded with the right image, and the frame ... |
36. Icon image of frame coderanch.com |
37. changing the Icon in JFrame coderanch.com |
38. Change JFrame Icon (cup of coffee) coderanch.com |
39. frame icons coderanch.com |
40. hot to change the icon at title bar? coderanch.com |
41. how to display an image for window icon in Swings coderanch.com |
42. I want to put an icon im my small window.... coderanch.comHi... I have a small window that he seems the window of the JOption.showMessageDialog, but I want to place in my small window that figure that I pass eat parameter for the JOptionPane.showMessageDialog(null, "",QUESTION_MESSAGE); I want to place figure QUESTION_MESSAGE in mine noa window.... As I make to catch this figure and to place in my window??? |
43. how to set an Icon in the Helpset-window coderanch.com |
44. Icons for Toolbar coderanch.com |
45. Those Title bar and program group icons coderanch.comI want to replace icon in my application that appears at the top left of the title and the icon that appears in the bottom of the task bar on windows. They may be the same thing. Can anyone tell me what the name of this icon is? How do I swap it out? What sizes do I need to use? ... |
46. JFrame's icon coderanch.comimport javax.swing.*; import java.awt.*; import java.awt.event.*; public class TesteGet implements ActionListener{ private JFrame frame; private JPanel panel; private JLabel lbl; private JButton botao; private Container container; private BorderLayout layout; public TesteGet() { JFrame.setDefaultLookAndFeelDecorated(true); frame = new JFrame("Get"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(200, 100); frame.setLocation(300, 200); lbl = new JLabel("getContentPane()"); lbl.setPreferredSize(new Dimension(80, 20)); lbl.setOpaque(true); lbl.setBackground(Color.WHITE); lbl.setHorizontalAlignment(0);// swing constants botao = new JButton("OK"); botao.setPreferredSize(new Dimension(80, 20)); ... |
47. Frame Icon coderanch.com |
48. ICON at titlebar coderanch.com |
49. ICONs in JFrame coderanch.com |
50. Customizing window icons... coderanch.com |
51. JToolBar icons not seen coderanch.comThe only way I could get the image to not show up was to either load it after the AbstractAction had been instantiated, say, in the class constructor, or give a bad path to the image file. One problem with the ImageIcon loading method is that we don't get any feedback for load failures. Here's a suggestion that may help avoid ... |
52. disabling minimize icon in JFrame coderanch.com |
53. Disable JFrame and change cursor icon coderanch.com |
54. Adding maxmize icon to JFrame coderanch.com |
55. Nice Round Title Bar Icons? coderanch.comHi all, I suspect that the answer's going to be more complicated than I was hoping for, but... For an application I'm writing, I need (would like) to use a round logo as the icon in the title bar and taskbar (on Windows), but keep things platform independent. When I use a 16x16 PNG with transparency and set it with Frame.setIconImage(), ... |
56. Remove default window icon from JFrame coderanch.com |
57. how to remove the window close icon. coderanch.comI'm too lazy to search for the thread(s) about this topic (but you certainly are welcome to, I think there's at least two with relevant code/discussion), but here's a bit of code I found that seems to work in L&Fs excluding the Windows L&F on XP; it removes all buttons on the title bar: public void removeMinMaxClose(Component comp) { if(comp instanceof ... |
58. Add new functional icon to JFrame title bar coderanch.com |
59. How to set an icon to jnlp window? coderanch.com |
60. SWT: Adding new icon to Title Bar coderanch.comHello, I'd like to add a new button before 3 windows buttons in the top right corner (minimize, maximize and close) and make it look similar to them. Is it possible? How to do that? Now it looks like that: [ _ ] [ O ] [ X ] (I can't find a square on my keyboard so I put an ... |
61. Problem in setting icon for JFrame! java-forums.orghi all, I want to change the icon of the JFrame. I have done this by coding. It is working fine in NetBeans IDE. But it is not displaying the icon after building jar. I am getting this problem when i am trying to run the jar file. I have tried the following codes. But they are not working after building ... |
62. change icon of frame? java-forums.orgHi, I was working on an application in java swing and the problem which i encountered was that when i tryed to use the method i.e setImageIcon(icon) to change the icon of the frame,it never worked! i haved posted the code below,kindly please suggest me on where i have gone wrong. class me extends JFrame { ......... ImageIcon x=new ImageIcon("c:\\pics\cups.java"); setImageIcon(x); ... |
63. JFrame Set Icon? java-forums.org |
64. How to change Window Icon java-forums.orgSince it is isn't much, post you entire .java source file containing this code - what you have there doesn't look wrong, but I'm not sure why you made a frame constructor. Your path doesn't look correct, which is likely causing your problem - have you experimented putting the .jpg in other locations? How about within build/classes where your class is ... |
65. [SOLVED] JFrame Image Icon java-forums.org |
66. JFrame Titlebar icon forums.oracle.com |
67. JFrame image icon from jar file forums.oracle.com |
68. User defined icon for JFrame are not displaying......... forums.oracle.comHi, In Java 1.6, the user defined icon for JFrame are not displaying, if JFrames are displaying grouply in system taskbar. Why? Eg. I have set Internet Explorer image to my frames in application. While i see the frame in (maxmize view) it is displaying correctly. If I view the frames as invidually in system taskbar, the icon displaying correctly. If ... |
69. how to add an icon in tne frame title using JAVA-Swing forums.oracle.com |
70. How to remove the top-left icon of a JFrame forums.oracle.comHere's my approach to do what you want to do. 1. Did you know that you can capture screenshots using the java.awt.Robot#createScreenCapture method? If you know the location and the size of the frame, you can get a screenshot of the frame you want. 2. The createScreenCapture method returns the captured screenshot in the form a BufferedImage. 3. ...which you can ... |
71. JFrame Icon doesn't render transparent forums.oracle.comI looked for icons on the internet for my java program. I believe that a standard windows application either makes all white spaces or all black spaces on the icon transparent (filled in by the blue of windows). The problem is, a JFrame doesn't do that. I tried to edit in transparency with an Image editor, but it is pretty difficult. ... |
72. Is it possible to insert icon in JFrame? forums.oracle.com |
73. Change Icon That Appears in the Top Left Corner of A Created GUI Window forums.oracle.com/*GridBag GridBagConstraints constraints = new GridBagConstraints(); GridBagLayout layout = new GridBagLayout(); constraints.fill = GridBagConstraints.NONE; constraints.gridx = 0; constraints.gridy = 0; constraints.gridheight = 1; constraints.gridwidth = 1; layout.addLayoutComponent(usernameLabel, constraints); panel1.setLayout(layout); constraints.fill = GridBagConstraints.NONE; constraints.gridx = 1; constraints.gridy = 0; constraints.gridheight = 1; constraints.gridwidth = 1; layout.addLayoutComponent(usernameText, constraints); panel1.setLayout(layout); constraints.fill = GridBagConstraints.NONE; constraints.gridx = 2; constraints.gridy = 0; constraints.gridheight = 1; constraints.gridwidth = ... |
74. JFrame Icon issues forums.oracle.com |
75. Setting an icon on a titlebar of GUI frame forums.oracle.com |
76. JFrame's icon image get smaller when displayed forums.oracle.com |
77. Setting the icon's width & breadth placed in Titlebar - Swing application forums.oracle.comHi, It's an application developed using Swing. I've a requirement wherein I've to display an icon in Titlebar. Normally it accepts icon's upto 16 * 16 dimention. Whenever it exceeds the size, it picks the default one...(java's coffee mug icon) In our code they used setIconImage() method to set the icon... My query is... how can I set the breadth & ... |