Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Without knowing exactly what you're looking for, I'm guessing you could find it pretty quickly in the Swing section of StackOverflow: <a href="https://stackoverflow.com/questions/tagged/swing">https://stackoverflow.com/questions/tagged/swing</a></p> <p>There are many <a href="http://sscce.org/" rel="nofollow noreferrer">sscce</a> in both questions and answers which will give you a starting point for creating a GUI (which I assume is your sticking point at the moment). </p> <p>With that assumption, here's some code to get you started - this will create a frame and a content panel for you. Other components will tend to extend the <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/JComponent.html" rel="nofollow noreferrer">JComponent</a> object (like <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/JButton.html" rel="nofollow noreferrer">JButton</a>, <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/JLabel.html" rel="nofollow noreferrer">JLabel</a>, and <a href="http://docs.oracle.com/javase/6/docs/api/javax/swing/JTextField.html" rel="nofollow noreferrer">JTextField</a>). The <a href="http://docs.oracle.com/javase/6/docs/api/index.html" rel="nofollow noreferrer">JavaDocs</a> are a great item to browse (easiest in "frames" mode) for more information on Java and Swing.</p> <pre><code>import javax.swing.*; public class MainPanel extends Box{ public MainPanel(){ super(BoxLayout.Y_AXIS); // Add other elements to your box using: // add(item to add); } public static void main(String[] args){ final JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.add(new MainPanel()); frame.pack(); frame.setSize(400, 300); frame.setLocationRelativeTo(null); frame.setVisible(true); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload