awt
How to get the background color of a JList's unselected cell?
I am trying to find the color used by cells that are unselected. This is usually white, however when I call UIManager.getColor(\"List.background\"), it appears to be the same grey color used for JPane[详细]
2023-03-16 13:20 分类:问答Disable hyperlinks in JTextPane
I have a JTextPane with HTML contents. Without changing the content type or calling setText, I would like disable the hyperlinks. I want[详细]
2023-03-16 12:23 分类:问答Steganography program giving weird results
I am developing a steganography program for a computer programming class. It appears to gives random ascii symbols.The output is supposed to be BINARY.The encode message method was given to us by my t[详细]
2023-03-16 09:19 分类:问答Who owns the color of the edges of a Java Swing scrollable viewport?
I have a JScrollPane with a JPanel that implements Scrollable as its viewport view. When I set ScrollableTracksViewportHeight and ScrollableTracksViewportWidth to false, my panel stays at its preferre[详细]
2023-03-16 00:59 分类:问答Display a Graphics2D as JPG in JSP
Is it possible to use Graphics2D in a servlet? And if I have a Graphics2D object, is it possible for me to convert it to a .jpg image and displ开发者_Go百科ay it in a JSP page?In my opinion yes, Rea[详细]
2023-03-15 06:07 分类:问答How to delay between drawings in a Java Applet
I\'m writing a program to input a number and draw that number of circles of random color and location on an applet. I\'ve been up all night trying to figure out how to add a delay between each of the[详细]
2023-03-15 03:28 分类:问答Reentrant Lock Problems
I\'m writing a program that creates a user input pane and needs to wait for the user to click \"query\" before it performs any calculations. Cur开发者_JAVA百科rently, I\'m using a ReentrantLock to do[详细]
2023-03-14 20:51 分类:问答Debugging Null Pointer Exceptions
I\'m trying to debug a Null Pointer Exception in java, but the stack trace is being unhelpful. It can\'t point me to anything in particular:[详细]
2023-03-14 20:33 分类:问答Dispatching AWT Event With No User Input
I need to dispatch an event in AWT in the constructor of a panel. I need to do this because the AWT-EventQueue开发者_JAVA百科 needs to aquire a ReentrantLock and release it when the user clicks a butt[详细]
2023-03-14 18:38 分类:问答How to make java.awt.Label background transparent?
I used to do the transparent background with javax.swing.JLabel this way: 开发者_运维知识库 lbl.setBackground(new Color(0, 0, 0, 0));.[详细]
2023-03-14 08:24 分类:问答