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:testes.Histograma.java

public Histograma(String title) {
    super(title);
    JPanel chartPanel = crearPanel();
    chartPanel.setPreferredSize(new java.awt.Dimension(500, 475));
    setContentPane(chartPanel);/*from   w ww . jav  a 2  s .  c  om*/
}

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

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

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

public WindChartDemo1(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.XYPolygonAnnotationDemo1.java

public XYPolygonAnnotationDemo1(String s) {
    super(s);//from   www  .  j  ava  2s  .  c  om
    JPanel jpanel = createDemoPanel();
    jpanel.setPreferredSize(new Dimension(500, 270));
    setContentPane(jpanel);
}

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

public XYStepRendererDemo1(String s) {
    super(s);/*from ww w.  j  a  v a2  s. com*/
    JPanel jpanel = createDemoPanel();
    jpanel.setPreferredSize(new Dimension(500, 300));
    setContentPane(jpanel);
}

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

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

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

public MeterChartDemo3(String s) {
    super(s);//  www.ja  v a2 s  .  co m
    JPanel jpanel = createDemoPanel();
    jpanel.setPreferredSize(new Dimension(500, 270));
    setContentPane(jpanel);
}

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

public StackedBarChartDemo7(String s) {
    super(s);//from  www  . ja  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.XYLine3DRendererDemo1.java

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

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

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