Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In the future please post an <a href="http://sscce.org" rel="nofollow">SSCCE</a> instead of copy/pasting some classes.</p> <p>Here's an SSCCE of your MainScreen, with the non-essentials stripped out, and a main method added:</p> <pre><code>import java.awt.*; import javax.swing.*; public class MainScreen extends JFrame { JTabbedPane tabbedPane = new JTabbedPane(); final JPanel entrance = new JPanel(); public MainScreen() { tabbedPane.addTab("Entrance", entrance); add(tabbedPane, BorderLayout.CENTER); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { JFrame frame = new MainScreen(); frame.setSize(300, 200); frame.setVisible(true); } }); } } </code></pre> <p>... and here's an SSCCE for QueryScreen:</p> <pre><code>import java.awt.*; import javax.swing.*; public class QueryScreen extends MainScreen { final JPanel queryList = new JPanel(); public QueryScreen() { tabbedPane.addTab("Query List", queryList); //add( tabbedPane, BorderLayout.CENTER ); /* not needed */ } public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { JFrame frame = new QueryScreen(); frame.setSize(300, 200); frame.setVisible(true); } }); } } </code></pre> <p>As you can see, this works, and for the most part, all I did was remove unnecessary code and added a main to each.</p> <p>If you're still having problems, please update your question with an SSCCE and post the specific problem you're having.</p>
    singulars
    1. This table or related slice is empty.
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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