jcomponent
Java wait for component to be painted
I\'m trying to create a program in Java that would display set of images one after another adjusting the size of the frame for each one.[详细]
2023-01-30 07:21 分类:问答Java swing JComponent "size"
I\'m doing a project where i need some custom swing components. So far I have made a new button with a series of images (the Java Metal look doesn\'t fit with my UI at all). Ive implemented MouseListe[详细]
2023-01-25 01:59 分类:问答Prevent Java from repainting the content of a JPanel while updating
I have开发者_如何学Go a JPanel which contains a lot of child components. While updating\\adding new components to the parent JPanel I\'d like to prevent it from repainting, how can this achieved?Try R[详细]
2023-01-22 15:09 分类:问答The contents of my JComponent only refresh after a manual resize
I am trying to figure out why my JComponent refreshes when I manually drag my window, but it doesn\'t refresh when I call repaint or revalidate. The data is ready to be displayed, but it just won\'t s[详细]
2023-01-13 14:07 分类:问答Forcing a JComponent to be square when being resized
I have a JComponent that does custom drawing, and overrides the following methods: public Dimension getPreferredSize() {[详细]
2023-01-12 04:17 分类:问答All parts of my Printable Swing component doesn't print
I\'m trying to do a printable component (an invoice document). I use JComponent instead of JPanel because I don\'t want a background. The component has many subcomponents.[详细]
2022-12-31 01:21 分类:问答Help with rendering the Mandelbrot set in Java
I wrote an implementation of the Mandelbrot set in Java using a JComponent but I\'m getting strange results when I render it. Besides that everything compile开发者_如何学Pythons right. I\'m just not f[详细]
2022-12-28 01:11 分类:问答Moving and resizing JPanels object inside JFrame
Continuing my quest of learning Java by doing a simple game, i stumbled upon a little issue. My gameboard extends JPanel as well as each piece of the board. Now, this presents some problems:[详细]
2022-12-26 20:11 分类:问答JComponent undock effect
I\'m trying to accomplish an undock effect for a custom Swing JComponent. By default the component is used inside a form along with other comp开发者_C百科onents. I want to be able to maximize this com[详细]
2022-12-25 13:05 分类:问答Custom Drawn Component Not Drawing Inside JScrollPane
I was using Java JRE 1.6.7 and had a JComponent and a JScrollPane.I couldn\'t get double buffering to work on this which always resulted in a flicker.I had the buffering taken care of if I used a Canv[详细]
2022-12-19 12:05 分类:问答