// --------------- private methods ---------------
private void compile(final Display d)
{
final NativeCompiler jc = new NativeCompiler(this, AppController.getAppController().getCurrentProject());
tLog.setText("");
JNC.getPreviousButton().setEnabled(false);
bCompile.setEnabled(false);
new Thread()
{
public void run()
{
try
{
if(jc.compile()) syncLog("\n\ndone", d);
else syncLog("\n\nfailed...", d);
} catch(Exception ex)
{
ex.printStackTrace();
syncLog("\n\nfailed:\n", d);