...
 
Commits (2)
......@@ -41,6 +41,8 @@ public class Experimental {
}
}
public static void main(String[] args) throws BackingStoreException, IllegalArgumentException, IllegalAccessException{
int size = (int)(Toolkit.getDefaultToolkit().getScreenResolution()*.25);
System.setProperty("swing.plaf.metal.controlFont","DejaVu Sans Mono Book-"+size);
for (String s : experimentalRoot.childrenNames())
System.out.println(s);
......
// TeleTeachingTool - Presentation Recording With Automated Indexing
//
// Copyright (C) 2003-2008 Peter Ziewer - Technische Universitt Mnchen
// Copyright (C) 2003-2008 Peter Ziewer - Technische Universit�t M�nchen
//
// This file is part of TeleTeachingTool.
//
......@@ -63,12 +63,12 @@ public class RfbProtocol extends GraphicsContext implements Runnable,
this.connection = connection;
if (prefs.framebufferWidth > 1024 || prefs.framebufferHeight > 768) {
TTT.showMessage("Warning:\n" + "The current VNC desktop size is "
+ prefs.framebufferWidth + "x" + prefs.framebufferHeight
+ ".\n" + "A size of up to 1024x768 is recommended.",
"Warning: large resolution", JOptionPane.WARNING_MESSAGE);
}
// if (prefs.framebufferWidth > 1024 || prefs.framebufferHeight > 768) {
// TTT.showMessage("Warning:\n" + "The current VNC desktop size is "
// + prefs.framebufferWidth + "x" + prefs.framebufferHeight
// + ".\n" + "A size of up to 1024x768 is recommended.",
// "Warning: large resolution", JOptionPane.WARNING_MESSAGE);
// }
// streams
is = new DataInputStream(connection.getInputStream());
......
......@@ -1516,7 +1516,10 @@ public class TTT extends JFrame {
public static void main(String[] args) throws NumberFormatException,
IOException {
if (!System.getProperty("os.name").startsWith("Windows")) {
int size = (int)(Toolkit.getDefaultToolkit().getScreenResolution()*.2);
System.setProperty("swing.plaf.metal.controlFont","DejaVu Sans Mono Book-"+size);
}
// parse command line options
for (int i = 0; i < args.length; ++i) {
if (args[i].length() == 2 && args[i].charAt(0) == '-') {
......