About 3,520,000 results
Open links in new tab
  1. java - How to Remove an icon on a JButton? - Stack Overflow

    Jan 23, 2014 · Use the following code: JButton button = new JButton(); button.setIcon(null); The best way to do it, is to replace the existing icon with a transparent icon of the same size. This will ensure the button does not change size, and potentially disturb the placement of other GUI elements that occur after it in the layout. E.G.

  2. java - Delete a specific button - Stack Overflow

    Use a boolean variable that indicates that the next button clicked will be "deleted". When the other buttons are clicked if the variable is set to true then set the visibility of the button to false. Initialize the boolean variable to false again. When you submit code, make sure it runs.

  3. java - Add and remove an icon on a JLabel - Stack Overflow

    Feb 10, 2010 · public void actionPerformed(ActionEvent evt) { // Remove icon when button is clicked. lbl.setIcon(null); // **IMPORTANT** to call revalidate() to cause JLabel to resize and be repainted. lbl.revalidate(); in the event handler that handles the button click, if you're using Swing. +1 for actually posting what comes to mind when reading the question.

  4. How do I disable the Java icon in the Windows System Tray?

    A Java icon is shown in the Windows system tray whenever an application or applet written with Java technology is running. This document contains instructions as to how to disable the Java icon.

  5. Control panel icon for Java gone - Microsoft Community

    May 30, 2010 · Step 1: Check for Java Icon in the Windows Control Panel. If you do not see the coffee cup icon in the Windows Control Panel, you do not have the latest version of Java installed on your computer. Open Windows Control Panel. http://windows.microsoft.com/en-US/windows7/Working-with-Control-Panel.

  6. How do I uninstall Java on my Windows computer?

    Select any that you want to uninstall by clicking on it, and then click the Remove button. If you run into issues removing Java, run the Microsoft utility to repair corrupted files and registry keys that prevents programs from being completely uninstalled or blocking new installations and updates.

  7. How to Remove the Java Icon from Your System - PowerShell.Site

    Jul 1, 2024 · In this guide, we will cover two main methods to remove the Java icon: one for the system tray and another for the desktop. The process is quite straightforward and does not require advanced technical knowledge.

  8. How can i hide the window icon and minimize and maximize button

    Sep 12, 2024 · To hide the window icon, you could try to use WS_EX_DLGMODALFRAME: SetWindowLong(hWnd, GWL_EXSTYLE, GetWindowLong(hWnd, GWL_EXSTYLE) | WS_EX_DLGMODALFRAME); To hide the minimize and the maximize button, when you create a Win32 desktop application, you could remove WS_MINIMIZEBOX and WS_MAXIMIZEBOX

  9. How to Remove the Default Icon from a JFrame in Java?

    Removing the default icon from a JFrame in Java is straightforward and can be done by setting the icon image to null. This allows you to customize the JFrame appearance or remove it entirely based on your application's requirements.

  10. JAVA ICON still appears in Control Panel after uninstalling

    Jan 20, 2013 · Method 1: Make sure that you have uninstalled java completely with the help of link. How do I uninstall Java on my Windows computer: http://www.java.com/en/download/uninstall.jsp. Method 2: If the issue persists then set your computer in Clean Boot state and check if the same issue occurs.

  11. Some results have been removed