swing
JTable.SetCursor not changing cursor
I\'ve created a table, and setcursor on a particular column. The cursor is displayed properly for the first time when table is displayed, but if the table model changes and table is repainted, the cur[详细]
2023-04-12 16:13 分类:问答How to use a scala.swing.Applet in a Scala Swing application?
I try to port some Java code to Scala. I want to display a scala.swing.Applet in a GUI application. With Java Swing I would do[详细]
2023-04-12 16:06 分类:问答why is it only painting one of the components?
package puzzle; import java.awt.Color; import javax.swing.*; import java.util.*; public class Puzzle { Integer x = 50;[详细]
2023-04-12 15:42 分类:问答JTable refreshing
I use JTable with horizontal and vertical scrollbars. My JTable has empty space after rows with data.[详细]
2023-04-12 15:37 分类:问答Repaint JPanel only after window resize is finished
I have a JPanel on which I\'ve painted four rectangles.The color for each of these rectangles is selected at random.The colors should change only when the user clicks on a particular rectangle.[详细]
2023-04-12 15:33 分类:问答Printing in Java Swing Components
I have class PrintUtilities, which has the following method to print JPanel and its sub components: public int print(Graphics g, PageFormat pageFormat, int pageIndex)[详细]
2023-04-12 15:16 分类:问答Java - change transparency of image over time
I am trying to make a game object that can be made semitransparent during the game\'s runtime. My semitransparency filter works fine when I apply it to my object\'s image before entering the game\'s[详细]
2023-04-12 14:07 分类:问答Swing dashboard
In our desktop application built on Swing we are going to implement dashboard functionality. I mean that we want something like iGoogle (or Jira dashboard). We want to be able to add widgets from some[详细]
2023-04-12 13:11 分类:问答Multiline Jlabel with specific HTML tag
I want to add multi line to my Jlabel; I do it with help of HTML, but in some situation I have problem with it, the situation is that I use special tag property like dir=\"RTL\" and ... . What should[详细]
2023-04-12 13:06 分类:问答Customizing FocusTraversalPolicy for JFrame with GridBagLayout
I have a JFrame with four components: three JPanels and a JTabbedPane.Two panels have selectable components and are located approximately in BorderLayout.NORTH and EAST, while the JTabbedPane sits app[详细]
2023-04-12 12:38 分类:问答