1. Why are my JFrame contents not being painted sometimes? stackoverflow.comI am trying to construct a basic control that will display an undecorated JFrame right below it when a button is clicked. I am trying to mimic drop down type ... |
2. Paint Swing Component to PDF using iText stackoverflow.comI have a JFrame, which i wish to save as a PDF. How do i paint this JFrame using iText?
|
3. how to know when jframe swing is painted stackoverflow.comI'm just working with a Java application which has several tabs on her Gui. The issue is when I change the tabs I move a Jpanel which has a video on ... |
4. Paint foreign component (i.e. belonging to a different frame's content pane) in another component stackoverflow.comHallo all. I want to paint a foreign component (i.e. belonging to a different frame's content pane), lets call it frame B, inside a component in frame A. The problem is that ... |
5. Painting Graphics2D in a JFrame stackoverflow.comI'm making a 2d vertical shooter game, in which everything is coded (and working) but the graphics. I have not used the Graphics classes before, so this is all new to ... |
6. Strange painting in window stackoverflow.comwe observe strange painting behaviour when an exception in uncaught in a swing listener like this:
|
7. How to paint an invisible JFrame elsewhere? stackoverflow.comI want to paint the contents of a JFrame onto another frame. Currently, I only get it to work if the JFrame is visible. |
8. Force paint a jframe? stackoverflow.comI have been trying to work this out by myself these past few days but I just can't seem to be able to get to a solution...... how do I force ... |
9. why my jcomponent dont paint in Frame? forums.netbeans.orgorlen Joined: 28 Aug 2009 Posts: 3 Location: Costa Rica Posted: Thu Sep 24, 2009 7:54 am Post subject: why my jcomponent dont paint in Frame? I've investigated ... |
10. Can't seem to paint on to a Frame. coderanch.comHi I can't seem to paint to a Frame object using a Graphics object. I have tried a variety of methods and I can't seem to be able to paint anything. I'm still new to the Java API so if you could explain what I'm doing wrong it would be a great help. Here is the code I'm using. I just ... |
11. JFrame painting problem while resizing coderanch.com |
12. problem with painting JFrame coderanch.com |
13. The Frame and Paint call coderanch.comDr. Friedman-Hill, Many thanks for your response, you are right it does work now; but it did not before I rebooted the machine. If you wish/can, will you please tell me to why and how can I call the paint method from another class. Best of regards David Note: your book seems to be quite interesting, I will try to purchase ... |
14. Proper way to override painting on a JFrame coderanch.comI always compile with the deprecation option and I was under the impression the the show() method is depricated and that we should use setVisible(boolean) instead. Now I have no clue if that has anything to do with your problem or not. If you give me some sample code I can see if I get the same error on my PC. ... |
15. How to invoke a paint method in Frame? coderanch.comimport java.awt.*; import java.awt.event.*; public class HelloWorld extends Frame { String ms; public HelloWorld() { super("Hello World Program"); ms = "Hello world"; setSize(75,150); setVisible(true); } public void paint(Graphics g) { g.drawString( ms, 20,20); } public static void main(String[] a) { HelloWorld hw = new HelloWorld(); hw.addWindowListener(new WindowAdapter () { public void windowClosing(WindowEvent e) { System.exit(0); } }); } } |
16. Help! Why isn't my Window paint method called? coderanch.com |
17. Graphics and JFrame paint coderanch.com |
18. Ex: Painting Swing forms without waiting on database to populate components - using Foxtrot coderanch.comHey everyone, I typed a short example of how to display/paint Swing GUI forms without waiting on a database to populate the form components. The example uses the open source Foxtrot library, ... I would like to learn how to do it with a SwingWorker. Hope this might be helpful to someone. Thanks! Chris import java.util.Arrays; import java.util.List; import javax.swing.DefaultComboBoxModel; import ... |
19. Opening window by clicking Paint Area ! coderanch.comHi friends, I am new to Java swing ! Any body can tell me that in this code class paintSSPanel extends JPanel { private int yy = 14; private int x1 = 15; paintSSPanel() { setPreferredSize(new Dimension(prefWW, (data.size() + 1) * 14)); setBackground(VLG); setBorder(new LineBorder(bgclr, 5)); } // end paintSSPanel() // HERE I WANT TO CLICK , ON CLICK I WANT ... |
20. How do I refresh the JFrame or call the paint method without calling initComponents()? :( coderanch.comI'm trying to make a program which calculates the distance between two points which the user gives by clicking on the JPanel. After the points are clicked, dots will be drawn on the points where the users clicked, lines will be drawn to mark the paths, and updates the appropiate JLabels using the Pythagorean theorem and Manhattan distance formulas. The problem ... |
21. AWT scaling the window to the thing that is painted java-forums.orgHow can that be done? For example my code is painting a circle, however that circle is very little, so I would like to scale the window. If i do that however, then only the window itself will become bigger but not the circle. Any solutions to this? Thanks in Advance Chappa |
22. Swing: unstabel window paint? java-forums.orgGood day everyone, I have got a little problem with java/swing. When I create a window with JFrame, a JMenuBar and a JPanel the windows does not load well. I only have got two windows which have both a JMenuBar and a JPanel. The main window has the problem that the JPanel does not load all the time and the about ... |
23. how to know when jframe swing is painted java-forums.orgHi folks, I'm just working with a Java application which has several tabs on her Gui. The issue is when I change the tabs I move a Jpanel which has a video on it, and sometimes (I dunno why) the application brokes. I've been thinking about the possible solutions, and I want to wait for the Jframe, and of course the ... |
24. JFrame cannot paint? java-forums.orgThis problem is kinda weird. I made a class that extended JFrame, but whenever I try to override with its paint method, all it show is a JFrame with a transparent background that shows whatever is on my screen. If I don't override the paint method, it will show up as a normal JFrame with nothing inside, how do i solve ... |
25. JFrame invisible refuse to paint windows content tho everything else runs? java-forums.orgWtf just happend? I got tons of code I can NOT publish an example here. No possible way. I only need to know, what are the common reasons that JFrames fucks up when painting it's contents? It isnt hoged up as I can minimize and maximize, but it simply doesnt repaint anymore. Tho the repaint method is called over a 30 ... |
26. Can't get my Java Program to Paint. Extends JFrame java-forums.orgHi, I'm new to Java. We have an assignment due on Friday that asks us to input a equation, x bounds, and y bounds. Then the program draws it. I don't get how to get it to draw. I'm following the book's manual. Here is what I have so far: /** * @(#)ExpressionPlot.java * * ExpressionPlot application * * @author * ... |
27. how do I paint graphics in a JFrame created by netbeans GUI builder? forums.oracle.comI hope it's ok to ask netbeans questions here. Frustrated with Eclipse I'm trying netbeans. I went through the tutorial for the UI builder and I have no trouble laying out the usual swing widgets like JPanels, JButtons, etc. What I haven't figured out is how to mix ordinary graphics like Graphics.draw() with these components. Crude example: 2 JPanels in a ... |
28. Using the paint() function on a JFrame forums.oracle.com |
29. the JFrame will not paint and stay! forums.oracle.comWell first the netbeans gui i have flashes whatever silly color i choose and then goes back to default grey. So I got out of that and using a simple editor the code below behaves the same. It just flashes green for a split second and returns to default color? I am using recent JDK download and Win XP . JFrame ... |
30. Help request - JFrame re-use problem - Painting issues forums.oracle.comHello, I'll give a short background on the problem: The general purpose of my program is to display a series/sequence of screens in a spesific order. I have constructed an object (JFrame) for each of those screens. In the beginning I create a Vector containing information about every screen in the sequence and when the time comes for that screen to ... |
31. Moving and resizing a JFrame without painting twice forums.oracle.comI'm working on a JFrame that has hideable 'drawers' on each side of a central panel. The goal is to have hiding or revealing a 'drawer' panel not adjust the position of the central panel (as though you were opening a drawer). I've got the functionality down; I'm encountering an irritating graphical issue, however. To accomplish the 'central panel stays in ... |