1. Arc2D.Double contains(double x, double y) method not working stackoverflow.comBackground: A little background info, this is taking place on JPanel (PiePanel) thats inside a JPanel on a JFrame. On PiePanel, i have added a Component that draws objects from ... |
2. Getting JFrame to contain JPanel stackoverflow.comI have a JFrame that I am sticking a JPanel into to display an image, in this case 1024x1025. The problem I cannot seem to find an answer to is ... |
3. 1 JFrame containing Two JPanels... coderanch.comimport java.awt.*; import javax.swing.*; class TSPanel extends JPanel { public TSPanel () { this.setBackground (Color.blue); Dimension d1 = new Dimension(250, 150); this.setMaximumSize(d1); } public void paintComponent (Graphics g) { super.paintComponent(g); g.drawString ("Hello World!", 100, 100); } } public class ts4copy { public static void main (String[] argv) { JFrame frame = new JFrame (); frame.setTitle ("Hello World Test"); frame.setResizable (true); frame.setSize ... |
4. Can a jpanel refer to its containing jframe to run a method? forums.oracle.comI have a JFrame using a card layout. Two separate JPanels are added to the layout, each with its own functioning command buttons. Is there a way for a button click on the first panel to flip the card, i.e., display the second panel? Edited by: ScottBrush on May 25, 2009 3:40 PM |
5. Get containing JFrame from a JPanel. forums.oracle.com |