package com.troi.balloon;

import java.awt.Dimension;
import java.awt.Graphics2D;

import javax.swing.JFrame;

public class Balloon implements Runnable {
	UiManager manager;
	private JFrame frame;
	
	public static void main(String[] args) {
		
		(new Thread(new Balloon())).start();
		
	}

	@Override
	public void run() {
		frame = new JFrame("Test");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setPreferredSize(new Dimension(800, 600));
		manager = new UiManager(frame);
		frame.pack();
		frame.setVisible(true);
//		frame.pack();
//        final RSyntaxTextArea textArea = new RSyntaxTextArea(20, 60);
//        textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA);
//        textArea.setCodeFoldingEnabled(true);
//        textArea.setText("public class Test {\n}");
//        RTextScrollPane sp = new RTextScrollPane(textArea);
//        frame.add(sp);
//        System.setProperty("java.home", "C:\\Program Files\\Java\\jdk1.7.0_71");
//        final JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
	}
}
@@ -36,25 +36,21 @@
 ava.awt.
-Dimension
+Color
 ;%0Aimport
@@ -63,18 +63,17 @@
 awt.
-Graphics2D
+Dimension
 ;%0A%0Ai
@@ -449,16 +449,18 @@
 00));%0A%09%09
+//
 manager 
@@ -483,16 +483,79 @@
 frame);%0A
+%09%09frame.add(new ButtonComponent(20, 20, 20, 20, Color.BLACK));%0A
 %09%09frame.

fix your code patapoff