I want to add and event on image. That is, when I click on the image, it should be replaced with another image.
I use the following code to access the default browser from java when a button is clicked: if( !java.awt.Desktop.isDesktopSupported() ) {
I have added an image to a Canvas and then display that canvas on Panel. But when I minimize and then maximize the Window, the image disappears from the Panel. How can I solve this? Following is the c
How do i set different color for different row in GridBagLayout? P.S : I cannot use swing in my app a开发者_JS百科s client requirement.for AWT works setBackground(Color) tooA GridBagLayout has nothin
I have a con开发者_如何学Godition where, when ever i create a new row in GridBagLayout, then i have to add an bottom border to that row. How can i achieve this?1) use JSeparator
I am new to AWT and was wondering how to remove the title bar that comes up when we open a frame and add customised title bar.
I am using java.awt.SystemTray to create and manage the tray icon and balloon messages. Everything works fine.
I am having a bit of an issue using Netbeans to design a GUI (Yeah im lazy :\\ ) and manually trying to paint a triangle onto the JFrame. The Swing Components are \'covered up\' until I press tab and
So, I am drawing a graphic in a JPanel object using Grahics2D. The JPanel is placed in a JScrollPane for the cases when my graphic is bigger than the window.
When you type into a textbox and hold a key, you get (a.......aaaaaaaaaaaaaaa), depending on the initial key press delay.