awt
How to add event for image
I want to add and event on image. That is, when I click on the image, it should be replaced with another image.[详细]
2023-04-09 00:47 分类:问答java.awt.Desktop.browse returns "The requested lookup key was not found in any active activation context" only on Win XP
I use the following code to access the default browser from java when a button is clicked: if( !java.awt.Desktop.isDesktopSupported() ) {[详细]
2023-04-08 19:31 分类:问答Image Lost on Minimizing Window
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[详细]
2023-04-08 12:03 分类:问答Different row color in gridbag layout
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[详细]
2023-04-08 11:51 分类:问答Adding border to GridBagLayout rows
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[详细]
2023-04-08 04:19 分类:问答Java AWT: Remove frame title bar and add customised title Bar
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.[详细]
2023-04-07 20:33 分类:问答Programmatically close Java Tray Balloon
I am using java.awt.SystemTray to create and manage the tray icon and balloon messages. Everything works fine.[详细]
2023-04-07 15:20 分类:问答Java Painting a Triangle and Trying to use other Swing Objects
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[详细]
2023-04-07 09:30 分类:问答Infinite loop when updating JPanel's graphics
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.[详细]
2023-04-07 03:06 分类:问答Eliminating Initial keypress delay
When you type into a textbox and hold a key, you get (a.......aaaaaaaaaaaaaaa), depending on the initial key press delay.[详细]
2023-04-06 22:45 分类:问答