Example usage for javax.swing JPanel setPreferredSize

List of usage examples for javax.swing JPanel setPreferredSize

Introduction

In this page you can find the example usage for javax.swing JPanel setPreferredSize.

Prototype

@BeanProperty(preferred = true, description = "The preferred size of the component.")
public void setPreferredSize(Dimension preferredSize) 

Source Link

Document

Sets the preferred size of this component.

Usage

From source file:org.jfree.chart.demo.PeriodAxisDemo3.java

public PeriodAxisDemo3(String s) {
    super(s);/*from  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.StackedXYBarChartDemo3.java

public StackedXYBarChartDemo3(String s) {
    super(s);/*  w  ww.j  a  v  a2  s.c o m*/
    JPanel jpanel = createDemoPanel();
    jpanel.setPreferredSize(new Dimension(500, 270));
    setContentPane(jpanel);
}

From source file:org.jfree.chart.demo.MovingAverageDemo1.java

public MovingAverageDemo1(String s) {
    super(s);//  w w  w  .  j  a  v a 2  s  . com
    JPanel jpanel = createDemoPanel();
    jpanel.setPreferredSize(new Dimension(500, 270));
    setContentPane(jpanel);
}

From source file:org.jfree.chart.demo.ParetoChartDemo1.java

public ParetoChartDemo1(String s) {
    super(s);//  ww  w  . j a v a 2 s .  co  m
    JPanel jpanel = createDemoPanel();
    jpanel.setPreferredSize(new Dimension(550, 270));
    setContentPane(jpanel);
}

From source file:org.jfree.chart.demo.CrosshairDemo4.java

public CrosshairDemo4(String s) {
    super(s);// ww  w  .j a  va  2s  .co m
    JPanel jpanel = createDemoPanel();
    jpanel.setPreferredSize(new Dimension(500, 270));
    setContentPane(jpanel);
}

From source file:org.jfree.chart.demo.CylinderChartDemo1.java

public CylinderChartDemo1(String s) {
    super(s);/*w  ww. j av  a  2  s.c  om*/
    JPanel jpanel = createDemoPanel();
    jpanel.setPreferredSize(new Dimension(500, 270));
    setContentPane(jpanel);
}

From source file:org.jfree.chart.demo.XYTaskDatasetDemo1.java

public XYTaskDatasetDemo1(String s) {
    super(s);//  w  w  w.j av a  2s  .  com
    JPanel jpanel = createDemoPanel();
    jpanel.setPreferredSize(new Dimension(500, 300));
    setContentPane(jpanel);
}

From source file:org.jfree.chart.demo.DeviationRendererDemo3.java

public DeviationRendererDemo3(String s) {
    super(s);// ww w .j ava 2 s  .co m
    JPanel jpanel = createDemoPanel();
    jpanel.setPreferredSize(new Dimension(500, 270));
    setContentPane(jpanel);
}

From source file:org.jfree.chart.demo.SubCategoryAxisDemo1.java

public SubCategoryAxisDemo1(String s) {
    super(s);/*from w  ww.j  a  va 2  s  .c  o m*/
    JPanel jpanel = createDemoPanel();
    jpanel.setPreferredSize(new Dimension(500, 270));
    setContentPane(jpanel);
}

From source file:org.jfree.chart.demo.YIntervalChartDemo2.java

public YIntervalChartDemo2(String s) {
    super(s);/*  ww  w  . j  a va 2  s  .  co  m*/
    JPanel jpanel = createDemoPanel();
    jpanel.setPreferredSize(new Dimension(500, 270));
    setContentPane(jpanel);
}