About 2,230,000 results
Open links in new tab
  1. java - Adding image to JFrame - Stack Overflow

    Aug 2, 2013 · Here is a simple example of adding an image to a JFrame:

  2. java - Setting background color for a JFrame - Stack Overflow

    Jul 4, 2009 · How do you set the background color for a JFrame?

  3. java - How do I create a new JFrame? - Stack Overflow

    Nov 4, 2016 · 4 Creating a new JFrame The way to create a new instance of a JFrame is pretty simple. All you have to do is:

  4. java - JFrame Maximize window - Stack Overflow

    Jan 26, 2009 · I'm putting together a quick and dirty animation using swing. I would like the window to be maximized. How can I do that?

  5. java - JFrame inside another JFrame - Stack Overflow

    Jun 25, 2013 · You can't put one JFrame inside another. You have a couple of design choices here. You can change your JFrames to JPanels. This is probably the easiest change. On the …

  6. Java Swing JFrame Layout - Stack Overflow

    To use it you will need to set JFrame layout by using JFrame.setLayout (layout) and to pass flow layout as a parameter. Following example shows components arranged in flow layout:

  7. java - Open a new JFrame - Stack Overflow

    13 can't resist, simple disagree with answers JFrame frame = new JFrame(); and frame.setVisible(true); I want to open a new JFrame when the user hits the first calculate …

  8. How to get location of a mouse click relative to a swing window

    Sep 13, 2012 · Say I'm in a Java Swing JFrame. I click my mouse. I want to get the location of the mouse click within the GUI. In java, the line int mouseX = …

  9. java - Using JFrame or JPanel - Stack Overflow

    Feb 13, 2013 · 0 This article seems informative: Summary: JPanel serves as a general purpose container, while JFrame is a window commonly used for stand-alone applications, like a …

  10. java - Drag and Resize undecorated JFrame - Stack Overflow

    Jun 29, 2014 · Currently, I am using the following code to drag and move my undecordated JFrames. private void initialiseGUI (Component component) { //<editor-fold …