Warning: session_start(): open(/var/lib/php/sessions/sess_affjdscgb9otd1m05m5vqk8qp3, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!752
static JTextArea textArea;
static JLabel status;
static S snippetID = "#636";
public static void main(final String[] args) {
awt {
if (args.length != 0) snippetID = args[0];
JFrame frame = new JFrame(formatSnippetID(snippetID) + " - Showing Snippet");
JPanel panel = new JPanel(new BorderLayout());
textArea = newTypeWriterTextArea();
textArea.setEditable(false);
panel.add(BorderLayout.CENTER, new JScrollPane(textArea));
status = new JLabel("Loading...");
panel.add(BorderLayout.SOUTH, status);
thread {
final S s = loadSnippet(snippetID);
awt {
status.setText("Loaded " + s.length() + " chars.");
textArea.setText(s);
//textArea.scrollRectToVisible(new Rectangle(0, 0, 1, 1));
textArea.setCaretPosition(0);
}
}
frame.add(panel);
frame.setBounds(100, 100, 500, 400);
frame.setVisible(true);
}
}