This commit is contained in:
2017-04-07 00:49:56 +02:00
parent 631384e6bc
commit e7de86a83f
4 changed files with 21 additions and 19 deletions

View File

@ -658,6 +658,8 @@ public class Chart extends javax.swing.JPanel implements QuoteReceiver, Scrollab
if (Globals.se == null) {
return;
}
super.paintComponent(g);

View File

@ -27,6 +27,8 @@ package gui;
import java.awt.Dialog;
import java.awt.Frame;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
@ -66,7 +68,7 @@ public class NewMDIApplication extends javax.swing.JFrame {
this.chartSrollPane.setVerticalScrollBarPolicy(VERTICAL_SCROLLBAR_NEVER);
// Globals.frame = this;
// this.setLocationRelativeTo(this);
//this.setLocationRelativeTo(null);
System.out.printf("Set title\n");
setTitle("SeSim - Stock Exchange Simmulator");
}
@ -742,6 +744,16 @@ public class NewMDIApplication extends javax.swing.JFrame {
public static void main(String args[]) throws IllegalAccessException, InstantiationException {
System.out.printf("Main called\n");
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[]gs = ge.getScreenDevices();
for (GraphicsDevice d:gs){
System.out.printf("ID %s\n",d.getIDstring());
}
//System.exit(0);
Globals.initGlobals();
//System.exit(0);