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.RelativeDateFormatDemo1.java

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

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

public XYSplineRendererDemo1a(String s) {
    super(s);/*from www. j  av  a  2  s .  c o m*/
    JPanel jpanel = createDemoPanel();
    jpanel.setPreferredSize(new Dimension(500, 270));
    getContentPane().add(jpanel);
}

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

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

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

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

public XYBarChartDemo7(String s) {
    super(s);/*from   www  . j  a  va  2  s  . c om*/
    JPanel jpanel = createDemoPanel();
    jpanel.setPreferredSize(new Dimension(500, 300));
    setContentPane(jpanel);
}

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

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

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

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

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

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

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

public XYShapeRendererDemo1(String s) {
    super(s);//from  w w  w  .  jav  a2s.  c  o m
    JPanel jpanel = createDemoPanel();
    jpanel.setPreferredSize(new Dimension(500, 270));
    setContentPane(jpanel);
}

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

public DeviationRendererDemo2(String s) {
    super(s);//  ww w.ja  va2  s .c  om
    JPanel jpanel = createDemoPanel();
    jpanel.setPreferredSize(new Dimension(500, 270));
    setContentPane(jpanel);
}