Skip to content

Instantly share code, notes, and snippets.

@maheshmc2
Created March 13, 2011 12:06
Show Gist options
  • Save maheshmc2/868045 to your computer and use it in GitHub Desktop.
Save maheshmc2/868045 to your computer and use it in GitHub Desktop.
JScrollPane Issue
this.queryName = qname;
JFrame frame = new JFrame(title);
frame.setLayout(new GridLayout(2, 1)); //.. UPPER FOR QUERY AND LOWER FOR RESULT
this.ijtable = new ImageJTable(result, Setting.getColumnCount());
ijtable.setVisible(true);
JScrollPane pane = new JScrollPane(ijtable);
JLabel query = new JLabel(new ImageIcon(ImageResize.resize(queryName, Setting.getQueryWidth(), Setting.getQueryWidth())));
query.setVisible(true);
frame.add(query);
frame.add(ijtable);
frame.add(pane);
frame.setSize(Setting.getFrameWidth(), Setting.getFrameHeight());
frame.setVisible(true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment