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.selection.SelectionDemo7ScatterRenderer.java
/** * Creates a new demo instance.//from ww w .ja va 2s. co m * * @param title the frame title. */ public SelectionDemo7ScatterRenderer(String title) { super(title); JPanel chartPanel = createDemoPanel(); chartPanel.setPreferredSize(new java.awt.Dimension(500, 270)); setContentPane(chartPanel); }
From source file:ntpgraphic.PieChart.java
public PieChart(String s) throws IOException { super(s);//from w w w.j a v a 2s . c o m JPanel jpanel = createDemoPanel(); jpanel.setPreferredSize(new Dimension(500, 320)); setContentPane(jpanel); ChartUtilities.saveChartAsPNG(new File("/Users/JuanCa/Desktop/grafica_9.png"), jfreechart, 500, 300); }
From source file:com.seagate.kinetic.monitor.view.DefaultKineticOverviewView.java
public DefaultKineticOverviewView(String title, String unitName) { super(title); this.unitName = unitName; JPanel jpanel = new ChartPanel(createChart(defaultcategorydataset)); jpanel.setPreferredSize(new Dimension(590, 350)); setContentPane(jpanel);/* ww w . j a va 2 s.c om*/ }
From source file:org.physionet.wfdb.examples.PlotECGQRSDemo2.java
public PlotECGQRSDemo2(String title) { super(title); JPanel chartPanel = createDemoPanel(); chartPanel.setPreferredSize(new java.awt.Dimension(500, 270)); setContentPane(chartPanel);/*from ww w .j a v a 2 s . c o m*/ }
From source file:com.microsoft.alm.plugin.idea.git.ui.pullrequest.CreatePullRequestDialog.java
@Nullable @Override// ww w . j a v a 2 s . c o m protected JComponent createCenterPanel() { createPullRequestForm = new CreatePullRequestForm(); final JPanel createPRForm = createPullRequestForm.getContentPanel(); createPRForm.setPreferredSize(new Dimension(600, 800)); return createPRForm; }
From source file:org.jfree.chart.demo.selection.SelectionDemo6Pie.java
public SelectionDemo6Pie(String title) { super(title); JPanel chartPanel = createDemoPanel(); chartPanel.setPreferredSize(new java.awt.Dimension(700, 500)); JSplitPane split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT); split.add(chartPanel);/*from w w w . ja va 2 s . com*/ this.model = new DefaultTableModel(new String[] { "section", "value:" }, 0); this.table = new JTable(this.model); TableColumnModel tcm = this.table.getColumnModel(); JPanel p = new JPanel(new BorderLayout()); JScrollPane scroller = new JScrollPane(this.table); p.add(scroller); p.setBorder(BorderFactory.createCompoundBorder(new TitledBorder("Selected Items: "), new EmptyBorder(4, 4, 4, 4))); split.add(p); setContentPane(split); }
From source file:org.jfree.chart.demo.SurveyResultsDemo1.java
public SurveyResultsDemo1(String s) { super(s);/* w w w . ja va 2 s . c o m*/ JPanel jpanel = createDemoPanel(); jpanel.setPreferredSize(new Dimension(700, 600)); setContentPane(jpanel); }
From source file:wef.articulab.view.ui.BNCategoryPlot.java
/** * Creates a new demo instance./*from w ww . j av a2 s. com*/ * * @param title the frame title. */ public BNCategoryPlot(String title, String[] series) { super(title); this.series = series; JPanel chartPanel = createDemoPanel(); chartPanel.setPreferredSize(new java.awt.Dimension(1100, 1000)); setContentPane(chartPanel); }
From source file:org.physionet.graphics.Plot.java
public Plot(String title, String timeLabel, String amplitudeLabel, ArrayList[] data) { super(title); JPanel chartPanel = createDemoPanel(title, timeLabel, amplitudeLabel, data); chartPanel.setPreferredSize(new java.awt.Dimension(500, 270)); setContentPane(chartPanel);//from www .ja va 2 s . c o m }
From source file:ChartUsingJava.CombinedCategoryPlotDemo1.java
/** * Creates a new demo instance./*from w ww . j a v a 2 s . c o m*/ * * @param title the frame title. */ public CombinedCategoryPlotDemo1(String title) { super(title); JPanel chartPanel = createDemoPanel(); chartPanel.setPreferredSize(new java.awt.Dimension(500, 270)); setContentPane(chartPanel); }