List of usage examples for javax.swing JPanel setPreferredSize
@BeanProperty(preferred = true, description = "The preferred size of the component.") public void setPreferredSize(Dimension preferredSize)
From source file:org.jfree.chart.demo.XIntervalSeriesCollectionDemo1.java
public XIntervalSeriesCollectionDemo1(String s) { super(s);// w w w .j a v a 2 s . co m JPanel jpanel = createDemoPanel(); jpanel.setPreferredSize(new Dimension(500, 270)); setContentPane(jpanel); }
From source file:org.jfree.chart.demo.LogarithmicAxisDemo1.java
public LogarithmicAxisDemo1(String s) { super(s);//from w ww .j av a 2 s .c o m JPanel jpanel = createDemoPanel(); jpanel.setPreferredSize(new Dimension(500, 270)); setContentPane(jpanel); }
From source file:org.jfree.chart.demo.LogAxisDemo1.java
public LogAxisDemo1(String s) { super(s);/*from w w w .j av a 2 s .c o m*/ JPanel jpanel = createDemoPanel(); jpanel.setPreferredSize(new Dimension(500, 270)); setContentPane(jpanel); }
From source file:org.jfree.chart.demo.SymbolAxisDemo1.java
public SymbolAxisDemo1(String s) { super(s);/*ww w. j a va2s . c o m*/ JPanel jpanel = createDemoPanel(); jpanel.setPreferredSize(new Dimension(500, 300)); setContentPane(jpanel); }
From source file:org.jfree.chart.demo.XYBarChartDemo6.java
public XYBarChartDemo6(String s) { super(s);// w w w . j av a2 s .co m JPanel jpanel = createDemoPanel(); jpanel.setPreferredSize(new Dimension(500, 300)); setContentPane(jpanel); }
From source file:MainClass.java
MainClass() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Vector v = new Vector(); v.add("First item"); v.add("Second item"); v.add("Third item"); v.add("Fourth item"); JPanel p = new JPanel(); p.setPreferredSize(new Dimension(200, 100)); JList jl = new JList(v); jl.setPreferredSize(new Dimension(100, 75)); p.add(new JScrollPane(jl)); getContentPane().add(p);//from ww w . j a v a2s . c o m pack(); setVisible(true); }
From source file:org.jfree.chart.demo.HistogramDemo1.java
public HistogramDemo1(String s) { super(s);/*from w ww.ja v a 2s .co m*/ JPanel jpanel = createDemoPanel(); jpanel.setPreferredSize(new Dimension(500, 270)); setContentPane(jpanel); }
From source file:org.jfree.chart.demo.LogarithmicAxisDemo2.java
public LogarithmicAxisDemo2(String s) { super(s);//from w w w . j av a 2s . com JPanel jpanel = createDemoPanel(); jpanel.setPreferredSize(new Dimension(500, 270)); setContentPane(jpanel); }
From source file:org.jfree.chart.demo.StackedXYBarChartDemo1.java
public StackedXYBarChartDemo1(String s) { super(s);//from ww w.j a va 2 s. c om JPanel jpanel = createDemoPanel(); jpanel.setPreferredSize(new Dimension(500, 270)); setContentPane(jpanel); }
From source file:org.jfree.chart.demo.YIntervalChartDemo1.java
public YIntervalChartDemo1(String s) { super(s);/*from w w w. j av a 2 s. c om*/ JPanel jpanel = createDemoPanel(); jpanel.setPreferredSize(new Dimension(500, 300)); setContentPane(jpanel); }