congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ApplicationFrame
Code IndexAdd Tabnine to your IDE (free)

How to use
ApplicationFrame
in
org.jfree.ui

Best Java code snippets using org.jfree.ui.ApplicationFrame (Showing top 17 results out of 315)

origin: ExpediaDotCom/adaptive-alerting

public static void showChartFrame(ApplicationFrame chartFrame) {
  chartFrame.pack();
  RefineryUtilities.positionFrameRandomly(chartFrame);
  chartFrame.setVisible(true);
}

origin: org.jfree/jcommon

/**
 * Constructs a new application frame.
 *
 * @param title  the frame title.
 */
public ApplicationFrame(final String title) {
  super(title);
  addWindowListener(this);
}
origin: org.jfree/jcommon

/**
 * Listens for the main window closing, and shuts down the application.
 *
 * @param event  information about the window event.
 */
public void windowClosing(final WindowEvent event) {
  if (event.getWindow() == this) {
    dispose();
    System.exit(0);
  }
}
origin: mdeverdelhan/ta4j-origins

/**
 * Displays a chart in a frame.
 * @param chart the chart to be displayed
 */
private static void displayChart(JFreeChart chart) {
  // Chart panel
  ChartPanel panel = new ChartPanel(chart);
  panel.setFillZoomRectangle(true);
  panel.setMouseWheelEnabled(true);
  panel.setPreferredSize(new java.awt.Dimension(740, 300));
  // Application frame
  ApplicationFrame frame = new ApplicationFrame("Ta4j example - Candlestick chart");
  frame.setContentPane(panel);
  frame.pack();
  RefineryUtilities.centerFrameOnScreen(frame);
  frame.setVisible(true);
}

origin: ExpediaDotCom/adaptive-alerting

public static ApplicationFrame createChartFrame(String title, JFreeChart... charts) {
  ApplicationFrame chartFrame = new ApplicationFrame(title);

  final JPanel panel = new JPanel();
  panel.setLayout(new GridLayout(0, 1));
  
  for (JFreeChart chart : charts) {
    final ChartPanel chartPanel = new ChartPanel(chart);
    chartPanel.setPreferredSize(new Dimension(800, 300));
    chartPanel.setMouseZoomable(true, false);
    panel.add(chartPanel);
  }
  chartFrame.setContentPane(panel);
  
  return chartFrame;
}

origin: mdeverdelhan/ta4j-origins

/**
 * Displays a chart in a frame.
 * @param chart the chart to be displayed
 */
private static void displayChart(JFreeChart chart) {
  // Chart panel
  ChartPanel panel = new ChartPanel(chart);
  panel.setFillZoomRectangle(true);
  panel.setMouseWheelEnabled(true);
  panel.setPreferredSize(new java.awt.Dimension(500, 270));
  // Application frame
  ApplicationFrame frame = new ApplicationFrame("Ta4j example - Indicators to chart");
  frame.setContentPane(panel);
  frame.pack();
  RefineryUtilities.centerFrameOnScreen(frame);
  frame.setVisible(true);
}
origin: mdeverdelhan/ta4j-origins

/**
 * Displays a chart in a frame.
 * @param chart the chart to be displayed
 */
private static void displayChart(JFreeChart chart) {
  // Chart panel
  ChartPanel panel = new ChartPanel(chart);
  panel.setFillZoomRectangle(true);
  panel.setMouseWheelEnabled(true);
  panel.setPreferredSize(new Dimension(1024, 400));
  // Application frame
  ApplicationFrame frame = new ApplicationFrame("Ta4j example - Buy and sell signals to chart");
  frame.setContentPane(panel);
  frame.pack();
  RefineryUtilities.centerFrameOnScreen(frame);
  frame.setVisible(true);
}
origin: jfree/jcommon

/**
 * Listens for the main window closing, and shuts down the application.
 *
 * @param event  information about the window event.
 */
public void windowClosing(final WindowEvent event) {
  if (event.getWindow() == this) {
    dispose();
    System.exit(0);
  }
}
origin: jfree/jcommon

/**
 * Constructs a new application frame.
 *
 * @param title  the frame title.
 */
public ApplicationFrame(final String title) {
  super(title);
  addWindowListener(this);
}
origin: jnidzwetzki/crypto-bot

/**
 * Displays a chart in a frame.
 * 
 * @param chart
 *            the chart to be displayed
 */
private static void displayChart(JFreeChart chart) {
  // Chart panel
  ChartPanel panel = new ChartPanel(chart);
  panel.setFillZoomRectangle(true);
  panel.setMouseWheelEnabled(true);
  panel.setPreferredSize(new Dimension(1024, 400));
  // Application frame
  ApplicationFrame frame = new ApplicationFrame("Ta4j example - Buy and sell signals to chart");
  frame.setContentPane(panel);
  frame.pack();
  RefineryUtilities.centerFrameOnScreen(frame);
  frame.setVisible(true);
}

origin: org.jfree/com.springsource.org.jfree

/**
 * Listens for the main window closing, and shuts down the application.
 *
 * @param event  information about the window event.
 */
public void windowClosing(final WindowEvent event) {
  if (event.getWindow() == this) {
    dispose();
    System.exit(0);
  }
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Constructs a new application frame.
 *
 * @param title  the frame title.
 */
public ApplicationFrame(final String title) {
  super(title);
  addWindowListener(this);
}
origin: mdeverdelhan/ta4j-origins

/**
 * Displays a chart in a frame.
 * @param chart the chart to be displayed
 */
private static void displayChart(JFreeChart chart) {
  // Chart panel
  ChartPanel panel = new ChartPanel(chart);
  panel.setFillZoomRectangle(true);
  panel.setMouseWheelEnabled(true);
  panel.setPreferredSize(new Dimension(1024, 400));
  // Application frame
  ApplicationFrame frame = new ApplicationFrame("Ta4j example - Cash flow to chart");
  frame.setContentPane(panel);
  frame.pack();
  RefineryUtilities.centerFrameOnScreen(frame);
  frame.setVisible(true);
}
origin: improbable-research/keanu

private static void display(JFreeChart chart, String title) {
  ApplicationFrame frame = new ApplicationFrame(title);
  final ChartPanel chartPanel = new ChartPanel(chart);
  chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
  frame.setContentPane(chartPanel);
  frame.pack();
  RefineryUtilities.centerFrameOnScreen(frame);
  frame.setVisible(true);
}
origin: openimaj/openimaj

final ApplicationFrame frame = new ApplicationFrame("Title");
frame.setContentPane(chartPanel);
frame.pack();
frame.setVisible(true);
origin: org.openimaj/sandbox

final ApplicationFrame frame = new ApplicationFrame("Title");
frame.setContentPane(chartPanel);
frame.pack();
frame.setVisible(true);
origin: stackoverflow.com

ChartPanel chartPanel = new ChartPanel(chart);
chartPanel.setPreferredSize(new Dimension(500, 270));
ApplicationFrame frame = new ApplicationFrame("Example");
frame.setContentPane(chartPanel);
frame.pack();
frame.setVisible(true);
org.jfree.uiApplicationFrame

Javadoc

A base class for creating the main frame for simple applications. The frame listens for window closing events, and responds by shutting down the JVM. This is OK for small demo applications...for more serious applications, you'll want to use something more robust.

Most used methods

  • <init>
    Constructs a new application frame.
  • pack
  • setContentPane
  • setVisible
  • addWindowListener
  • dispose

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now