Input:
    private void addContentTab()
    {
        wContentTab=new CTabItem(wTabFolder, SWT.NONE);
        wContentTab.setText(Messages.getString("TextFileInputDialog.ContentTab.TabTitle"));
        FormLayout contentLayout = new FormLayout ();
        contentLayout.marginWidth  = 3;
        contentLayout.marginHeight = 3;
        wContentSComp = new ScrolledComposite(wTabFolder, SWT.V_SCROLL | SWT.H_SCROLL );
        wContentSComp.setLayout(new FillLayout());
        wContentComp = new Composite(wContentSComp, SWT.NONE );
        props.setLook(wContentComp);
        wContentComp.setLayout(contentLayout);
        wlFiletype=new Label(wContentComp, SWT.RIGHT);
        wlFiletype.setText(Messages.getString("TextFileInputDialog.Filetype.Label"));
        props.setLook(wlFiletype);
        fdlFiletype=new FormData();
        fdlFiletype.left = new FormAttachment(0, 0);
        fdlFiletype.top  = new FormAttachment(0, 0);
        fdlFiletype.right= new FormAttachment(middle, -margin);
        wlFiletype.setLayoutData(fdlFiletype);
        wFiletype=new CCombo(wContentComp, SWT.BORDER | SWT.READ_ONLY);
        wFiletype.setText(Messages.getString("TextFileInputDialog.Filetype.Label"));
        props.setLook(wFiletype);
        wFiletype.add("CSV");
        wFiletype.add("Fixed");
        wFiletype.select(0);
        wFiletype.addModifyListener(lsMod);
        fdFiletype=new FormData();
        fdFiletype.left = new FormAttachment(middle, 0);
        fdFiletype.top  = new FormAttachment(0, 0);
        fdFiletype.right= new FormAttachment(100, 0);
        wFiletype.setLayoutData(fdFiletype);
        wlSeparator=new Label(wContentComp, SWT.RIGHT);
        wlSeparator.setText(Messages.getString("TextFileInputDialog.Separator.Label"));
        props.setLook(wlSeparator);
        fdlSeparator=new FormData();
        fdlSeparator.left = new FormAttachment(0, 0);
        fdlSeparator.top  = new FormAttachment(wFiletype, margin);
        fdlSeparator.right= new FormAttachment(middle, -margin);
        wlSeparator.setLayoutData(fdlSeparator);
        wbSeparator=new Button(wContentComp, SWT.PUSH| SWT.CENTER);
        props.setLook(wbSeparator);
        wbSeparator.setText(Messages.getString("TextFileInputDialog.Separator.Button"));
        fdbSeparator=new FormData();
        fdbSeparator.right= new FormAttachment(100, 0);
        fdbSeparator.top  = new FormAttachment(wFiletype, 0);
        wbSeparator.setLayoutData(fdbSeparator);
        wSeparator=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        props.setLook(wSeparator);
        wSeparator.addModifyListener(lsMod);
        fdSeparator=new FormData();
        fdSeparator.left = new FormAttachment(middle, 0);
        fdSeparator.top  = new FormAttachment(wFiletype, margin);
        fdSeparator.right= new FormAttachment(wbSeparator, -margin);
        wSeparator.setLayoutData(fdSeparator);
        wlEnclosure=new Label(wContentComp, SWT.RIGHT);
        wlEnclosure.setText(Messages.getString("TextFileInputDialog.Enclosure.Label"));
        props.setLook(wlEnclosure);
        fdlEnclosure=new FormData();
        fdlEnclosure.left = new FormAttachment(0, 0);
        fdlEnclosure.top  = new FormAttachment(wSeparator, margin);
        fdlEnclosure.right= new FormAttachment(middle, -margin);
        wlEnclosure.setLayoutData(fdlEnclosure);
        wEnclosure=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        props.setLook(wEnclosure);
        wEnclosure.addModifyListener(lsMod);
        fdEnclosure=new FormData();
        fdEnclosure.left = new FormAttachment(middle, 0);
        fdEnclosure.top  = new FormAttachment(wSeparator, margin);
        fdEnclosure.right= new FormAttachment(100, 0);
        wEnclosure.setLayoutData(fdEnclosure);
        wlEnclBreaks=new Label(wContentComp, SWT.RIGHT);
        wlEnclBreaks.setText(Messages.getString("TextFileInputDialog.EnclBreaks.Label"));
        props.setLook(wlEnclBreaks);
        fdlEnclBreaks=new FormData();
        fdlEnclBreaks.left = new FormAttachment(0, 0);
        fdlEnclBreaks.top  = new FormAttachment(wEnclosure, margin);
        fdlEnclBreaks.right= new FormAttachment(middle, -margin);
        wlEnclBreaks.setLayoutData(fdlEnclBreaks);
        wEnclBreaks=new Button(wContentComp, SWT.CHECK);
        props.setLook(wEnclBreaks);
        fdEnclBreaks=new FormData();
        fdEnclBreaks.left = new FormAttachment(middle, 0);
        fdEnclBreaks.top  = new FormAttachment(wEnclosure, margin);
        wEnclBreaks.setLayoutData(fdEnclBreaks);
        wlEnclBreaks.setEnabled(false);
        wEnclBreaks.setEnabled(false);
        wlEscape=new Label(wContentComp, SWT.RIGHT);
        wlEscape.setText(Messages.getString("TextFileInputDialog.Escape.Label"));
        props.setLook(wlEscape);
        fdlEscape=new FormData();
        fdlEscape.left = new FormAttachment(0, 0);
        fdlEscape.top  = new FormAttachment(wlEnclBreaks, margin);
        fdlEscape.right= new FormAttachment(middle, -margin);
        wlEscape.setLayoutData(fdlEscape);
        wEscape=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        props.setLook(wEscape);
        wEscape.addModifyListener(lsMod);
        fdEscape=new FormData();
        fdEscape.left = new FormAttachment(middle, 0);
        fdEscape.top  = new FormAttachment(wlEnclBreaks, margin);
        fdEscape.right= new FormAttachment(100, 0);
        wEscape.setLayoutData(fdEscape);
        wlHeader=new Label(wContentComp, SWT.RIGHT);
        wlHeader.setText(Messages.getString("TextFileInputDialog.Header.Label"));
        props.setLook(wlHeader);
        fdlHeader=new FormData();
        fdlHeader.left = new FormAttachment(0, 0);
        fdlHeader.top  = new FormAttachment(wEscape, margin);
        fdlHeader.right= new FormAttachment(middle, -margin);
        wlHeader.setLayoutData(fdlHeader);
        wHeader=new Button(wContentComp, SWT.CHECK);
        props.setLook(wHeader);
        fdHeader=new FormData();
        fdHeader.left = new FormAttachment(middle, 0);
        fdHeader.top  = new FormAttachment(wEscape, margin);
        wHeader.setLayoutData(fdHeader);
        wlNrHeader=new Label(wContentComp, SWT.RIGHT);
        wlNrHeader.setText(Messages.getString("TextFileInputDialog.NrHeader.Label"));
        props.setLook(wlNrHeader);
        fdlNrHeader=new FormData();
        fdlNrHeader.left = new FormAttachment(wHeader, margin);
        fdlNrHeader.top  = new FormAttachment(wEscape, margin);
        wlNrHeader.setLayoutData(fdlNrHeader);
        wNrHeader=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        wNrHeader.setTextLimit(3);
        props.setLook(wNrHeader);
        wNrHeader.addModifyListener(lsMod);
        fdNrHeader=new FormData();
        fdNrHeader.left = new FormAttachment(wlNrHeader, margin);
        fdNrHeader.top  = new FormAttachment(wEscape, margin);
        fdNrHeader.right  = new FormAttachment(100, 0);
        wNrHeader.setLayoutData(fdNrHeader);
        wlFooter=new Label(wContentComp, SWT.RIGHT);
        wlFooter.setText(Messages.getString("TextFileInputDialog.Footer.Label"));
        props.setLook(wlFooter);
        fdlFooter=new FormData();
        fdlFooter.left = new FormAttachment(0, 0);
        fdlFooter.top  = new FormAttachment(wHeader, margin);
        fdlFooter.right= new FormAttachment(middle, -margin);
        wlFooter.setLayoutData(fdlFooter);
        wFooter=new Button(wContentComp, SWT.CHECK);
        props.setLook(wFooter);
        fdFooter=new FormData();
        fdFooter.left = new FormAttachment(middle, 0);
        fdFooter.top  = new FormAttachment(wHeader, margin);
        wFooter.setLayoutData(fdFooter);
        wlNrFooter=new Label(wContentComp, SWT.RIGHT);
        wlNrFooter.setText(Messages.getString("TextFileInputDialog.NrFooter.Label"));
        props.setLook(wlNrFooter);
        fdlNrFooter=new FormData();
        fdlNrFooter.left = new FormAttachment(wFooter, margin);
        fdlNrFooter.top  = new FormAttachment(wHeader, margin);
        wlNrFooter.setLayoutData(fdlNrFooter);
        wNrFooter=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        wNrFooter.setTextLimit(3);
        props.setLook(wNrFooter);
        wNrFooter.addModifyListener(lsMod);
        fdNrFooter=new FormData();
        fdNrFooter.left = new FormAttachment(wlNrFooter, margin);
        fdNrFooter.top  = new FormAttachment(wHeader, margin);
        fdNrFooter.right  = new FormAttachment(100, 0);
        wNrFooter.setLayoutData(fdNrFooter);
        wlWraps=new Label(wContentComp, SWT.RIGHT);
        wlWraps.setText(Messages.getString("TextFileInputDialog.Wraps.Label"));
        props.setLook(wlWraps);
        fdlWraps=new FormData();
        fdlWraps.left = new FormAttachment(0, 0);
        fdlWraps.top  = new FormAttachment(wFooter, margin);
        fdlWraps.right= new FormAttachment(middle, -margin);
        wlWraps.setLayoutData(fdlWraps);
        wWraps=new Button(wContentComp, SWT.CHECK);
        props.setLook(wWraps);
        fdWraps=new FormData();
        fdWraps.left = new FormAttachment(middle, 0);
        fdWraps.top  = new FormAttachment(wFooter, margin);
        wWraps.setLayoutData(fdWraps);
        wlNrWraps=new Label(wContentComp, SWT.RIGHT);
        wlNrWraps.setText(Messages.getString("TextFileInputDialog.NrWraps.Label"));
        props.setLook(wlNrWraps);
        fdlNrWraps=new FormData();
        fdlNrWraps.left = new FormAttachment(wWraps, margin);
        fdlNrWraps.top  = new FormAttachment(wFooter, margin);
        wlNrWraps.setLayoutData(fdlNrWraps);
        wNrWraps=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        wNrWraps.setTextLimit(3);
        props.setLook(wNrWraps);
        wNrWraps.addModifyListener(lsMod);
        fdNrWraps=new FormData();
        fdNrWraps.left = new FormAttachment(wlNrWraps, margin);
        fdNrWraps.top  = new FormAttachment(wFooter, margin);
        fdNrWraps.right  = new FormAttachment(100, 0);
        wNrWraps.setLayoutData(fdNrWraps);
        wlLayoutPaged=new Label(wContentComp, SWT.RIGHT);
        wlLayoutPaged.setText(Messages.getString("TextFileInputDialog.LayoutPaged.Label"));
        props.setLook(wlLayoutPaged);
        fdlLayoutPaged=new FormData();
        fdlLayoutPaged.left = new FormAttachment(0, 0);
        fdlLayoutPaged.top  = new FormAttachment(wWraps, margin);
        fdlLayoutPaged.right= new FormAttachment(middle, -margin);
        wlLayoutPaged.setLayoutData(fdlLayoutPaged);
        wLayoutPaged=new Button(wContentComp, SWT.CHECK);
        props.setLook(wLayoutPaged);
        fdLayoutPaged=new FormData();
        fdLayoutPaged.left = new FormAttachment(middle, 0);
        fdLayoutPaged.top  = new FormAttachment(wWraps, margin);
        wLayoutPaged.setLayoutData(fdLayoutPaged);
        wlNrLinesPerPage=new Label(wContentComp, SWT.RIGHT);
        wlNrLinesPerPage.setText(Messages.getString("TextFileInputDialog.NrLinesPerPage.Label"));
        props.setLook(wlNrLinesPerPage);
        fdlNrLinesPerPage=new FormData();
        fdlNrLinesPerPage.left = new FormAttachment(wLayoutPaged, margin);
        fdlNrLinesPerPage.top  = new FormAttachment(wWraps, margin);
        wlNrLinesPerPage.setLayoutData(fdlNrLinesPerPage);
        wNrLinesPerPage=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        wNrLinesPerPage.setTextLimit(3);
        props.setLook(wNrLinesPerPage);
        wNrLinesPerPage.addModifyListener(lsMod);
        fdNrLinesPerPage=new FormData();
        fdNrLinesPerPage.left = new FormAttachment(wlNrLinesPerPage, margin);
        fdNrLinesPerPage.top  = new FormAttachment(wWraps, margin);
        fdNrLinesPerPage.right  = new FormAttachment(100, 0);
        wNrLinesPerPage.setLayoutData(fdNrLinesPerPage);
        wlNrLinesDocHeader=new Label(wContentComp, SWT.RIGHT);
        wlNrLinesDocHeader.setText(Messages.getString("TextFileInputDialog.NrLinesDocHeader.Label"));
        props.setLook(wlNrLinesDocHeader);
        fdlNrLinesDocHeader=new FormData();
        fdlNrLinesDocHeader.left = new FormAttachment(wLayoutPaged, margin);
        fdlNrLinesDocHeader.top  = new FormAttachment(wNrLinesPerPage, margin);
        wlNrLinesDocHeader.setLayoutData(fdlNrLinesDocHeader);
        wNrLinesDocHeader=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        wNrLinesDocHeader.setTextLimit(3);
        props.setLook(wNrLinesDocHeader);
        wNrLinesDocHeader.addModifyListener(lsMod);
        fdNrLinesDocHeader=new FormData();
        fdNrLinesDocHeader.left = new FormAttachment(wlNrLinesPerPage, margin);
        fdNrLinesDocHeader.top  = new FormAttachment(wNrLinesPerPage, margin);
        fdNrLinesDocHeader.right = new FormAttachment(100, 0);
        wNrLinesDocHeader.setLayoutData(fdNrLinesDocHeader);
        wlCompression=new Label(wContentComp, SWT.RIGHT);
        wlCompression.setText(Messages.getString("TextFileInputDialog.Compression.Label"));
        props.setLook(wlCompression);
        fdlCompression=new FormData();
        fdlCompression.left = new FormAttachment(0, 0);
        fdlCompression.top  = new FormAttachment(wNrLinesDocHeader, margin);
        fdlCompression.right= new FormAttachment(middle, -margin);
        wlCompression.setLayoutData(fdlCompression);
        wCompression=new CCombo(wContentComp, SWT.BORDER | SWT.READ_ONLY);
        wCompression.setText(Messages.getString("TextFileInputDialog.Compression.Label"));
        wCompression.setToolTipText(Messages.getString("TextFileInputDialog.Zipped.Tooltip"));
        props.setLook(wCompression);
        wCompression.add("None");
        wCompression.add("Zip");
        wCompression.add("GZip");
        wCompression.select(0);
        wCompression.addModifyListener(lsMod);
        fdCompression=new FormData();
        fdCompression.left = new FormAttachment(middle, 0);
        fdCompression.top  = new FormAttachment(wNrLinesDocHeader, margin);
        fdCompression.right= new FormAttachment(100, 0);
        wCompression.setLayoutData(fdCompression);
        wlNoempty=new Label(wContentComp, SWT.RIGHT);
        wlNoempty.setText(Messages.getString("TextFileInputDialog.NoEmpty.Label"));
        props.setLook(wlNoempty);
        fdlNoempty=new FormData();
        fdlNoempty.left = new FormAttachment(0, 0);
        fdlNoempty.top  = new FormAttachment(wCompression, margin);
        fdlNoempty.right= new FormAttachment(middle, -margin);
        wlNoempty.setLayoutData(fdlNoempty);
        wNoempty=new Button(wContentComp, SWT.CHECK );
        props.setLook(wNoempty);
        wNoempty.setToolTipText(Messages.getString("TextFileInputDialog.NoEmpty.Tooltip"));
        fdNoempty=new FormData();
        fdNoempty.left = new FormAttachment(middle, 0);
        fdNoempty.top  = new FormAttachment(wCompression, margin);
        fdNoempty.right= new FormAttachment(100, 0);
        wNoempty.setLayoutData(fdNoempty);
        wlInclFilename=new Label(wContentComp, SWT.RIGHT);
        wlInclFilename.setText(Messages.getString("TextFileInputDialog.InclFilename.Label"));
        props.setLook(wlInclFilename);
        fdlInclFilename=new FormData();
        fdlInclFilename.left = new FormAttachment(0, 0);
        fdlInclFilename.top  = new FormAttachment(wNoempty, margin);
        fdlInclFilename.right= new FormAttachment(middle, -margin);
        wlInclFilename.setLayoutData(fdlInclFilename);
        wInclFilename=new Button(wContentComp, SWT.CHECK );
        props.setLook(wInclFilename);
        wInclFilename.setToolTipText(Messages.getString("TextFileInputDialog.InclFilename.Tooltip"));
        fdInclFilename=new FormData();
        fdInclFilename.left = new FormAttachment(middle, 0);
        fdInclFilename.top  = new FormAttachment(wNoempty, margin);
        wInclFilename.setLayoutData(fdInclFilename);
        wlInclFilenameField=new Label(wContentComp, SWT.LEFT);
        wlInclFilenameField.setText(Messages.getString("TextFileInputDialog.InclFilenameField.Label"));
        props.setLook(wlInclFilenameField);
        fdlInclFilenameField=new FormData();
        fdlInclFilenameField.left = new FormAttachment(wInclFilename, margin);
        fdlInclFilenameField.top  = new FormAttachment(wNoempty, margin);
        wlInclFilenameField.setLayoutData(fdlInclFilenameField);
        wInclFilenameField=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        props.setLook(wInclFilenameField);
        wInclFilenameField.addModifyListener(lsMod);
        fdInclFilenameField=new FormData();
        fdInclFilenameField.left = new FormAttachment(wlInclFilenameField, margin);
        fdInclFilenameField.top  = new FormAttachment(wNoempty, margin);
        fdInclFilenameField.right= new FormAttachment(100, 0);
        wInclFilenameField.setLayoutData(fdInclFilenameField);
        wlInclRownum=new Label(wContentComp, SWT.RIGHT);
        wlInclRownum.setText(Messages.getString("TextFileInputDialog.InclRownum.Label"));
        props.setLook(wlInclRownum);
        fdlInclRownum=new FormData();
        fdlInclRownum.left = new FormAttachment(0, 0);
        fdlInclRownum.top  = new FormAttachment(wInclFilenameField, margin);
        fdlInclRownum.right= new FormAttachment(middle, -margin);
        wlInclRownum.setLayoutData(fdlInclRownum);
        wInclRownum=new Button(wContentComp, SWT.CHECK );
        props.setLook(wInclRownum);
        wInclRownum.setToolTipText(Messages.getString("TextFileInputDialog.InclRownum.Tooltip"));
        fdRownum=new FormData();
        fdRownum.left = new FormAttachment(middle, 0);
        fdRownum.top  = new FormAttachment(wInclFilenameField, margin);
        wInclRownum.setLayoutData(fdRownum);
        wlInclRownumField=new Label(wContentComp, SWT.RIGHT);
        wlInclRownumField.setText(Messages.getString("TextFileInputDialog.InclRownumField.Label"));
        props.setLook(wlInclRownumField);
        fdlInclRownumField=new FormData();
        fdlInclRownumField.left = new FormAttachment(wInclRownum, margin);
        fdlInclRownumField.top  = new FormAttachment(wInclFilenameField, margin);
        wlInclRownumField.setLayoutData(fdlInclRownumField);
        wInclRownumField=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        props.setLook(wInclRownumField);
        wInclRownumField.addModifyListener(lsMod);
        fdInclRownumField=new FormData();
        fdInclRownumField.left = new FormAttachment(wlInclRownumField, margin);
        fdInclRownumField.top  = new FormAttachment(wInclFilenameField, margin);
        fdInclRownumField.right= new FormAttachment(100, 0);
        wInclRownumField.setLayoutData(fdInclRownumField);
        wlFormat=new Label(wContentComp, SWT.RIGHT);
        wlFormat.setText(Messages.getString("TextFileInputDialog.Format.Label"));
        props.setLook(wlFormat);
        fdlFormat=new FormData();
        fdlFormat.left = new FormAttachment(0, 0);
        fdlFormat.top  = new FormAttachment(wInclRownumField, margin);
        fdlFormat.right= new FormAttachment(middle, -margin);
        wlFormat.setLayoutData(fdlFormat);
        wFormat=new CCombo(wContentComp, SWT.BORDER | SWT.READ_ONLY);
        wFormat.setText(Messages.getString("TextFileInputDialog.Format.Label"));
        props.setLook(wFormat);
        wFormat.add("DOS");
        wFormat.add("Unix");
        wFormat.add("mixed");
        wFormat.select(0);
        wFormat.addModifyListener(lsMod);
        fdFormat=new FormData();
        fdFormat.left = new FormAttachment(middle, 0);
        fdFormat.top  = new FormAttachment(wInclRownumField, margin);
        fdFormat.right= new FormAttachment(100, 0);
        wFormat.setLayoutData(fdFormat);
        wlEncoding=new Label(wContentComp, SWT.RIGHT);
        wlEncoding.setText(Messages.getString("TextFileInputDialog.Encoding.Label"));
        props.setLook(wlEncoding);
        fdlEncoding=new FormData();
        fdlEncoding.left = new FormAttachment(0, 0);
        fdlEncoding.top  = new FormAttachment(wFormat, margin);
        fdlEncoding.right= new FormAttachment(middle, -margin);
        wlEncoding.setLayoutData(fdlEncoding);
        wEncoding=new CCombo(wContentComp, SWT.BORDER | SWT.READ_ONLY);
        wEncoding.setEditable(true);
        props.setLook(wEncoding);
        wEncoding.addModifyListener(lsMod);
        fdEncoding=new FormData();
        fdEncoding.left = new FormAttachment(middle, 0);
        fdEncoding.top  = new FormAttachment(wFormat, margin);
        fdEncoding.right= new FormAttachment(100, 0);
        wEncoding.setLayoutData(fdEncoding);
        wEncoding.addFocusListener(new FocusListener()
            {
                public void focusLost(org.eclipse.swt.events.FocusEvent e)
                {
                }
                public void focusGained(org.eclipse.swt.events.FocusEvent e)
                {
                    Cursor busy = new Cursor(shell.getDisplay(), SWT.CURSOR_WAIT);
                    shell.setCursor(busy);
                    setEncodings();
                    shell.setCursor(null);
                    busy.dispose();
                }
            }
        );
        wlLimit=new Label(wContentComp, SWT.RIGHT);
        wlLimit.setText(Messages.getString("TextFileInputDialog.Limit.Label"));
        props.setLook(wlLimit);
        fdlLimit=new FormData();
        fdlLimit.left = new FormAttachment(0, 0);
        fdlLimit.top  = new FormAttachment(wEncoding, margin);
        fdlLimit.right= new FormAttachment(middle, -margin);
        wlLimit.setLayoutData(fdlLimit);
        wLimit=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        props.setLook(wLimit);
        wLimit.addModifyListener(lsMod);
        fdLimit=new FormData();
        fdLimit.left = new FormAttachment(middle, 0);
        fdLimit.top  = new FormAttachment(wEncoding, margin);
        fdLimit.right= new FormAttachment(100, 0);
        wLimit.setLayoutData(fdLimit);
        wlDateLenient=new Label(wContentComp, SWT.RIGHT);
        wlDateLenient.setText(Messages.getString("TextFileInputDialog.DateLenient.Label"));
        props.setLook(wlDateLenient);
        fdlDateLenient=new FormData();
        fdlDateLenient.left = new FormAttachment(0, 0);
        fdlDateLenient.top  = new FormAttachment(wLimit, margin);
        fdlDateLenient.right= new FormAttachment(middle, -margin);
        wlDateLenient.setLayoutData(fdlDateLenient);
        wDateLenient=new Button(wContentComp, SWT.CHECK);
        wDateLenient.setToolTipText(Messages.getString("TextFileInputDialog.DateLenient.Tooltip"));
        props.setLook(wDateLenient);
        fdDateLenient=new FormData();
        fdDateLenient.left = new FormAttachment(middle, 0);
        fdDateLenient.top  = new FormAttachment(wLimit, margin);
        wDateLenient.setLayoutData(fdDateLenient);
        wlDateLocale=new Label(wContentComp, SWT.RIGHT);
        wlDateLocale.setText(Messages.getString("TextFileInputDialog.DateLocale.Label"));
        props.setLook(wlDateLocale);
        fdlDateLocale=new FormData();
        fdlDateLocale.left = new FormAttachment(0, 0);
        fdlDateLocale.top  = new FormAttachment(wDateLenient, margin);
        fdlDateLocale.right= new FormAttachment(middle, -margin);
        wlDateLocale.setLayoutData(fdlDateLocale);
        wDateLocale=new CCombo(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        wDateLocale.setToolTipText(Messages.getString("TextFileInputDialog.DateLocale.Tooltip"));
        props.setLook(wDateLocale);
        wDateLocale.addModifyListener(lsMod);
        fdDateLocale=new FormData();
        fdDateLocale.left = new FormAttachment(middle, 0);
        fdDateLocale.top  = new FormAttachment(wDateLenient, margin);
        fdDateLocale.right= new FormAttachment(100, 0);
        wDateLocale.setLayoutData(fdDateLocale);
        Runnable runnable = new Runnable()
		{
			public void run()
			{
                Thread thread = new Thread(new Runnable()
                    {
                        public void run()
                        {
                            Locale locale[] =  Locale.getAvailableLocales();
                            dateLocale = new String[locale.length];
                            for (int i=0;i<locale.length;i++)
                            {
                                dateLocale[i] =  locale[i].toString();
                            }
                        }
                    }
                );
                thread.start();
                try { thread.join(); } catch(InterruptedException e) {}
                if (dateLocale!=null)
                {
                    wDateLocale.setItems(dateLocale);
                }
			}
		};
        shell.getDisplay().asyncExec(runnable);
        wContentComp.pack();
        Rectangle bounds = wContentComp.getBounds();
        wContentSComp.setContent(wContentComp);
        wContentSComp.setExpandHorizontal(true);
        wContentSComp.setExpandVertical(true);
        wContentSComp.setMinWidth(bounds.width);
        wContentSComp.setMinHeight(bounds.height);
        fdContentComp = new FormData();
        fdContentComp.left  = new FormAttachment(0, 0);
        fdContentComp.top   = new FormAttachment(0, 0);
        fdContentComp.right = new FormAttachment(100, 0);
        fdContentComp.bottom= new FormAttachment(100, 0);
        wContentComp.setLayoutData(fdContentComp);
        wContentTab.setControl(wContentSComp);
    }

Output:
    private void addContentTab()
    {
        wContentTab=new CTabItem(wTabFolder, SWT.NONE);
        wContentTab.setText(Messages.getString("TextFileInputDialog.ContentTab.TabTitle"));
        FormLayout contentLayout = new FormLayout ();
        contentLayout.marginWidth  = 3;
        contentLayout.marginHeight = 3;
        wContentSComp = new ScrolledComposite(wTabFolder, SWT.V_SCROLL | SWT.H_SCROLL );
        wContentSComp.setLayout(new FillLayout());
        wContentComp = new Composite(wContentSComp, SWT.NONE );
        props.setLook(wContentComp);
        wContentComp.setLayout(contentLayout);
        wlFiletype=new Label(wContentComp, SWT.RIGHT);
        wlFiletype.setText(Messages.getString("TextFileInputDialog.Filetype.Label"));
        props.setLook(wlFiletype);
        fdlFiletype=new FormData();
        fdlFiletype.left = new FormAttachment(0, 0);
        fdlFiletype.top  = new FormAttachment(0, 0);
        fdlFiletype.right= new FormAttachment(middle, -margin);
        wlFiletype.setLayoutData(fdlFiletype);
        wFiletype=new CCombo(wContentComp, SWT.BORDER | SWT.READ_ONLY);
        wFiletype.setText(Messages.getString("TextFileInputDialog.Filetype.Label"));
        props.setLook(wFiletype);
        wFiletype.add("CSV");
        wFiletype.add("Fixed");
        wFiletype.select(0);
        wFiletype.addModifyListener(lsMod);
        fdFiletype=new FormData();
        fdFiletype.left = new FormAttachment(middle, 0);
        fdFiletype.top  = new FormAttachment(0, 0);
        fdFiletype.right= new FormAttachment(100, 0);
        wFiletype.setLayoutData(fdFiletype);
        wlSeparator=new Label(wContentComp, SWT.RIGHT);
        wlSeparator.setText(Messages.getString("TextFileInputDialog.Separator.Label"));
        props.setLook(wlSeparator);
        fdlSeparator=new FormData();
        fdlSeparator.left = new FormAttachment(0, 0);
        fdlSeparator.top  = new FormAttachment(wFiletype, margin);
        fdlSeparator.right= new FormAttachment(middle, -margin);
        wlSeparator.setLayoutData(fdlSeparator);
        wbSeparator=new Button(wContentComp, SWT.PUSH| SWT.CENTER);
        props.setLook(wbSeparator);
        wbSeparator.setText(Messages.getString("TextFileInputDialog.Separator.Button"));
        fdbSeparator=new FormData();
        fdbSeparator.right= new FormAttachment(100, 0);
        fdbSeparator.top  = new FormAttachment(wFiletype, 0);
        wbSeparator.setLayoutData(fdbSeparator);
        wSeparator=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        props.setLook(wSeparator);
        wSeparator.addModifyListener(lsMod);
        fdSeparator=new FormData();
        fdSeparator.left = new FormAttachment(middle, 0);
        fdSeparator.top  = new FormAttachment(wFiletype, margin);
        fdSeparator.right= new FormAttachment(wbSeparator, -margin);
        wSeparator.setLayoutData(fdSeparator);
        wlEnclosure=new Label(wContentComp, SWT.RIGHT);
        wlEnclosure.setText(Messages.getString("TextFileInputDialog.Enclosure.Label"));
        props.setLook(wlEnclosure);
        fdlEnclosure=new FormData();
        fdlEnclosure.left = new FormAttachment(0, 0);
        fdlEnclosure.top  = new FormAttachment(wSeparator, margin);
        fdlEnclosure.right= new FormAttachment(middle, -margin);
        wlEnclosure.setLayoutData(fdlEnclosure);
        wEnclosure=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        props.setLook(wEnclosure);
        wEnclosure.addModifyListener(lsMod);
        fdEnclosure=new FormData();
        fdEnclosure.left = new FormAttachment(middle, 0);
        fdEnclosure.top  = new FormAttachment(wSeparator, margin);
        fdEnclosure.right= new FormAttachment(100, 0);
        wEnclosure.setLayoutData(fdEnclosure);
        wlEnclBreaks=new Label(wContentComp, SWT.RIGHT);
        wlEnclBreaks.setText(Messages.getString("TextFileInputDialog.EnclBreaks.Label"));
        props.setLook(wlEnclBreaks);
        fdlEnclBreaks=new FormData();
        fdlEnclBreaks.left = new FormAttachment(0, 0);
        fdlEnclBreaks.top  = new FormAttachment(wEnclosure, margin);
        fdlEnclBreaks.right= new FormAttachment(middle, -margin);
        wlEnclBreaks.setLayoutData(fdlEnclBreaks);
        wEnclBreaks=new Button(wContentComp, SWT.CHECK);
        props.setLook(wEnclBreaks);
        fdEnclBreaks=new FormData();
        fdEnclBreaks.left = new FormAttachment(middle, 0);
        fdEnclBreaks.top  = new FormAttachment(wEnclosure, margin);
        wEnclBreaks.setLayoutData(fdEnclBreaks);
        wlEnclBreaks.setEnabled(false);
        wEnclBreaks.setEnabled(false);
        wlEscape=new Label(wContentComp, SWT.RIGHT);
        wlEscape.setText(Messages.getString("TextFileInputDialog.Escape.Label"));
        props.setLook(wlEscape);
        fdlEscape=new FormData();
        fdlEscape.left = new FormAttachment(0, 0);
        fdlEscape.top  = new FormAttachment(wlEnclBreaks, margin);
        fdlEscape.right= new FormAttachment(middle, -margin);
        wlEscape.setLayoutData(fdlEscape);
        wEscape=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        props.setLook(wEscape);
        wEscape.addModifyListener(lsMod);
        fdEscape=new FormData();
        fdEscape.left = new FormAttachment(middle, 0);
        fdEscape.top  = new FormAttachment(wlEnclBreaks, margin);
        fdEscape.right= new FormAttachment(100, 0);
        wEscape.setLayoutData(fdEscape);
        wlHeader=new Label(wContentComp, SWT.RIGHT);
        wlHeader.setText(Messages.getString("TextFileInputDialog.Header.Label"));
        props.setLook(wlHeader);
        fdlHeader=new FormData();
        fdlHeader.left = new FormAttachment(0, 0);
        fdlHeader.top  = new FormAttachment(wEscape, margin);
        fdlHeader.right= new FormAttachment(middle, -margin);
        wlHeader.setLayoutData(fdlHeader);
        wHeader=new Button(wContentComp, SWT.CHECK);
        props.setLook(wHeader);
        fdHeader=new FormData();
        fdHeader.left = new FormAttachment(middle, 0);
        fdHeader.top  = new FormAttachment(wEscape, margin);
        wHeader.setLayoutData(fdHeader);
        wlNrHeader=new Label(wContentComp, SWT.RIGHT);
        wlNrHeader.setText(Messages.getString("TextFileInputDialog.NrHeader.Label"));
        props.setLook(wlNrHeader);
        fdlNrHeader=new FormData();
        fdlNrHeader.left = new FormAttachment(wHeader, margin);
        fdlNrHeader.top  = new FormAttachment(wEscape, margin);
        wlNrHeader.setLayoutData(fdlNrHeader);
        wNrHeader=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        wNrHeader.setTextLimit(3);
        props.setLook(wNrHeader);
        wNrHeader.addModifyListener(lsMod);
        fdNrHeader=new FormData();
        fdNrHeader.left = new FormAttachment(wlNrHeader, margin);
        fdNrHeader.top  = new FormAttachment(wEscape, margin);
        fdNrHeader.right  = new FormAttachment(100, 0);
        wNrHeader.setLayoutData(fdNrHeader);
        wlFooter=new Label(wContentComp, SWT.RIGHT);
        wlFooter.setText(Messages.getString("TextFileInputDialog.Footer.Label"));
        props.setLook(wlFooter);
        fdlFooter=new FormData();
        fdlFooter.left = new FormAttachment(0, 0);
        fdlFooter.top  = new FormAttachment(wHeader, margin);
        fdlFooter.right= new FormAttachment(middle, -margin);
        wlFooter.setLayoutData(fdlFooter);
        wFooter=new Button(wContentComp, SWT.CHECK);
        props.setLook(wFooter);
        fdFooter=new FormData();
        fdFooter.left = new FormAttachment(middle, 0);
        fdFooter.top  = new FormAttachment(wHeader, margin);
        wFooter.setLayoutData(fdFooter);
        wlNrFooter=new Label(wContentComp, SWT.RIGHT);
        wlNrFooter.setText(Messages.getString("TextFileInputDialog.NrFooter.Label"));
        props.setLook(wlNrFooter);
        fdlNrFooter=new FormData();
        fdlNrFooter.left = new FormAttachment(wFooter, margin);
        fdlNrFooter.top  = new FormAttachment(wHeader, margin);
        wlNrFooter.setLayoutData(fdlNrFooter);
        wNrFooter=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        wNrFooter.setTextLimit(3);
        props.setLook(wNrFooter);
        wNrFooter.addModifyListener(lsMod);
        fdNrFooter=new FormData();
        fdNrFooter.left = new FormAttachment(wlNrFooter, margin);
        fdNrFooter.top  = new FormAttachment(wHeader, margin);
        fdNrFooter.right  = new FormAttachment(100, 0);
        wNrFooter.setLayoutData(fdNrFooter);
        wlWraps=new Label(wContentComp, SWT.RIGHT);
        wlWraps.setText(Messages.getString("TextFileInputDialog.Wraps.Label"));
        props.setLook(wlWraps);
        fdlWraps=new FormData();
        fdlWraps.left = new FormAttachment(0, 0);
        fdlWraps.top  = new FormAttachment(wFooter, margin);
        fdlWraps.right= new FormAttachment(middle, -margin);
        wlWraps.setLayoutData(fdlWraps);
        wWraps=new Button(wContentComp, SWT.CHECK);
        props.setLook(wWraps);
        fdWraps=new FormData();
        fdWraps.left = new FormAttachment(middle, 0);
        fdWraps.top  = new FormAttachment(wFooter, margin);
        wWraps.setLayoutData(fdWraps);
        wlNrWraps=new Label(wContentComp, SWT.RIGHT);
        wlNrWraps.setText(Messages.getString("TextFileInputDialog.NrWraps.Label"));
        props.setLook(wlNrWraps);
        fdlNrWraps=new FormData();
        fdlNrWraps.left = new FormAttachment(wWraps, margin);
        fdlNrWraps.top  = new FormAttachment(wFooter, margin);
        wlNrWraps.setLayoutData(fdlNrWraps);
        wNrWraps=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        wNrWraps.setTextLimit(3);
        props.setLook(wNrWraps);
        wNrWraps.addModifyListener(lsMod);
        fdNrWraps=new FormData();
        fdNrWraps.left = new FormAttachment(wlNrWraps, margin);
        fdNrWraps.top  = new FormAttachment(wFooter, margin);
        fdNrWraps.right  = new FormAttachment(100, 0);
        wNrWraps.setLayoutData(fdNrWraps);
        wlLayoutPaged=new Label(wContentComp, SWT.RIGHT);
        wlLayoutPaged.setText(Messages.getString("TextFileInputDialog.LayoutPaged.Label"));
        props.setLook(wlLayoutPaged);
        fdlLayoutPaged=new FormData();
        fdlLayoutPaged.left = new FormAttachment(0, 0);
        fdlLayoutPaged.top  = new FormAttachment(wWraps, margin);
        fdlLayoutPaged.right= new FormAttachment(middle, -margin);
        wlLayoutPaged.setLayoutData(fdlLayoutPaged);
        wLayoutPaged=new Button(wContentComp, SWT.CHECK);
        props.setLook(wLayoutPaged);
        fdLayoutPaged=new FormData();
        fdLayoutPaged.left = new FormAttachment(middle, 0);
        fdLayoutPaged.top  = new FormAttachment(wWraps, margin);
        wLayoutPaged.setLayoutData(fdLayoutPaged);
        wlNrLinesPerPage=new Label(wContentComp, SWT.RIGHT);
        wlNrLinesPerPage.setText(Messages.getString("TextFileInputDialog.NrLinesPerPage.Label"));
        props.setLook(wlNrLinesPerPage);
        fdlNrLinesPerPage=new FormData();
        fdlNrLinesPerPage.left = new FormAttachment(wLayoutPaged, margin);
        fdlNrLinesPerPage.top  = new FormAttachment(wWraps, margin);
        wlNrLinesPerPage.setLayoutData(fdlNrLinesPerPage);
        wNrLinesPerPage=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        wNrLinesPerPage.setTextLimit(3);
        props.setLook(wNrLinesPerPage);
        wNrLinesPerPage.addModifyListener(lsMod);
        fdNrLinesPerPage=new FormData();
        fdNrLinesPerPage.left = new FormAttachment(wlNrLinesPerPage, margin);
        fdNrLinesPerPage.top  = new FormAttachment(wWraps, margin);
        fdNrLinesPerPage.right  = new FormAttachment(100, 0);
        wNrLinesPerPage.setLayoutData(fdNrLinesPerPage);
        wlNrLinesDocHeader=new Label(wContentComp, SWT.RIGHT);
        wlNrLinesDocHeader.setText(Messages.getString("TextFileInputDialog.NrLinesDocHeader.Label"));
        props.setLook(wlNrLinesDocHeader);
        fdlNrLinesDocHeader=new FormData();
        fdlNrLinesDocHeader.left = new FormAttachment(wLayoutPaged, margin);
        fdlNrLinesDocHeader.top  = new FormAttachment(wNrLinesPerPage, margin);
        wlNrLinesDocHeader.setLayoutData(fdlNrLinesDocHeader);
        wNrLinesDocHeader=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        wNrLinesDocHeader.setTextLimit(3);
        props.setLook(wNrLinesDocHeader);
        wNrLinesDocHeader.addModifyListener(lsMod);
        fdNrLinesDocHeader=new FormData();
        fdNrLinesDocHeader.left = new FormAttachment(wlNrLinesPerPage, margin);
        fdNrLinesDocHeader.top  = new FormAttachment(wNrLinesPerPage, margin);
        fdNrLinesDocHeader.right = new FormAttachment(100, 0);
        wNrLinesDocHeader.setLayoutData(fdNrLinesDocHeader);
        wlCompression=new Label(wContentComp, SWT.RIGHT);
        wlCompression.setText(Messages.getString("TextFileInputDialog.Compression.Label"));
        props.setLook(wlCompression);
        fdlCompression=new FormData();
        fdlCompression.left = new FormAttachment(0, 0);
        fdlCompression.top  = new FormAttachment(wNrLinesDocHeader, margin);
        fdlCompression.right= new FormAttachment(middle, -margin);
        wlCompression.setLayoutData(fdlCompression);
        wCompression=new CCombo(wContentComp, SWT.BORDER | SWT.READ_ONLY);
        wCompression.setText(Messages.getString("TextFileInputDialog.Compression.Label"));
        wCompression.setToolTipText(Messages.getString("TextFileInputDialog.Compression.Tooltip"));
        props.setLook(wCompression);
        wCompression.add("None");
        wCompression.add("Zip");
        wCompression.add("GZip");
        wCompression.select(0);
        wCompression.addModifyListener(lsMod);
        fdCompression=new FormData();
        fdCompression.left = new FormAttachment(middle, 0);
        fdCompression.top  = new FormAttachment(wNrLinesDocHeader, margin);
        fdCompression.right= new FormAttachment(100, 0);
        wCompression.setLayoutData(fdCompression);
        wlNoempty=new Label(wContentComp, SWT.RIGHT);
        wlNoempty.setText(Messages.getString("TextFileInputDialog.NoEmpty.Label"));
        props.setLook(wlNoempty);
        fdlNoempty=new FormData();
        fdlNoempty.left = new FormAttachment(0, 0);
        fdlNoempty.top  = new FormAttachment(wCompression, margin);
        fdlNoempty.right= new FormAttachment(middle, -margin);
        wlNoempty.setLayoutData(fdlNoempty);
        wNoempty=new Button(wContentComp, SWT.CHECK );
        props.setLook(wNoempty);
        wNoempty.setToolTipText(Messages.getString("TextFileInputDialog.NoEmpty.Tooltip"));
        fdNoempty=new FormData();
        fdNoempty.left = new FormAttachment(middle, 0);
        fdNoempty.top  = new FormAttachment(wCompression, margin);
        fdNoempty.right= new FormAttachment(100, 0);
        wNoempty.setLayoutData(fdNoempty);
        wlInclFilename=new Label(wContentComp, SWT.RIGHT);
        wlInclFilename.setText(Messages.getString("TextFileInputDialog.InclFilename.Label"));
        props.setLook(wlInclFilename);
        fdlInclFilename=new FormData();
        fdlInclFilename.left = new FormAttachment(0, 0);
        fdlInclFilename.top  = new FormAttachment(wNoempty, margin);
        fdlInclFilename.right= new FormAttachment(middle, -margin);
        wlInclFilename.setLayoutData(fdlInclFilename);
        wInclFilename=new Button(wContentComp, SWT.CHECK );
        props.setLook(wInclFilename);
        wInclFilename.setToolTipText(Messages.getString("TextFileInputDialog.InclFilename.Tooltip"));
        fdInclFilename=new FormData();
        fdInclFilename.left = new FormAttachment(middle, 0);
        fdInclFilename.top  = new FormAttachment(wNoempty, margin);
        wInclFilename.setLayoutData(fdInclFilename);
        wlInclFilenameField=new Label(wContentComp, SWT.LEFT);
        wlInclFilenameField.setText(Messages.getString("TextFileInputDialog.InclFilenameField.Label"));
        props.setLook(wlInclFilenameField);
        fdlInclFilenameField=new FormData();
        fdlInclFilenameField.left = new FormAttachment(wInclFilename, margin);
        fdlInclFilenameField.top  = new FormAttachment(wNoempty, margin);
        wlInclFilenameField.setLayoutData(fdlInclFilenameField);
        wInclFilenameField=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        props.setLook(wInclFilenameField);
        wInclFilenameField.addModifyListener(lsMod);
        fdInclFilenameField=new FormData();
        fdInclFilenameField.left = new FormAttachment(wlInclFilenameField, margin);
        fdInclFilenameField.top  = new FormAttachment(wNoempty, margin);
        fdInclFilenameField.right= new FormAttachment(100, 0);
        wInclFilenameField.setLayoutData(fdInclFilenameField);
        wlInclRownum=new Label(wContentComp, SWT.RIGHT);
        wlInclRownum.setText(Messages.getString("TextFileInputDialog.InclRownum.Label"));
        props.setLook(wlInclRownum);
        fdlInclRownum=new FormData();
        fdlInclRownum.left = new FormAttachment(0, 0);
        fdlInclRownum.top  = new FormAttachment(wInclFilenameField, margin);
        fdlInclRownum.right= new FormAttachment(middle, -margin);
        wlInclRownum.setLayoutData(fdlInclRownum);
        wInclRownum=new Button(wContentComp, SWT.CHECK );
        props.setLook(wInclRownum);
        wInclRownum.setToolTipText(Messages.getString("TextFileInputDialog.InclRownum.Tooltip"));
        fdRownum=new FormData();
        fdRownum.left = new FormAttachment(middle, 0);
        fdRownum.top  = new FormAttachment(wInclFilenameField, margin);
        wInclRownum.setLayoutData(fdRownum);
        wlInclRownumField=new Label(wContentComp, SWT.RIGHT);
        wlInclRownumField.setText(Messages.getString("TextFileInputDialog.InclRownumField.Label"));
        props.setLook(wlInclRownumField);
        fdlInclRownumField=new FormData();
        fdlInclRownumField.left = new FormAttachment(wInclRownum, margin);
        fdlInclRownumField.top  = new FormAttachment(wInclFilenameField, margin);
        wlInclRownumField.setLayoutData(fdlInclRownumField);
        wInclRownumField=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        props.setLook(wInclRownumField);
        wInclRownumField.addModifyListener(lsMod);
        fdInclRownumField=new FormData();
        fdInclRownumField.left = new FormAttachment(wlInclRownumField, margin);
        fdInclRownumField.top  = new FormAttachment(wInclFilenameField, margin);
        fdInclRownumField.right= new FormAttachment(100, 0);
        wInclRownumField.setLayoutData(fdInclRownumField);
        wlFormat=new Label(wContentComp, SWT.RIGHT);
        wlFormat.setText(Messages.getString("TextFileInputDialog.Format.Label"));
        props.setLook(wlFormat);
        fdlFormat=new FormData();
        fdlFormat.left = new FormAttachment(0, 0);
        fdlFormat.top  = new FormAttachment(wInclRownumField, margin);
        fdlFormat.right= new FormAttachment(middle, -margin);
        wlFormat.setLayoutData(fdlFormat);
        wFormat=new CCombo(wContentComp, SWT.BORDER | SWT.READ_ONLY);
        wFormat.setText(Messages.getString("TextFileInputDialog.Format.Label"));
        props.setLook(wFormat);
        wFormat.add("DOS");
        wFormat.add("Unix");
        wFormat.add("mixed");
        wFormat.select(0);
        wFormat.addModifyListener(lsMod);
        fdFormat=new FormData();
        fdFormat.left = new FormAttachment(middle, 0);
        fdFormat.top  = new FormAttachment(wInclRownumField, margin);
        fdFormat.right= new FormAttachment(100, 0);
        wFormat.setLayoutData(fdFormat);
        wlEncoding=new Label(wContentComp, SWT.RIGHT);
        wlEncoding.setText(Messages.getString("TextFileInputDialog.Encoding.Label"));
        props.setLook(wlEncoding);
        fdlEncoding=new FormData();
        fdlEncoding.left = new FormAttachment(0, 0);
        fdlEncoding.top  = new FormAttachment(wFormat, margin);
        fdlEncoding.right= new FormAttachment(middle, -margin);
        wlEncoding.setLayoutData(fdlEncoding);
        wEncoding=new CCombo(wContentComp, SWT.BORDER | SWT.READ_ONLY);
        wEncoding.setEditable(true);
        props.setLook(wEncoding);
        wEncoding.addModifyListener(lsMod);
        fdEncoding=new FormData();
        fdEncoding.left = new FormAttachment(middle, 0);
        fdEncoding.top  = new FormAttachment(wFormat, margin);
        fdEncoding.right= new FormAttachment(100, 0);
        wEncoding.setLayoutData(fdEncoding);
        wEncoding.addFocusListener(new FocusListener()
            {
                public void focusLost(org.eclipse.swt.events.FocusEvent e)
                {
                }
                public void focusGained(org.eclipse.swt.events.FocusEvent e)
                {
                    Cursor busy = new Cursor(shell.getDisplay(), SWT.CURSOR_WAIT);
                    shell.setCursor(busy);
                    setEncodings();
                    shell.setCursor(null);
                    busy.dispose();
                }
            }
        );
        wlLimit=new Label(wContentComp, SWT.RIGHT);
        wlLimit.setText(Messages.getString("TextFileInputDialog.Limit.Label"));
        props.setLook(wlLimit);
        fdlLimit=new FormData();
        fdlLimit.left = new FormAttachment(0, 0);
        fdlLimit.top  = new FormAttachment(wEncoding, margin);
        fdlLimit.right= new FormAttachment(middle, -margin);
        wlLimit.setLayoutData(fdlLimit);
        wLimit=new Text(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        props.setLook(wLimit);
        wLimit.addModifyListener(lsMod);
        fdLimit=new FormData();
        fdLimit.left = new FormAttachment(middle, 0);
        fdLimit.top  = new FormAttachment(wEncoding, margin);
        fdLimit.right= new FormAttachment(100, 0);
        wLimit.setLayoutData(fdLimit);
        wlDateLenient=new Label(wContentComp, SWT.RIGHT);
        wlDateLenient.setText(Messages.getString("TextFileInputDialog.DateLenient.Label"));
        props.setLook(wlDateLenient);
        fdlDateLenient=new FormData();
        fdlDateLenient.left = new FormAttachment(0, 0);
        fdlDateLenient.top  = new FormAttachment(wLimit, margin);
        fdlDateLenient.right= new FormAttachment(middle, -margin);
        wlDateLenient.setLayoutData(fdlDateLenient);
        wDateLenient=new Button(wContentComp, SWT.CHECK);
        wDateLenient.setToolTipText(Messages.getString("TextFileInputDialog.DateLenient.Tooltip"));
        props.setLook(wDateLenient);
        fdDateLenient=new FormData();
        fdDateLenient.left = new FormAttachment(middle, 0);
        fdDateLenient.top  = new FormAttachment(wLimit, margin);
        wDateLenient.setLayoutData(fdDateLenient);
        wlDateLocale=new Label(wContentComp, SWT.RIGHT);
        wlDateLocale.setText(Messages.getString("TextFileInputDialog.DateLocale.Label"));
        props.setLook(wlDateLocale);
        fdlDateLocale=new FormData();
        fdlDateLocale.left = new FormAttachment(0, 0);
        fdlDateLocale.top  = new FormAttachment(wDateLenient, margin);
        fdlDateLocale.right= new FormAttachment(middle, -margin);
        wlDateLocale.setLayoutData(fdlDateLocale);
        wDateLocale=new CCombo(wContentComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
        wDateLocale.setToolTipText(Messages.getString("TextFileInputDialog.DateLocale.Tooltip"));
        props.setLook(wDateLocale);
        wDateLocale.addModifyListener(lsMod);
        fdDateLocale=new FormData();
        fdDateLocale.left = new FormAttachment(middle, 0);
        fdDateLocale.top  = new FormAttachment(wDateLenient, margin);
        fdDateLocale.right= new FormAttachment(100, 0);
        wDateLocale.setLayoutData(fdDateLocale);
        Runnable runnable = new Runnable()
		{
			public void run()
			{
                Thread thread = new Thread(new Runnable()
                    {
                        public void run()
                        {
                            Locale locale[] =  Locale.getAvailableLocales();
                            dateLocale = new String[locale.length];
                            for (int i=0;i<locale.length;i++)
                            {
                                dateLocale[i] =  locale[i].toString();
                            }
                        }
                    }
                );
                thread.start();
                try { thread.join(); } catch(InterruptedException e) {}
                if (dateLocale!=null)
                {
                    wDateLocale.setItems(dateLocale);
                }
			}
		};
        shell.getDisplay().asyncExec(runnable);
        wContentComp.pack();
        Rectangle bounds = wContentComp.getBounds();
        wContentSComp.setContent(wContentComp);
        wContentSComp.setExpandHorizontal(true);
        wContentSComp.setExpandVertical(true);
        wContentSComp.setMinWidth(bounds.width);
        wContentSComp.setMinHeight(bounds.height);
        fdContentComp = new FormData();
        fdContentComp.left  = new FormAttachment(0, 0);
        fdContentComp.top   = new FormAttachment(0, 0);
        fdContentComp.right = new FormAttachment(100, 0);
        fdContentComp.bottom= new FormAttachment(100, 0);
        wContentComp.setLayoutData(fdContentComp);
        wContentTab.setControl(wContentSComp);
    }


Input:
	public void paintComponent(Graphics g){
        super.paintComponent(g);
        this.setBackground(Color.WHITE);
        if(Reset){
            character.x -= 10;
        }
        if(Restart){
			maxHealth -= 1;
		}
        g.setColor(getBackground());
        g.fillRect(InvLine.x, InvLine.y, InvLine.width, InvLine.height);
        g.setColor(getBackground());
        g.fillRect(InvLine2.x, InvLine2.y, InvLine2.width, InvLine2.height);
        g.fillRect(InvLine3.x, InvLine3.y, InvLine3.width, InvLine3.height);
        g.fillRect(StartingPoint.x, StartingPoint.y, StartingPoint.width, StartingPoint.height);
       g.setColor(Color.BLUE);
       g.fillRect(FinalBoss.x, FinalBoss.y, FinalBoss.width, FinalBoss.height);
        g.setColor(Color.RED);
        g.fillRect(Boss.x, Boss.y, Boss.width, Boss.height);
        g.fillRect(Boss2.x, Boss2.y, Boss2.width, Boss2.height);
        g.fillRect(Boss3.x, Boss3.y, Boss3.width, Boss3.height);
        g.fillRect(Boss4.x, Boss4.y, Boss4.width, Boss4.height);
        g.fillRect(Boss5.x, Boss5.y, Boss5.width, Boss5.height);
        g.setColor(Color.RED);
        g.setFont(g.getFont().deriveFont(35f));
        g.drawString("Life left " + maxHealth, 10, 35);
        if(RightSide)
            g.setColor(Color.BLUE);
            else
    		g.setColor(Color.BLUE);
            if(LeftSide)
            g.setColor(Color.BLUE);
            g.fillRect(character.x, character.y, character.width, character.height);
        g.setColor(Color.BLACK);
        g.fillRect(Top.x, Top.y, Top.width, Top.height);
        g.fillRect(Bottom.x, Bottom.y, Bottom.width, Bottom.height);
        g.fillRect(Left.x, Left.y, Left.width, Left.height);
        g.fillRect(Right.x, Right.y, Right.width, Right.height);
        g.fillRect(Line.x, Line.y, Line.width, Line.height);
        g.fillRect(Line2.x, Line2.y, Line2.width, Line2.height);
        if(Map1){
        g.setColor(Color.GREEN);
        g.fillRect(Holder1.x, Holder1.y, Holder1.width, Holder1.height);
        g.fillRect(Holder2.x, Holder2.y, Holder2.width, Holder2.height);
        g.fillRect(Holder3.x, Holder3.y, Holder3.width, Holder3.height);
        g.fillRect(Line3.x, Line3.y, Line3.width, Line3.height);
        g.fillRect(Line4.x, Line4.y, Line4.width, Line4.height);
        g.fillRect(Line5.x, Line5.y, Line5.width, Line5.height);
        g.fillRect(Line6.x, Line6.y, Line6.width, Line6.height);
        g.fillRect(line3.x, line3.y, line3.width, line3.height);
        g.fillRect(line4.x, line4.y, line4.width, line4.height);
        g.fillRect(line5.x, line5.y, line5.width, line5.height);
        g.fillRect(line6.x, line6.y, line6.width, line6.height);
        g.fillRect(line7.x, line7.y, line7.width, line7.height);
        g.fillRect(Line7.x, Line7.y, Line7.width, Line7.height);
        g.fillRect(Line8.x, Line8.y, Line8.width, Line8.height);
        g.fillRect(line8.x, line8.y, line8.width, line8.height);
        g.fillRect(Line9.x, Line9.y, Line9.width, Line9.height);
        g.fillRect(line9.x, line9.y, line9.width, line9.height);
        g.fillRect(Line10.x, Line10.y, Line10.width, Line10.height);
        g.fillRect(line10.x, line10.y, line10.width, line10.height);
        g.fillRect(Line11.x, Line11.y, Line11.width, Line11.height);
        g.fillRect(line11.x, line11.y, line11.width, line11.height);
        g.fillRect(Line12.x, Line12.y, Line12.width, Line12.height);
        g.fillRect(line12.x, line12.y, line12.width, line12.height);
        g.fillRect(Line13.x, Line13.y, Line13.width, Line13.height);
        g.fillRect(line13.x, line13.y, line13.width, line13.height);
        g.fillRect(Line14.x, Line14.y, Line14.width, Line14.height);
        g.fillRect(line14.x, line14.y, line14.width, line14.height);
        }
        if(Map2){
        	g.setColor(Color.RED);
        	g.fillRect(Line15.x, Line15.y, Line15.width, Line15.height);
        	g.fillRect(Line16.x, Line16.y, Line16.width, Line16.height);
        	g.fillRect(Line17.x, Line17.y, Line17.width, Line17.height);
        	g.fillRect(Line18.x, Line18.y, Line18.width, Line18.height);
        	g.fillRect(Line19.x, Line19.y, Line19.width, Line19.height);
        	g.fillRect(Line20.x, Line20.y, Line20.width, Line20.height);
        	g.fillRect(Line21.x, Line21.y, Line21.width, Line21.height);
        	g.fillRect(Line22.x, Line22.y, Line22.width, Line22.height);
        	g.fillRect(Line23.x, Line23.y, Line23.width, Line23.height);
        	g.fillRect(Line24.x, Line24.y, Line24.width, Line24.height);
        	g.fillRect(Line25.x, Line25.y, Line25.width, Line25.height);
        	g.fillRect(Line26.x, Line26.y, Line26.width, Line26.height);
        	g.fillRect(line15.x, line15.y, line15.width, line15.height);
        	g.fillRect(line16.x, line16.y, line16.width, line16.height);
        	g.fillRect(line17.x, line17.y, line17.width, line17.height);
        	g.fillRect(line18.x, line18.y, line18.width, line18.height);
        	g.fillRect(line19.x, line19.y, line19.width, line19.height);
        	g.fillRect(line20.x, line20.y, line20.width, line20.height);
        	g.fillRect(line21.x, line21.y, line21.width, line21.height);
        	g.fillRect(line22.x, line22.y, line22.width, line22.height);
        	g.fillRect(line23.x, line23.y, line23.width, line23.height);
        	g.fillRect(line24.x, line24.y, line24.width, line24.height);
        	g.fillRect(line25.x, line25.y, line25.width, line25.height);
        	g.fillRect(line26.x, line26.y, line26.width, line26.height);
        }
        if(Map3){
            g.setColor(Color.GREEN);
            g.fillRect(Holder1.x, Holder1.y, Holder1.width, Holder1.height);
            g.fillRect(Holder2.x, Holder2.y, Holder2.width, Holder2.height);
            g.fillRect(Holder3.x, Holder3.y, Holder3.width, Holder3.height);
            g.fillRect(Line3.x, Line3.y, Line3.width, Line3.height);
            g.fillRect(Line4.x, Line4.y, Line4.width, Line4.height);
            g.fillRect(Line5.x, Line5.y, Line5.width, Line5.height);
            g.fillRect(Line6.x, Line6.y, Line6.width, Line6.height);
            g.fillRect(line3.x, line3.y, line3.width, line3.height);
            g.fillRect(line4.x, line4.y, line4.width, line4.height);
            g.fillRect(line5.x, line5.y, line5.width, line5.height);
            g.fillRect(line6.x, line6.y, line6.width, line6.height);
            g.fillRect(line7.x, line7.y, line7.width, line7.height);
            g.fillRect(Line7.x, Line7.y, Line7.width, Line7.height);
            g.fillRect(Line8.x, Line8.y, Line8.width, Line8.height);
            g.fillRect(line8.x, line8.y, line8.width, line8.height);
            g.fillRect(Line9.x, Line9.y, Line9.width, Line9.height);
            g.fillRect(line9.x, line9.y, line9.width, line9.height);
            g.fillRect(Line10.x, Line10.y, Line10.width, Line10.height);
            g.fillRect(line10.x, line10.y, line10.width, line10.height);
            g.fillRect(Line11.x, Line11.y, Line11.width, Line11.height);
            g.fillRect(line11.x, line11.y, line11.width, line11.height);
            g.fillRect(Line12.x, Line12.y, Line12.width, Line12.height);
            g.fillRect(line12.x, line12.y, line12.width, line12.height);
            g.fillRect(Line13.x, Line13.y, Line13.width, Line13.height);
            g.fillRect(line13.x, line13.y, line13.width, line13.height);
            g.fillRect(Line14.x, Line14.y, Line14.width, Line14.height);
            g.fillRect(line14.x, line14.y, line14.width, line14.height);
            }
        if(KeysIns){
            g.setColor(Color.BLACK);
            g.setFont(g.getFont().deriveFont(25f));
            g.drawString("Your goal", 123, 140);
            g.drawString("is to get", 126, 200);
            g.drawString("your character", 126, 250);
            g.drawString("to the SafeZone", 126, 300);
            g.drawString("Without touching the black line", 126, 350);
            g.drawString("Careful that you can go to the left", 126, 400);
            g.drawString("Through the walls but not right.", 126, 450);
            g.drawString("Be careful not to touch the Bosses.", 126, 500);
            g.setColor(Color.BLUE);
            g.drawString("WASD / arrow", 251,550);
            g.drawString("keys to move", 251, 580);
            g.drawString("Shift in case of panic", 251, 615);
            g.drawString("R to Reset", 251, 650);
            g.drawString("Escape to Quit", 251, 670);
            g.drawString("Space to Sprint", 251, 690);
        if(DeathScreen){
        	g.setColor(Color.BLACK);
        	g.setFont(g.getFont().deriveFont(25f));
        	g.drawString("Press R to restart", 496, 300);
        	isMoving = false;
            }
        }
        if(Map1){
        	g.setColor(Color.BLUE);
            g.setFont(g.getFont().deriveFont(25f));
            g.drawString("Level: 1 ", 253, 25);
        }
        if(Map2){
        	g.setColor(Color.BLUE);
            g.setFont(g.getFont().deriveFont(25f));
            g.drawString("Level: 2 ", 253, 25);
        }
       if(Dead) {
            g.setColor(Color.RED);
            g.setFont(g.getFont().deriveFont(25f));
            g.drawString("You Died", 496, 260);
            g.drawString("Press R to restart", 496, 310);
            isMoving = false;
            }
        if(Restart){
            character.x = 52;
            character.y = 52;
            Dead = false;
            DeathScreen = false;
            Finished = false;
        }
        if(StopReset1) {
            Reset = false;
        }
        if(FUp){
        	FDown = false;
        	FinalBoss.y -= 1;
        }
        if(FDown){
        	FUp = false;
        	FinalBoss.y += 1;
        }
        if(FRight){
        	FLeft = false;
        	FinalBoss.x += 1;
        }
        if(FLeft){
        	FRight = false;
        	FinalBoss.x -= 1;
        }
        if(FMoving){
        	if(FinalBoss.intersects(InvLine3)){
        		FLeft = false;
        		FRight = true;
        	}
        	if(FinalBoss.intersects(InvLine)){
        		FRight = false;
        		FLeft = true;
        	}
        	if(FinalBoss.intersects(Top)){
        		FUp = false;
        		FDown = true;
        	}
        	if(FinalBoss.intersects(Bottom)){
        		FDown = false;
        		FUp = true;
        	}
        	if(FinalBoss.intersects(Line)){
        		FRight = false;
        		FLeft = true;
        	}
        	if(FinalBoss.intersects(Line2)){
        		FRight = false;
        		FLeft = true;
        	}
        	if(FinalBoss.intersects(Line14)){
        		FLeft = false;
        		FRight = true;
        	}
        	if(FinalBoss.intersects(line14)){
        		FLeft = false;
        		FRight = true;
        	}
       	}
        if(BUp){
        	BDown = false;
        	Boss.y -= 1;
        }
        if(BDown){
        	BUp = false;
        	Boss.y += 1;
        }
        if(BUp2){
        	BDown2 = false;
        	Boss2.y -= 1;
        }
        if(BDown2){
        	BUp2 = false;
        	Boss2.y += 1;
        }
        if(BUp3){
        	BDown3 = false;
        	Boss3.y -= 1;
        }
        if(BDown3){
        	BUp3 = false;
        	Boss3.y += 1;
        }
        if(BUp4){
        	BDown4 = false;
        	Boss4.y -= 1;
        }
        if(BDown4){
        	BUp4 = false;
        	Boss4.y += 1;
        }
        if(BUp5){
        	BDown5 = false;
        	Boss5.y -= 1;
        }
        if(BDown5){
        	BUp5 = false;
        	Boss5.y += 1;
        }
        if(BossMoving){
         	if(Boss.intersects(Top)){
         		BUp = false;
         		BDown = true;
         	}
         	if(Boss.intersects(Bottom)){
         		BDown = false;
         		BUp = true;
         	}
        	}
        if(BossMoving2){
         	if(Boss2.intersects(Top)){
         		BUp2 = false;
         		BDown2 = true;
         	}
         	if(Boss2.intersects(Bottom)){
         		BDown2 = false;
         		BUp2 = true;
         	}
        	}
        if(BossMoving3){
         	if(Boss3.intersects(Top)){
         		BUp3 = false;
         		BDown3 = true;
         	}
         	if(Boss3.intersects(Bottom)){
         		BDown3 = false;
         		BUp3 = true;
         	}
        	}
        if(BossMoving4){
         	if(Boss4.intersects(Top)){
         		BUp4 = false;
         		BDown4 = true;
         	}
         	if(Boss4.intersects(Bottom)){
         		BDown4 = false;
         		BUp4 = true;
         	}
        	}
        if(BossMoving5){
         	if(Boss5.intersects(Top)){
         		BUp5 = false;
         		BDown5 = true;
         	}
         	if(Boss3.intersects(Bottom)){
         		BDown5 = false;
         		BUp5 = true;
         	}
        	}
        if(character.intersects(FinalBoss))  {
            Dead = true;
            isMoving = false;
            DeathScreen = true;
            character.x = 40000;
        }
        if(character.intersects(Boss))  {
            Dead = true;
            isMoving = false;
            DeathScreen = true;
            character.x = 40000;
        }
        if(character.intersects(Boss2))  {
            Dead = true;
            isMoving = false;
            DeathScreen = true;
            character.x = 40000;
        }
        if(character.intersects(Boss3))  {
            Dead = true;
            isMoving = false;
            DeathScreen = true;
            character.x = 40000;
        }
        if(character.intersects(Boss4))  {
        	Dead = true;
        	isMoving = false;
    	DeathScreen = true;
    	character.x = 40000;
        }
        if(character.intersects(Boss5))  {
        	Dead = true;
        	isMoving = false;
        	DeathScreen = true;
        	character.x = 40000;
        }
        if(character.intersects(Right))  {
            character.x -= 10;
            StopReset1 = true;
        }
        if(character.intersects(Left))  {
            character.x += 10;
            StopReset1 = true;
        }
        if(character.intersects(Bottom))  {
            character.y -= 10;
            StopReset1 = true;
        }
       if(Map1){
        if(character.intersects(Holder1))  {
            character.y += 10;
            StopReset1 = true;
            SpeedBoost = true;
        }
        if(character.intersects(Holder2))  {
            character.y += 10;
            StopReset1 = true;
        }
        if(character.intersects(Holder3))  {
            character.y += 10;
            StopReset1 = true;
        }
        if(character.intersects(Top))  {
            character.y += 10;
            StopReset1 = true;
        }
        if(character.intersects(Line))  {
            Dead = true;
            isMoving = false;
            DeathScreen = true;
            character.x = 40000;
        }
        if(character.intersects(Line2))  {
            Dead = true;
            isMoving = false;
            DeathScreen = true;
            character.x = 40000;
        }
        if(character.intersects(Line3))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(Line4))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(Line5))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(Line6))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(line3))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(line4))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(line5))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(line6))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(line7))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(Line7))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(line8))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line8))  {
                Reset = true;
                StopReset1 = true;}
        if(character.intersects(line9))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line9))  {
                Reset = true;
                StopReset1 = true;}
        if(character.intersects(line10))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line10))  {
                Reset = true;
                StopReset1 = true;}
        if(character.intersects(line11))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line11))  {
                Reset = true;
                StopReset1 = true;}
        if(character.intersects(line12))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line12))  {
                Reset = true;
                StopReset1 = true;}
        if(character.intersects(line13))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line13))  {
                Reset = true;
                StopReset1 = true;}
        if(character.intersects(line14))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line14))  {
                Reset = true;
                StopReset1 = true;}
      }
       if(Map2){
        if(character.intersects(Line15))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line16))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line17))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line18))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line19))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line20))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line21))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line22))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line23))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line24))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line25))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line26))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line15))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line16))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line17))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line18))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line19))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line20))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line21))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line22))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line23))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line24))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line25))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line26))  {
            Reset = true;
            StopReset1 = true;}
       }
        if(character.intersects(InvLine)) {
            g.setColor(Color.BLUE);
            g.setFont(g.getFont().deriveFont(25f));
        }
        if(character.intersects(InvLine2)) {
        	try {
    			Thread.sleep(300);
    		} catch (InterruptedException e) {
    			e.printStackTrace();
    		}
            Finished = true;
        }
        if(Finished){
        	character.x = 52;
            character.y = 52;
        	g.setColor(Color.BLACK);
            g.setFont(g.getFont().deriveFont(35f));
        	 g.drawString("Thank you for Playing!", 440, 260);
             g.drawString("You Passed!", 500, 300);
             g.setColor(Color.BLUE);
             g.setFont(g.getFont().deriveFont(30));
             g.drawString("Close to Restart", 500, 500);
             Map1 = false;
             Map2 = true;
             if(character.intersects(InvLine)){
            	 if(Map2){
            		 Map1 = Map2;
            		 Map2 = Map3;
            		 Map3 = true;
            		 Map2 = false;
            	 }
             }
             try {
				Thread.sleep(100);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
             Finished = false;
        }
        if(character.intersects(StartingPoint)) {
        Restart = false;
        g.setColor(Color.BLACK);
        g.setFont(g.getFont().deriveFont(25f));
        g.drawString("Press K", 258, 100);
        g.drawString("for Instructions", 260, 145);
        g.setColor(Color.BLUE);
        g.drawString("WASD / arrow", 251,550);
        g.drawString("keys to move", 251, 580);
        }
        if(maxHealth <= 0){
        	 try {
     			Thread.sleep(300);
     		} catch (InterruptedException e) {
     			e.printStackTrace();
     		}
			lost = true;
		}
        if(lost){
        	character.x = 52;
            character.y = 52;
        	g.setColor(Color.BLACK);
            g.setFont(g.getFont().deriveFont(35f));
        	 g.drawString("You Lost!", 440, 260);
        	 g.setColor(Color.BLUE);
             g.setFont(g.getFont().deriveFont(30));
             g.drawString("Close to Restart", 500, 500);
        }
        if(jumping){
            character.y --;
        }
		if(right){
			character.x += verticalSpeed;
        }
		if(left){
			character.x -= verticalSpeed;
		}
            if(up)
                character.y += -verticalSpeed;
            if(down){
                character.y += verticalSpeed;
            }
		repaint();
	}

Output:
	public void paintComponent(Graphics g){
        super.paintComponent(g);
        this.setBackground(Color.WHITE);
        if(Reset){
            character.x -= 10;
        }
        if(Restart){
			maxHealth -= 1;
		}
        g.setColor(getBackground());
        g.fillRect(InvLine.x, InvLine.y, InvLine.width, InvLine.height);
        g.setColor(getBackground());
        g.fillRect(InvLine2.x, InvLine2.y, InvLine2.width, InvLine2.height);
        g.fillRect(InvLine3.x, InvLine3.y, InvLine3.width, InvLine3.height);
        g.fillRect(StartingPoint.x, StartingPoint.y, StartingPoint.width, StartingPoint.height);
       g.setColor(Color.BLUE);
       g.fillRect(FinalBoss.x, FinalBoss.y, FinalBoss.width, FinalBoss.height);
        g.setColor(Color.RED);
        g.fillRect(Boss.x, Boss.y, Boss.width, Boss.height);
        g.fillRect(Boss2.x, Boss2.y, Boss2.width, Boss2.height);
        g.fillRect(Boss3.x, Boss3.y, Boss3.width, Boss3.height);
        g.fillRect(Boss4.x, Boss4.y, Boss4.width, Boss4.height);
        g.fillRect(Boss5.x, Boss5.y, Boss5.width, Boss5.height);
        g.setColor(Color.RED);
        g.setFont(g.getFont().deriveFont(35f));
        g.drawString("Life left " + maxHealth, 10, 35);
        if(RightSide)
            g.setColor(Color.BLUE);
            else
    		g.setColor(Color.BLUE);
            if(LeftSide)
            g.setColor(Color.BLUE);
            g.fillRect(character.x, character.y, character.width, character.height);
        g.setColor(Color.BLACK);
        g.fillRect(Top.x, Top.y, Top.width, Top.height);
        g.fillRect(Bottom.x, Bottom.y, Bottom.width, Bottom.height);
        g.fillRect(Left.x, Left.y, Left.width, Left.height);
        g.fillRect(Right.x, Right.y, Right.width, Right.height);
        g.fillRect(Line.x, Line.y, Line.width, Line.height);
        g.fillRect(Line2.x, Line2.y, Line2.width, Line2.height);
        if(Map1){
        g.setColor(Color.GREEN);
        g.fillRect(Holder1.x, Holder1.y, Holder1.width, Holder1.height);
        g.fillRect(Holder2.x, Holder2.y, Holder2.width, Holder2.height);
        g.fillRect(Holder3.x, Holder3.y, Holder3.width, Holder3.height);
        g.fillRect(Line3.x, Line3.y, Line3.width, Line3.height);
        g.fillRect(Line4.x, Line4.y, Line4.width, Line4.height);
        g.fillRect(Line5.x, Line5.y, Line5.width, Line5.height);
        g.fillRect(Line6.x, Line6.y, Line6.width, Line6.height);
        g.fillRect(line3.x, line3.y, line3.width, line3.height);
        g.fillRect(line4.x, line4.y, line4.width, line4.height);
        g.fillRect(line5.x, line5.y, line5.width, line5.height);
        g.fillRect(line6.x, line6.y, line6.width, line6.height);
        g.fillRect(line7.x, line7.y, line7.width, line7.height);
        g.fillRect(Line7.x, Line7.y, Line7.width, Line7.height);
        g.fillRect(Line8.x, Line8.y, Line8.width, Line8.height);
        g.fillRect(line8.x, line8.y, line8.width, line8.height);
        g.fillRect(Line9.x, Line9.y, Line9.width, Line9.height);
        g.fillRect(line9.x, line9.y, line9.width, line9.height);
        g.fillRect(Line10.x, Line10.y, Line10.width, Line10.height);
        g.fillRect(line10.x, line10.y, line10.width, line10.height);
        g.fillRect(Line11.x, Line11.y, Line11.width, Line11.height);
        g.fillRect(line11.x, line11.y, line11.width, line11.height);
        g.fillRect(Line12.x, Line12.y, Line12.width, Line12.height);
        g.fillRect(line12.x, line12.y, line12.width, line12.height);
        g.fillRect(Line13.x, Line13.y, Line13.width, Line13.height);
        g.fillRect(line13.x, line13.y, line13.width, line13.height);
        g.fillRect(Line14.x, Line14.y, Line14.width, Line14.height);
        g.fillRect(line14.x, line14.y, line14.width, line14.height);
        }
        if(Map2){
        	g.setColor(Color.RED);
        	g.fillRect(Line15.x, Line15.y, Line15.width, Line15.height);
        	g.fillRect(Line16.x, Line16.y, Line16.width, Line16.height);
        	g.fillRect(Line17.x, Line17.y, Line17.width, Line17.height);
        	g.fillRect(Line18.x, Line18.y, Line18.width, Line18.height);
        	g.fillRect(Line19.x, Line19.y, Line19.width, Line19.height);
        	g.fillRect(Line20.x, Line20.y, Line20.width, Line20.height);
        	g.fillRect(Line21.x, Line21.y, Line21.width, Line21.height);
        	g.fillRect(Line22.x, Line22.y, Line22.width, Line22.height);
        	g.fillRect(Line23.x, Line23.y, Line23.width, Line23.height);
        	g.fillRect(Line24.x, Line24.y, Line24.width, Line24.height);
        	g.fillRect(Line25.x, Line25.y, Line25.width, Line25.height);
        	g.fillRect(Line26.x, Line26.y, Line26.width, Line26.height);
        	g.fillRect(line15.x, line15.y, line15.width, line15.height);
        	g.fillRect(line16.x, line16.y, line16.width, line16.height);
        	g.fillRect(line17.x, line17.y, line17.width, line17.height);
        	g.fillRect(line18.x, line18.y, line18.width, line18.height);
        	g.fillRect(line19.x, line19.y, line19.width, line19.height);
        	g.fillRect(line20.x, line20.y, line20.width, line20.height);
        	g.fillRect(line21.x, line21.y, line21.width, line21.height);
        	g.fillRect(line22.x, line22.y, line22.width, line22.height);
        	g.fillRect(line23.x, line23.y, line23.width, line23.height);
        	g.fillRect(line24.x, line24.y, line24.width, line24.height);
        	g.fillRect(line25.x, line25.y, line25.width, line25.height);
        	g.fillRect(line26.x, line26.y, line26.width, line26.height);
        }
        if(Map3){
            g.setColor(Color.GREEN);
            g.fillRect(Holder1.x, Holder1.y, Holder1.width, Holder1.height);
            g.fillRect(Holder2.x, Holder2.y, Holder2.width, Holder2.height);
            g.fillRect(Holder3.x, Holder3.y, Holder3.width, Holder3.height);
            g.fillRect(Line3.x, Line3.y, Line3.width, Line3.height);
            g.fillRect(Line4.x, Line4.y, Line4.width, Line4.height);
            g.fillRect(Line5.x, Line5.y, Line5.width, Line5.height);
            g.fillRect(Line6.x, Line6.y, Line6.width, Line6.height);
            g.fillRect(line3.x, line3.y, line3.width, line3.height);
            g.fillRect(line4.x, line4.y, line4.width, line4.height);
            g.fillRect(line5.x, line5.y, line5.width, line5.height);
            g.fillRect(line6.x, line6.y, line6.width, line6.height);
            g.fillRect(line7.x, line7.y, line7.width, line7.height);
            g.fillRect(Line7.x, Line7.y, Line7.width, Line7.height);
            g.fillRect(Line8.x, Line8.y, Line8.width, Line8.height);
            g.fillRect(line8.x, line8.y, line8.width, line8.height);
            g.fillRect(Line9.x, Line9.y, Line9.width, Line9.height);
            g.fillRect(line9.x, line9.y, line9.width, line9.height);
            g.fillRect(Line10.x, Line10.y, Line10.width, Line10.height);
            g.fillRect(line10.x, line10.y, line10.width, line10.height);
            g.fillRect(Line11.x, Line11.y, Line11.width, Line11.height);
            g.fillRect(line11.x, line11.y, line11.width, line11.height);
            g.fillRect(Line12.x, Line12.y, Line12.width, Line12.height);
            g.fillRect(line12.x, line12.y, line12.width, line12.height);
            g.fillRect(Line13.x, Line13.y, Line13.width, Line13.height);
            g.fillRect(line13.x, line13.y, line13.width, line13.height);
            g.fillRect(Line14.x, Line14.y, Line14.width, Line14.height);
            g.fillRect(line14.x, line14.y, line14.width, line14.height);
            }
        if(KeysIns){
            g.setColor(Color.BLACK);
            g.setFont(g.getFont().deriveFont(25f));
            g.drawString("Your goal", 123, 140);
            g.drawString("is to get", 126, 200);
            g.drawString("your character", 126, 250);
            g.drawString("to the SafeZone", 126, 300);
            g.drawString("Without touching the black line", 126, 350);
            g.drawString("Careful that you can go to the left", 126, 400);
            g.drawString("Through the walls but not right.", 126, 450);
            g.drawString("Be careful not to touch the Bosses.", 126, 500);
            g.setColor(Color.BLUE);
            g.drawString("WASD / arrow", 251,550);
            g.drawString("keys to move", 251, 580);
            g.drawString("Shift in case of panic", 251, 615);
            g.drawString("R to Reset", 251, 650);
            g.drawString("Escape to Quit", 251, 670);
            g.drawString("Space to Sprint", 251, 690);
        if(DeathScreen){
        	g.setColor(Color.BLACK);
        	g.setFont(g.getFont().deriveFont(25f));
        	g.drawString("Press R to restart", 496, 300);
        	isMoving = false;
            }
        }
        if(Map1){
        	g.setColor(Color.BLUE);
            g.setFont(g.getFont().deriveFont(25f));
            g.drawString("Level: 1 ", 253, 25);
        }
        if(Map2){
        	g.setColor(Color.BLUE);
            g.setFont(g.getFont().deriveFont(25f));
            g.drawString("Level: 2 ", 253, 25);
        }
       if(Dead) {
            g.setColor(Color.RED);
            g.setFont(g.getFont().deriveFont(25f));
            g.drawString("You Died", 496, 260);
            g.drawString("Press R to restart", 496, 310);
            isMoving = false;
            }
        if(Restart){
            character.x = 52;
            character.y = 52;
            Dead = false;
            DeathScreen = false;
            Finished = false;
        }
        if(StopReset1) {
            Reset = false;
        }
        if(FUp){
        	FDown = false;
        	FinalBoss.y -= 1;
        }
        if(FDown){
        	FUp = false;
        	FinalBoss.y += 1;
        }
        if(FRight){
        	FLeft = false;
        	FinalBoss.x += 1;
        }
        if(FLeft){
        	FRight = false;
        	FinalBoss.x -= 1;
        }
        if(FMoving){
        	if(FinalBoss.intersects(InvLine3)){
        		FLeft = false;
        		FRight = true;
        	}
        	if(FinalBoss.intersects(InvLine)){
        		FRight = false;
        		FLeft = true;
        	}
        	if(FinalBoss.intersects(Top)){
        		FUp = false;
        		FDown = true;
        	}
        	if(FinalBoss.intersects(Bottom)){
        		FDown = false;
        		FUp = true;
        	}
        	if(FinalBoss.intersects(Line)){
        		FRight = false;
        		FLeft = true;
        	}
        	if(FinalBoss.intersects(Line2)){
        		FRight = false;
        		FLeft = true;
        	}
        	if(FinalBoss.intersects(Line14)){
        		FLeft = false;
        		FRight = true;
        	}
        	if(FinalBoss.intersects(line14)){
        		FLeft = false;
        		FRight = true;
        	}
       	}
        if(BUp){
        	BDown = false;
        	Boss.y -= 1;
        }
        if(BDown){
        	BUp = false;
        	Boss.y += 1;
        }
        if(BUp2){
        	BDown2 = false;
        	Boss2.y -= 1;
        }
        if(BDown2){
        	BUp2 = false;
        	Boss2.y += 1;
        }
        if(BUp3){
        	BDown3 = false;
        	Boss3.y -= 1;
        }
        if(BDown3){
        	BUp3 = false;
        	Boss3.y += 1;
        }
        if(BUp4){
        	BDown4 = false;
        	Boss4.y -= 1;
        }
        if(BDown4){
        	BUp4 = false;
        	Boss4.y += 1;
        }
        if(BUp5){
        	BDown5 = false;
        	Boss5.y -= 1;
        }
        if(BDown5){
        	BUp5 = false;
        	Boss5.y += 1;
        }
        if(BossMoving){
         	if(Boss.intersects(Top)){
         		BUp = false;
         		BDown = true;
         	}
         	if(Boss.intersects(Bottom)){
         		BDown = false;
         		BUp = true;
         	}
        	}
        if(BossMoving2){
         	if(Boss2.intersects(Top)){
         		BUp2 = false;
         		BDown2 = true;
         	}
         	if(Boss2.intersects(Bottom)){
         		BDown2 = false;
         		BUp2 = true;
         	}
        	}
        if(BossMoving3){
         	if(Boss3.intersects(Top)){
         		BUp3 = false;
         		BDown3 = true;
         	}
         	if(Boss3.intersects(Bottom)){
         		BDown3 = false;
         		BUp3 = true;
         	}
        	}
        if(BossMoving4){
         	if(Boss4.intersects(Top)){
         		BUp4 = false;
         		BDown4 = true;
         	}
         	if(Boss4.intersects(Bottom)){
         		BDown4 = false;
         		BUp4 = true;
         	}
        	}
        if(BossMoving5){
         	if(Boss5.intersects(Top)){
         		BUp5 = false;
         		BDown5 = true;
         	}
         	if(Boss3.intersects(Bottom)){
         		BDown5 = false;
         		BUp5 = true;
         	}
        	}
        if(character.intersects(FinalBoss))  {
            Dead = true;
            isMoving = false;
            DeathScreen = true;
            character.x = 40000;
        }
        if(character.intersects(Boss))  {
            Dead = true;
            isMoving = false;
            DeathScreen = true;
            character.x = 40000;
        }
        if(character.intersects(Boss2))  {
            Dead = true;
            isMoving = false;
            DeathScreen = true;
            character.x = 40000;
        }
        if(character.intersects(Boss3))  {
            Dead = true;
            isMoving = false;
            DeathScreen = true;
            character.x = 40000;
        }
        if(character.intersects(Boss4))  {
        	Dead = true;
        	isMoving = false;
    	DeathScreen = true;
    	character.x = 40000;
        }
        if(character.intersects(Boss5))  {
        	Dead = true;
        	isMoving = false;
        	DeathScreen = true;
        	character.x = 40000;
        }
        if(character.intersects(Right))  {
            character.x -= 10;
            StopReset1 = true;
        }
        if(character.intersects(Left))  {
            character.x += 10;
            StopReset1 = true;
        }
        if(character.intersects(Bottom))  {
            character.y -= 10;
            StopReset1 = true;
        }
       if(Map1){
        if(character.intersects(Holder1))  {
            character.y += 10;
            StopReset1 = true;
            SpeedBoost = true;
        }
        if(character.intersects(Holder2))  {
            character.y += 10;
            StopReset1 = true;
        }
        if(character.intersects(Holder3))  {
            character.y -= 10;
            StopReset1 = true;
        }
        if(character.intersects(Top))  {
            character.y += 10;
            StopReset1 = true;
        }
        if(character.intersects(Line))  {
            Dead = true;
            isMoving = false;
            DeathScreen = true;
            character.x = 40000;
        }
        if(character.intersects(Line2))  {
            Dead = true;
            isMoving = false;
            DeathScreen = true;
            character.x = 40000;
        }
        if(character.intersects(Line3))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(Line4))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(Line5))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(Line6))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(line3))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(line4))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(line5))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(line6))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(line7))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(Line7))  {
            Reset = true;
            StopReset1 = true;
        }
        if(character.intersects(line8))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line8))  {
                Reset = true;
                StopReset1 = true;}
        if(character.intersects(line9))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line9))  {
                Reset = true;
                StopReset1 = true;}
        if(character.intersects(line10))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line10))  {
                Reset = true;
                StopReset1 = true;}
        if(character.intersects(line11))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line11))  {
                Reset = true;
                StopReset1 = true;}
        if(character.intersects(line12))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line12))  {
                Reset = true;
                StopReset1 = true;}
        if(character.intersects(line13))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line13))  {
                Reset = true;
                StopReset1 = true;}
        if(character.intersects(line14))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line14))  {
                Reset = true;
                StopReset1 = true;}
      }
       if(Map2){
        if(character.intersects(Line15))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line16))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line17))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line18))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line19))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line20))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line21))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line22))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line23))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line24))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line25))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(Line26))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line15))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line16))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line17))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line18))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line19))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line20))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line21))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line22))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line23))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line24))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line25))  {
            Reset = true;
            StopReset1 = true;}
        if(character.intersects(line26))  {
            Reset = true;
            StopReset1 = true;}
       }
        if(character.intersects(InvLine)) {
            g.setColor(Color.BLUE);
            g.setFont(g.getFont().deriveFont(25f));
        }
        if(character.intersects(InvLine2)) {
        	try {
    			Thread.sleep(300);
    		} catch (InterruptedException e) {
    			e.printStackTrace();
    		}
            Finished = true;
        }
        if(Finished){
        	character.x = 52;
            character.y = 52;
        	g.setColor(Color.BLACK);
            g.setFont(g.getFont().deriveFont(35f));
        	 g.drawString("Thank you for Playing!", 440, 260);
             g.drawString("You Passed!", 500, 300);
             g.setColor(Color.BLUE);
             g.setFont(g.getFont().deriveFont(30));
             g.drawString("Close to Restart", 500, 500);
             Map1 = false;
             Map2 = true;
             if(character.intersects(InvLine)){
            	 if(Map2){
            		 Map1 = Map2;
            		 Map2 = Map3;
            		 Map3 = true;
            		 Map2 = false;
            	 }
             }
             try {
				Thread.sleep(100);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
             Finished = false;
        }
        if(character.intersects(StartingPoint)) {
        Restart = false;
        g.setColor(Color.BLACK);
        g.setFont(g.getFont().deriveFont(25f));
        g.drawString("Press K", 258, 100);
        g.drawString("for Instructions", 260, 145);
        g.setColor(Color.BLUE);
        g.drawString("WASD / arrow", 251,550);
        g.drawString("keys to move", 251, 580);
        }
        if(maxHealth <= 0){
        	 try {
     			Thread.sleep(300);
     		} catch (InterruptedException e) {
     			e.printStackTrace();
     		}
			lost = true;
		}
        if(lost){
        	character.x = 52;
            character.y = 52;
        	g.setColor(Color.BLACK);
            g.setFont(g.getFont().deriveFont(35f));
        	 g.drawString("You Lost!", 440, 260);
        	 g.setColor(Color.BLUE);
             g.setFont(g.getFont().deriveFont(30));
             g.drawString("Close to Restart", 500, 500);
        }
        if(jumping){
            character.y --;
        }
		if(right){
			character.x += verticalSpeed;
        }
		if(left){
			character.x -= verticalSpeed;
		}
            if(up)
                character.y += -verticalSpeed;
            if(down){
                character.y += verticalSpeed;
            }
		repaint();
	}