answersLogoWhite

0

What is an icon in java?

User Avatar

Anonymous

16y ago
Updated: 8/17/2019

The Icon interface describes "a small fixed size picture, typically used to decorate components." It contains three methods to do this: getPictureHeight(), getPictureWidth(), and paintIcon(Component, Graphics, int, int).

paintIcon should be implemented to use the given Graphics object to paint your icon at the given coordinates on the Component object.

Note that Java provides a nice implementation of this interface in the form of the ImageIcon class.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Why does java have a coffee table as icon?

Java is one of the slang terms for coffee.


How can you change the resolution of a touchscreen java game from 360x640 to 240x320?

Usually you can find it in a corner or at the start menu. Look for a cog looking icon (the options icon) and then you should see the resolution choice.


How do you use Opera Mini in a Nokia 5310?

After installing it, simply find Opera's icon in your applications folder, or, alternatively, in the Java folder.


How do you repair java?

repair java I have found that most errors come from conflicts with "Virus/Spyware Programs" when Java is set to auto update. I solved my problem by pausing or turning the VirusSpyware Protection off temporarily and downloading updates directly from Java. Go to your Control Panel and look for the Java icon ... click on it and you will see a tab to update along with settings for automatic updates with which you can change to manual.


Why cup symbol is used for java?

I read this in a book that it's because all class files in Java are identified by a magic number which reads CAFEBABE in hexadecimal assembly. The software engineers that designed Java at Sun used to take a break in a nearby cafe during work hours where they checked out hot girls while sipping their coffee.


How can you run Java on OS X 10.8?

As Java is not packaged with OS X 10.8, you will need to download it. First, click the magnifying glass icon on the menu bar, located at the upper right hand corner of the screen. From there, type in "Terminal." Then, select "Terminal" from the options provided. Once Terminal is open, simply type in Java. If Java is not installed, it will ask if you'd like to have it installed. Agree, and Software Update will locate, download and install Java for you. After it finishes, you should be all set.


Java says it is installed but says 'error' when you try pogo games?

How do I make sure the Sun Java 2 plug in is enabled and working?To check if you already have Sun Java installed and enabled, please follow these instructions:Click the Start button on the Windows Taskbar.Select Run.Type Control in the text box and click OK.Once you are in the Control Panel window, you should see a Java icon. If you do not see this icon, try clicking on 'Switch to Classic View.' Double-click the Java icon to access the Java Control Panel.Once in the Java Control Panel, click the Advanced tab. If you don't see the Advanced tab, you have an older version of Sun Java. To find out how to update to the latest version, please read the instructions in number 3. Once you do this, Sun Java will automatically be enabled.Once you are in the Advanced tab, click the plus sign (+) next to the Default Java for browsers section.This action will toggle two check boxes: Microsoft Internet Explorer and/or Mozilla family.Click on the checkbox next to the browser(s) that you have. If you have Internet Explorer then make sure the box next to it is checked. If you have a Mozilla browser, like Netscapeor Firefox, then make sure the check box next to the Mozilla family option is checked as well.Click OK at the bottom of the Java Control Panel window and restart your browser by closing all windows completely and re-launching it.Go back to Pogo, and try to play again.If you continue to encounter difficulties, please contact us using the Talk to a Game Advisor link above.


Will Java pop up on to the home screen of your computer as an Icon?

Yes, it is normal for JAVA to show in your system tray when you are using an application which requires it. If it stays there all the time regardless of what you load, it could mean you have a start-up application which requires it, or it could mean something you didn't install is using it.


What is the size of a Java object and how can you find it?

Most Java objects seem to be 32KB and are located under your downloaded programs. If you double click on your "My Computer" icon then double click on "Local Disk (C:) " there you should find an area with a "Windows" folder double click on that and there should be a "Downloaded Programs" folder in which if you double click on that you will be able to then see your Java objects - OR - instead of going into the "Windows" folder you could double click on the "Programs" folder and there will be a "Java" folder in there (which ever you prefer).


Unable to install java and the installed java has corrupted and unable to uninstall.Message says files missing.The java icon appears on the addremoval panel but no remove options are displayed?

I had the same problem and managed to resolve it. You may try this too. "Completely" cleaned up all the existing java installs: Brought up windows in safe mode, and deleted C:\Program files\Java\jre1.6 folder. Restarted in normal mode. Used "Windows Install Cleanup" and removed the Java Runtime installation. This removed the listing under Add/Remove software but the icon in control panel stayed. Then used CCleaner to clear out all the unwanted file and also to cleanout unwanted registry entries. There were plenty of entries that had to be cleaned. However, I still had to manually remove \\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft (You may rename if you want to be cautious). After this I restarted the machine (this is important) and reinstalled JRE6U16 from the offline installation package that I had downloaded earlier. The installation went without a hitch and now everything is fine. The Java control panel is also behaved as expected. Hope this helps.


How do you run Java in Windows?

Eclipse is an Integrated Development Environment that can be used to create and run java programs. a. First we need to download the Eclipse IDE from eclipse's website. b. Then you need to install the IDE and create a shortcut on your desktop. c. Click on the shortcut icon in desktop d. The system will ask you to choose a workspace location. Choose a location in your local pc e. Eclipse opens default package explorer view. Create a java project f. Right click on the project and create a new java class g. Write your code inside the java class h. Click on the Menu item called "Run" and select "Run As" -> Java Application i. If your java program has a main method, the Run As - > Java Application will execute your program.


What Indonesian island is Jakarta on?

java