awt
Is Interfacing both java.awt.Graphics2D and Html5 Canvas Context in GWT feasible?
I have a java library which heavily uses java.awt.Graphics2d. I want to port my library to html5 canvas by using gwt.[详细]
2023-03-13 17:31 分类:问答How to count the number of lines in a JTextArea, including those caused by wrapping?
I have a JTextArea for which I have set word-wrap and wrap-style-word to true. I want to \"pack\" the JTextArea to the minimum possible height given a specified width.[详细]
2023-03-13 13:11 分类:问答resizable angle
I have an angle in a frame (I draw it with two lines). I want to make it flexible to frame; I mean, when the user expands the frame angle also become expanded and vice versa. I tried a lot of examples[详细]
2023-03-13 09:57 分类:问答separate repaints in awt
The \"Painting in AWT and Swing\" docs state the following. \"If multiple calls to repaint() occur on a component before the initial repaint request is processed, the multiple requests may be collaps[详细]
2023-03-12 11:03 分类:问答A rotated square panel in Java GUI
I wonder if it is possible to implement a GUI panel (possibly JPanel) that is of square shape but rotated 90 degrees. Obviously, there will be a top-level container whi开发者_运维问答ch contains this[详细]
2023-03-12 08:10 分类:问答How do I get a JLabel to accurately predict how wide it should be?
I have a situation where a user enters a String and my code makes a Jlabel fo开发者_如何学Gor it and attempts to center it on a full screen JFrame/Pane. My problem is, to be able to accurately center[详细]
2023-03-12 01:03 分类:问答Swing GUI listeners without AWT
I am a starting Java developer, learning just from internet tutorials. I am learning full-screen GUI applications. I was told yesterday that I shouldn\'t use AWT in my programs because it is outdated.[详细]
2023-03-10 14:15 分类:问答mouse events on multiple polygons in java swing
i am trying to write a code for my task. my task is, i have draw may polygons on a single panel by giving coordinate values. and aplly mouse moved event to those polygons.[详细]
2023-03-10 12:20 分类:问答AWT Canvas cannot gain focus in the presence of another focusable component
I have a simple GUI with a JTextField and an AWT Canvas (to prevent the counter-question as to why I\'m using an AWT Canvas: I need to have a window handle).[详细]
2023-03-09 22:51 分类:问答Why SWT Shell won't get expanded when using SWT_AWT bridge, linux?
I\'m using it in Applet. Here is source of init function: java.awt.Canvas awtParent; setLayout(new java.awt.GridLayout(1, 1));[详细]
2023-03-09 16:14 分类:问答