Removing Java coffee JWindow icon in java graphical project.

import javax.swing.*;
import java.awt.*;
JWindow window = new JWindow();
window.setIconImage(new Image());
Does the above, in the appropriate class area,
successfully set an invisibne icon image
in the top left corder of a JFrame, getting
rid of the default Java icon image?
*/

>
When posting code, code snippets, HTML/XML or input/output, please use the code tags. The code tags protect the indentation and formatting of the sample. To use the code tags, select the sample and click the CODE button.
Does the above, in the appropriate class area,
successfully set an invisibne icon image
in the top left corder of a JFrame,.. The post title mentions JWindow, which would not have an icon in the top left corner, yet now you refer to a JFrame. It might help to get better answers by taking care with the terminology.
..getting rid of the default Java icon image?What happened when you tried it?

Similar Messages

  • How do I remove the coffee-cup icon in Windows's frames?

    Hi Java developers!!!
    I'd like to know if there's a way I can remove that small icon at the upper-left corner of an AWT Frame that
    appears on every window under Windows. As far as I know, there are licensing restrictions that won't let me
    distribute any program that use these copyright-protected icons/images in any program unless Sun
    explicitly tells me so. Ideas anyone?
    - Heriberto Delgado
    Sui Generis S.A.
    ([email protected])

    (Sorry for my bad english, I'm from Costa Rica.)
    Ok, let me explain it. Frame.setIconImage() gets rid of the coffee-cup icon in the frame, so that the old icon is
    not visible again in the application, thus it's not infringing any Sun-imposed copyrights on it's usage. That works
    when the application is run under Windows, and possibly other OSes. However, Windows is my only current
    development platform, and I don't know how my application will really look on other OSes, as
    Linux/Solaris/MacOS/etc., and I'm actually worried about if other Sun-proprietary icons/images will appear in my
    application when opened within these OSes, besides the coffee-cup icon. Should I be worried, or not?
    Again, thanks for your quick response!
    - Heriberto Delgado
    Sui Generis S.A.
    ([email protected])

  • How can I remove or replace the " Java coffee cup " icon ???

    I'd like to ask everybody some questions about the " Java coffee cup " icon
    doesn't JToolbar be able to pull out of Frame?
    but the JToolbar which was pulled out would have a little Java coffee cup icon
    just like JOptionPane,JDailog or JFrame.
    Is there any solution to remove this icon??
    equally....
    How can I remove or replace the little Java coffee cup icon of the title in
    JDialog or JOptionPane??
    Taking JFrame for instance, if I use "this.setIconImage(xxxxxxx);" then I can
    change the little Java coffee cup icon.
    but it seemed invalid to use it in JDialog.
    How can I solve it in JToorbar,JDailog and JOptionPane ???
    my e-mail : [email protected]

    this seems to be to most asked question at least in this forum.... only topped by the question about 'how to make an exe out of java apps' in the Java Programming Forum.
    Sorry, but is there anybody who has noticed those useful textboxes where it says 'Search'? I mean before there were computers one had to go to a library, ask somebody or perform extensive research until answers were found. Or one had to buy books only to find out the the other book he though about buying would have been better.
    Nowadays, simply type somthing like 'coffe cup' into a place where it is possible to do so and click into a region where it says 'Search' somewhere. Not even necessary to go to a froum like this and swamp it with the one trillionth version of this question, almost any search box might bring an answer (let it be right or not..).
    Although I have to admit that this instance is the most prosaic and least understandable one I have seen for long...
    Again sorry but I had to say that.

  • How to remove java coffee cup asking me to install runtime environment that continuously popped up on my screen?

    how to remove java coffee cup asking me to install runtime environment that continuously popped up on my screen?
    I'm not selecting or viewing anything, it just appeared on my screen when I'm about to start up.
    Hope anyone here can help me with this. Thank you so much.

    Try installing this: Apple Java 2014-001.

  • Customize the default COFFEE MUG icon provided by java

    How can i change the default coffee mug icon provided in the Frames using the JFrame classes.I do need a customized icon for my application.Though there exista an setIcon method , but its usuable only to the JInternalFrame classes.
    Help required ???

    User setIconImage(). Note it takes and Image where as the setFrameIcon() method of JInternalFrame takes and Icon.

  • Java graphics app prob regarding painting........ app does NOT use applets

    Hi ,
    I basically want to write a java graphics game application ......At this point in time all I want to do is add a green rectangle to the content pane.......I can do this but I want to stick with OO concepts so I have various classes......the thing is ....when a user resizes the window the graphic I have painted dissapeared
    I will show the classes I have used and the code below......I want to do the program conforming to the way I was tought java which is to have a main controlling class that orchestrates communication between unrelated classes and their methods. In addition to my question if anyone sees stuff fundementally wrong with my code and has a better solution please feel free to enlighten me :-)
    main controlling class:
    import java.awt.Graphics;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2005</p>
    * <p>Company: </p>
    * @author not attributable
    * @version 1.0
    public class PoolApp {
    public PoolApp() {
    //creates new gamescreen object
    GameScreen aScreen = new GameScreen(this);
    public static void main(String[] args) {
    PoolApp poolApp1 = new PoolApp();
    public Graphics getPaintedTable(GameScreen aGameScreen) {
    Paint aPaint = new Paint(this);
    Graphics tblObj = aPaint.getTbleGraphic(aGameScreen);
    return tblObj;
    ------end main controlling class
    ------TLayer Class start
    import javax.swing.*;
    /* The purpose of this class was to create a generic frame that would
    be inherited from all screen classes ...I initially had this creating a black background that would be inherited from child classes but that created
    more problems when the screen was resized by one of the child classes*/
    public class TLayer extends JFrame {
    public TLayer() {
    -----TLayer Class end
    -----GameScreen class start--------
    public class GameScreen extends TLayer{
    private PoolApp thePoolApp;
    public GameScreen(PoolApp aPoolApp) {
    thePoolApp = aPoolApp; //set a reference from here to the controlling PoolApp initGameScreen(); //initialise and show GameScreen .....screen
    public void initGameScreen() {
    this.setSize(800,600);
    this.show();
    //now make a request to the poolapp controlling class to ask for a painted green table and get the paint class to paint it to screen
    thePoolApp.getPaintedTable(this);
    ----GameScreen class end------------
    ----PaintScreen class start-------------
    PoolApp thePoolApp;
    public Paint() {
    public Paint(PoolApp apoolApp) {
    thePoolApp = apoolApp;
    public Graphics getTbleGraphic(GameScreen aGameScreen) {
    Container theCont = aGameScreen.getContentPane(); //assign the gamescreen content pane to a container
    theCont.setSize(200,200); //set a viewable size to the container
    Graphics thetbl = theCont.getGraphics(); //get container graphics context and assign it to a graphics object
    thetbl.setColor(Color.green); //color the object
    thetbl.fillRect(30,30,20,60); //fill the rectangle
    return thetbl; //return the object
    ---PaintScreen class end---------------
    This code actually draws the green rectangle to the gamescreen from the paint class .......so it works to a degree! ......whenever I resize the window the painted image dissapears, could anyone suggest a way around this also ...am I going about this the correct way? Im open to making mass changes to better the program ......the only thing I do not want is to use applets! .....as I want to learn the fundementals of custom painting my stuff
    Any help is much needed and appreciated
    David

    Hi .....I managed to fix my problem .....but I have really had to get my head around method overiding! ......Your advice is taken onboard ...also Im going to try and find a straight forward diagram of the java graphics heirrachy ......well the parts that are reasnable to what Im doing ......Also from what I know and what you have said yes threads would definately be the way to go as far as animation and paintings concerned...I plan to do some serious research on that as I progress.
    I am going to post my basic working program ........I was wandering if you think this is an effiecent way I have done this? or if you could make any recommendations? its just I dont want to adopt this approach and find its no good when I get further into the programs development :-)) anyway heres the code :
    ------Class PoolApp start--------------
    public class PoolApp {
      public PoolApp() {
        GameScreen aGScreen = new GameScreen(this);
      public static void main(String[] args) {
        PoolApp poolApp1 = new PoolApp();
    }------Class PoolApp end--------------
    ------Class TLayer start--------------
    import javax.swing.*;
    import java.awt.Graphics;
    public class TLayer extends JFrame {
      public TLayer() {
         System.out.println("In TLayer default constructor");
         this.setSize(800,600);
    }------Class TLayer end--------------
    ------Class GameScreen start--------------
    import java.awt.Graphics;
    public class GameScreen extends TLayer {
      PoolApp thepoolApp;
      Table theTable;
      Graphics g;
      public GameScreen() {
       System.out.println("In gamescreen default constructor table");
      public GameScreen(PoolApp apoolApp) {
      thepoolApp = apoolApp;
      System.out.println("In gamescreen  constructor 2");
      addTable();
    public void addTable() {
    System.out.println("in addTable");
    this.show();
    //theTable = new Draw(this);
    //theTable.setTable();
    //theTable.paint(g);
    public void paint(Graphics g) {
         System.out.println("In Gamescreen paint ");
         theTable = new Table(this);
         theTable.paint(g);
    public void update(Graphics g) {
        System.out.println("In Gamescreen update ");
        theTable = new Table(this);
        theTable.paint(g);
    }------Class GameScreen end--------------
    ------Class Table start--------------
    import java.awt.Graphics;
    import java.awt.Container;
    import java.awt.Color;
    public class Table extends TLayer{
      GameScreen thegameScreen;
      public Table() {
          System.out.println("In Table default constructor");
      public Table(GameScreen agameScreen) {
        thegameScreen = agameScreen;
        System.out.println("In Table 2nd constructor");
      public void paint(Graphics theGraphic) {
        System.out.println("In Table paint ");
        Container tablecont = thegameScreen.getContentPane();
        theGraphic = tablecont.getGraphics();
        theGraphic.setColor(Color.green);
        theGraphic.fillRect(310,220,180,80);
      public void update(Graphics theGraphic) {
           System.out.println("In Table update");
       paint(theGraphic);
    }------Class Table end--------------
    To be honest I would rather have created a table object then added it to the content pane ....but when i did it that way ......and I resized the screen the green table graphic dissapeared .....I would also have prefered all painting of the table to be done in the table class but I had the same problem of the graphic dissapearing when the window was resized and this is the best solution I have come up with as yet ....:-) .....any recommendations are greatly appreciated
    Thanks
    David

  • Should I remove Java from  my IMac?

    Should I remove Java from my iMac?  Heard  of security problem with Java and  wondered if I should delete it,

    MadMacs0 wrote:
    I've been going entirely on the almost universal statement that installing Lion does not install Java by default. I'm very aware of the fact that older versions of OS X actually rely on the use of Java for some system functions, but I've been told that is no longer the case. If that were so, then there is no need for any Java to be present, yet you say it is there and you aren't the only one who has told me that.
    But exactly how much Java is installed by default? Obviously not enough to use it for browsing. In the days of the Java 6 Preferences app, it used to alert you that Java was not installed and offer to do so.  What happens with standalone apps like CrashPlan in Lion that require Java, do they have enough, by default, to run?
    The only Java component missing in these OSs is the Java Runtime Environment (JRE). Peruse those installations, looking in these directories, and be enlightened:
    /Applicatons/Utilities/->Java Preferences.app
    /Library/Java/
    /Library/Internet Plug-Ins/->JavaAppletPlugin.plugin
    /System/Library/CoreServices/->
            Jar Launcher.app
            Java Web Start.app
            JavaVersion.plist
    /System/Library/Frameworks->
            JavaFrameEmbedding.framework
            JavaScriptCore.framework
            JavaVM.framework
    /System/Library/LaunchAgents/->
    com.apple.java.InstallOnDemand.plist
    com.apple.java.updateSharing.plist
    /System/Library/Java
    /System/Library/PrivateFrameworks/->
            JavaApplicationLauncher.framework
            JavaLaunching.framework
    to name a few, but probably not all the Java components installed with OS Xs. Then, stop saying Java's not installed, when only the JRE component is missing.
    There has been speculation from some that perhaps it migrated from an older system or that Lion was installed on top of the older system. There's also some confusion these days about what actually constitutes a "clean install".
    AFAICT, it's speculated wrongly. As for the clean install, I define it to occur when the user wipes the drive, installs the OS, sets up everything, and then installs all 3rd-party software. Then, the installation is clean. If there's any migration involved, then it's not clean. i've not done one for over ten years and my OSs started with 9.2->Jaguar->to the current three.

  • I have a program that requires Java 6.  I am running 10.8.2, How do I remove Java 7 to run this program?

    I have a program that requires Java 6.  I am running 10.8.2, How do I remove Java 7 to run this program?

    Try going to the Oracle site - they did have a page showing how to remove Java 7 using the terminal program.
    I followed their instructions and it didn't work for me, but you may have better skills and luck than I.
    This was my starign point;
    http://www.java.com/en/download/help/mac_uninstall_java.xml
    Let us know if this works.

  • Removing Java Development toolkit 6.0.160.1

    How do I go about Removing Java Development toolkit 6.0.160.1?

    In Windows Explorer, locate C:\Program Files\Java\jre6\bin\new_plugin\ - in there should be file named npdeploytk.dll
    Exit Firefox, rename the file for now, (i.e., DISABLED-npdeploytk.dll then restart Firefox and see if the Java Deployment Toolkit is gone. Then you can delete it.
    You should update Java to version 1.6.0.20. Start>Control Panel>Java, Update tab, click Update.
    NOTE: Each update will reinstall the Java Deployment Toolkit. The security issue causing older versions to be disabled has been fixed, so it won't prompt you to disable the latest version.
    If you are on Windows 64-bit, go to C:\Program Files (x86)\Java\jre6\bin\new_plugin\ instead.

  • Writting java graphics and textual data from java application into MS word

    By using POI API, I could write textual data into MS word by using
    java application. Could any one help me out how to write
    Java graphics(i.e. Writting JPanel) and textual data(i.e.IOStream data) both into MS word document.
    Thank you for time spent.
    Thanks with regards,
    Mallik

    hi:
    Can any one help me out how to read and write in to the MsWord using POI...plz it is very urgent...plz give ur reply to [email protected]

  • Is there a Java Graphic Package that doesn't depend on DISPLAY?

    Hi
    Is there a Java Graphic Package that doesn't depend on DISPLAY?. I need to generate some images on the web and I can't guarantee that the DISPLAY variable is set correctly.
    Regards,
    N�stor Bosc�n

    Hello,
    Previously to JDK 1.4 the DISPLAYwas mandatory and most of the production Web sites were running a virtual X server (XVFB) take a look to this document
    However using JDK 1.4 or after you should not need to set the display anymore. Java contains now a headless that you set the Java properties java.awt.headless to true (java -Djava.awt.headless=true ...)
    Regards
    Tugdual Grall

  • Can't remove java or install

    when i attempt to install java (runtime environment 5.0 update 6): "you already have this version of JRE installed. please uninstall the product through your add/remove programs utility before reinstalling."
    when i attempt to uninstall as advised: "internal error 2318. c\program files\java\jre1.5.0_06\lib\zi\asia\makassar" then "fatal error during installation."
    i have uninstalled everything java, but cannot remove this, or install java until this is removed.

    Check replies 4 thru 7 of this thread, http://forum.java.sun.com/thread.jspa?threadID=721559&tstart=75
    The file c\program files\java\jre1.5.0_06\lib\zi\asia\makassar apparently is trashed, follow the thread discussion and replace it with one of the other \zi\ files, then try removing Java.

  • How to remove java from os x 10.7

    currently i am running os x 10.7.5.   here is a screen shot of the java version.
    java version "1.6.0_37"
    Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
    Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)
    i have run the sudo rm -rf /System/Library/Java/JavaVirtualMachines/
    how can i remove java completeley from my machine? 

    johny1010 wrote:
    my system has been hacked.  for security purpose, i like to remove java from my machine since i don't need java to perform work.
    The only part of Java that is vulnerable to any known threat is the plug-in. As long as you remove it from /Library/Internet Plug-Ins/ you should never have any issues with Java.
    As you will note in looking through the various recommended solutions, completely removing Java is difficult and time consuming. You will also be removing some of the files that originally came with Lion, which could possibly damage your OS.

  • Remove java in solaris

    Can i remove java from a solaris 9 server. ALL version of java. I dont have any GUI needs, I dont use SMC, I dont have any 3rd party apps using the system java. The only thing it appears to be good for is wasting my time patching java.
    What solaris (load the from the OS cd) requires java or breaks when java is removed?

    Hi did you ever figure out what patches cause this issue? we have the same problem (i.e. no support, same error)
    I am about to start some troubleshooting but would appreciate some pointers...
    Thanks
    AND Support

  • I accidentally removed/deleted the Printer icon from my dock - how can I get it back?

    I accidentally removed/deleted the Printer icon from my dock - how can I get it back?  I've tried dragging and dropping from the Print window - no luck.  I tried to drag from the Systems folder - no luck.   IOS 10.9.4

    Well I have always had a printer icon in the Dock, launched or not launched (as in the screen shot below,) right next to the scan icon. Neither of which are launched at the present time.
    What happens if you run a print job, control click the printer icon>Options>Keep in Dock
    MacBook Pro (15-inch Mid 2012), OS X Mavericks (10.9.4), i7 500GB 16GB RAM iPhone5 iOS7.1.2

Maybe you are looking for

  • Automatic payment program for customer

    Hello! I have the next issue: I want to pay physically (give money from bank) to somebody (a commission). In the system, this person is defined as customer. Can I use the automatic payment program for a customer(as it is in SAP system) and send the p

  • Release strategy in PR

    Hi, I have some issue in PR release strategy  Whenever a PR is created, it is directly going to our DG. But his release code is 05.when we see our PR, header release stragey showing like this... M1  initiator M2  Core manager 10  MGR PMMD out problem

  • Very strange problem of flex3 RSL

    I can access static public variable of a class in a swf which is linked by Rutime Shared Library mode for a application,but when i invoke the static public function of the same class, Flex throw a Exception:"TypeError: Error #1006: showLoginRunDomain

  • Pre-programmed keys

    I have a Q10. In my Bold I could make a one key phone call (say H for home) from any window. Not anymore. Am i missing something?

  • Price not correct

    The prices on my ITunes store is incorrect. It says each song is 8.00Kr. I didn't switch anything different about the Itunes, just downloaded the new version of it. I don't want to buy anything in fear of it giving me the wrong price. Thank you!