Visual Editor

Status
Nicht offen für weitere Antworten.

RaZ0oR

Mitglied
Hi,
ich benutze seit gestern den Visual Editor von Eclipse. Ich habe ihn mir wegen dem GridBagLayout geholt. Wo ich den VE noch nicht hattte, konnte ich meien Porgamme, problemlos als .jar exportieren. Jetzt wo ich den VE benutze, verlangt er von mir eine Mainclass die wohl nicht vorhanden ist. Wenn ich keien Maincalss habe, kann ich die .jar datei nicht exportieren. In eclipse kann ich mir die Progarmme als Java Bean (ka was das ist) anschauen. Weiß vielleciht jemandn wie ich eine Java Bean oder das Layout vom Programm (ist bis jetzt nu das Layout) so zurecht b ekomme, dass ich es als .jar datei machen kann.

Das Prog

Code:
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JFrame;
import java.awt.GridBagLayout;
import javax.swing.JLabel;
import java.awt.GridBagConstraints;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JScrollPane;
import java.awt.Dimension;
import java.awt.Dialog;

public class gfdd extends JFrame {

	private static final long serialVersionUID = 1L;

	private JPanel jContentPane = null;

	private JLabel jLabel1 = null;

	private JLabel jLabel2 = null;

	private JLabel jLabel3 = null;

	private JButton jButton = null;

	private JButton jButton1 = null;

	private JLabel jLabel4 = null;

	private JScrollPane jScrollPane = null;

	private JTextField jTextField = null;

	private JTextField jTextField1 = null;

	private JTextField jTextField2 = null;

	/**
	 * This is the default constructor
	 */
	public gfdd() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(374, 181);
		this.setContentPane(getJContentPane());
		this.setTitle("JFrame");
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			GridBagConstraints gridBagConstraints61 = new GridBagConstraints();
			gridBagConstraints61.fill = GridBagConstraints.VERTICAL;
			gridBagConstraints61.gridy = 3;
			gridBagConstraints61.weightx = 1.0;
			gridBagConstraints61.gridx = 1;
			GridBagConstraints gridBagConstraints51 = new GridBagConstraints();
			gridBagConstraints51.fill = GridBagConstraints.VERTICAL;
			gridBagConstraints51.gridy = 2;
			gridBagConstraints51.weightx = 1.0;
			gridBagConstraints51.gridx = 1;
			GridBagConstraints gridBagConstraints31 = new GridBagConstraints();
			gridBagConstraints31.fill = GridBagConstraints.BOTH;
			gridBagConstraints31.gridy = 1;
			gridBagConstraints31.weightx = 1.0;
			gridBagConstraints31.weighty = 1.0;
			gridBagConstraints31.gridheight = 8;
			gridBagConstraints31.gridx = 4;
			GridBagConstraints gridBagConstraints6 = new GridBagConstraints();
			gridBagConstraints6.gridx = 1;
			gridBagConstraints6.gridy = 7;
			GridBagConstraints gridBagConstraints5 = new GridBagConstraints();
			gridBagConstraints5.gridx = 1;
			gridBagConstraints5.gridy = 5;
			GridBagConstraints gridBagConstraints4 = new GridBagConstraints();
			gridBagConstraints4.gridx = 1;
			gridBagConstraints4.gridy = 1;
			jLabel3 = new JLabel();
			jLabel3.setText("JLabel");
			GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
			gridBagConstraints3.gridx = 0;
			gridBagConstraints3.gridy = 3;
			jLabel2 = new JLabel();
			jLabel2.setText("JLabel");
			GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
			gridBagConstraints1.gridx = 0;
			gridBagConstraints1.gridy = 2;
			jLabel1 = new JLabel();
			jLabel1.setText("JLabel");
			jContentPane = new JPanel();
			jContentPane.setLayout(new GridBagLayout());
			jContentPane.add(jLabel1, gridBagConstraints1);
			jContentPane.add(jLabel2, gridBagConstraints3);
			jContentPane.add(jLabel3, gridBagConstraints4);
			jContentPane.add(getJButton(), gridBagConstraints5);
			jContentPane.add(getJButton1(), gridBagConstraints6);
			jContentPane.add(getJScrollPane(), gridBagConstraints31);
			jContentPane.add(getJTextField(), gridBagConstraints51);
			jContentPane.add(getJTextField1(), gridBagConstraints61);
		}
		return jContentPane;
	}

	/**
	 * This method initializes jButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton() {
		if (jButton == null) {
			jButton = new JButton();
		}
		return jButton;
	}

	/**
	 * This method initializes jButton1	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton1() {
		if (jButton1 == null) {
			jButton1 = new JButton();
		}
		return jButton1;
	}

	/**
	 * This method initializes jScrollPane	
	 * 	
	 * @return javax.swing.JScrollPane	
	 */
	private JScrollPane getJScrollPane() {
		if (jScrollPane == null) {
			jLabel.setText("JLabel");
			jScrollPane = new JScrollPane();
			jScrollPane.setViewportView(getJTextField2());
		}
		return jScrollPane;
	}

	/**
	 * This method initializes jTextField	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField() {
		if (jTextField == null) {
			jTextField = new JTextField();
		}
		return jTextField;
	}

	/**
	 * This method initializes jTextField1	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField1() {
		if (jTextField1 == null) {
			jTextField1 = new JTextField();
		}
		return jTextField1;
	}

	/**
	 * This method initializes jTextField2	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField2() {
		if (jTextField2 == null) {
			jTextField2 = new JTextField();
		}
		return jTextField2;
	}

}  //  @jve:decl-index=0:visual-constraint="75,25"

Danke für jede hilfe
 

pc-world

Bekanntes Mitglied
Ich hatte den VE auch mal installiert, und dann kam bei mir auch immer, dass keine Main-Class vorhanden sei (obwohl eine da war...)!

Java.jpg


Habe dann eclipse neu aufgesetzt...
 
Status
Nicht offen für weitere Antworten.
Ähnliche Java Themen
  Titel Forum Antworten Datum
R Eclipse Visual Editor - es klappt einfach nicht! IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
M Eclipse Visual Editor - nichts mehr zu sehen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
A Eclipse Visual Editor merkwürdiges verhalten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
W Probleme bei der Installation von Visual Editor in Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
algorismi Visual Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
K Wie den Visual Editor installieren? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
H Eclipse Visual Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
V Eclipse Galileo und Visual Editor Problem IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 20
P Eclipse 3.4 und Visual Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
I Eclipse mit dem Visual Editor downloaden? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
G Wird der Visual Editor für Eclipse weiterentwickelt? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
E einfache Frage zu Netbeans und visual Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G Eclipse mit Visual Editor unter Mac OS IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
T Eclipse 3.3 + Visual Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 15
P Eclipse Visual Editor keine Patterns und keine Anzeige IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
padde479 Eclipse: Visual Editor installieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
P Visual Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
S Visual Editor Plug-In unter Eclipse installieren, wie? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
K Visual Editor in Eclipse zeigt nichts an :-( IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
P Problem mit dem Visual Editor in Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
M Visual Editor und JFrame IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
A Visual Editor von/für Eclipse gesucht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
M Eclipse: Visual Editor und Layoutmanager IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
S Erfahrungen mit Eclipse Visual Editor 1.0 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
A Swing-GUI-Builder: JBuilder, NetBeans oder Visual Editor? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
A Eclipses Visual Editor und Arbeitsgeschwindigkeit IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
G Eclipse: Visual Editor verwenden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
E Visual Studio Code IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
Ugi25 Visual Studio Code Probleme IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
J Visual Studio als IDE IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
V Eclipse Vervollständigung wie in Visual Studio IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
S Eclipse Versionswechsel, visual class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
B Eclipse Debugger Plugin "Visual Studio Style" IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G Visual J# ? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
G Visual Age for Java IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
J Fenster öffnen per Button klick erstellt mit Visual Class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
C In Eclipse Einrückung im Java-Editor einstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
K Java Editor Problem IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
arjoopy Eclipse Anpassung Farbgebung Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
WetWer Welcher Java Editor wird empfolen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 12
L0MiN Java Editor Spinnt nur mein Java Editor? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
J Gibt es einen Flussdiagramm-Editor, bei dem man den Ablauf auch durchspielen kan? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
S Eclipse Wie den Editor ein wenig aufbohren? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
U Eclipse Editor freier Cursor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
F Java Editor Label Farbe IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
I Java-Editor geht nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
T Eclipse externer Editor einstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
R Eclipse Class File Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
S Eclipes Editor: auto-funktionen funktionieren nicht mehr IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
S netbeans <editor-fold> IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
T Eclipse IDE friert beim Öffnen einer Datei im Editor ein IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
G NetBeans Editor Hints haben keine Auswirkung IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
Y simpler syntax highlight editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
C Java Editor empfohlener editor unter linux (ubuntu 10) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 13
X Eclipse - Pluginprobleme: UML editor (UML2) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
K Eclipse Strings externalisieren - ResourceBundle-Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
P Eclipse JavaScript-Editor für die ScriptEngine von Java IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
K Eclipse Editor: Vertikale "Gitter"-Linien? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
K Eclipse Editor: Formatierung - Plugin für umfangreichere Optionen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
KrokoDiehl Eclipse Editor für Dateityp konfigurieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 18
R Guter GUI Editor für Eclipse? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
Ein Keks Eclipse - Unable to create editor ID IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
ARadauer Ganymede ohne JSP Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
V Eclipse öffnet nicht den eingestellten JadClipse Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
A Free UML Editor für Eclipse? Empfehlung? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
T Editor zwischen Notepad und Eclipse. IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
I Einfacher Editor vs. Entwicklungsumgebung IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 48
Kr0e Multiuser Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 18
G Eclipse: Nur 1 einzelne Methode im Editor anzeigen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
E Empfohlener Syntax Highlighter (Editor) für Anfänger IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 12
T Wie konfiguriere ich den Java Editor richtig? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
T Mein Java Editor startet 18 mal IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
byte Hibernate Tools: Criteria Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
B Eclipse Java Editor Methoden ausblenden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G Benutzt ihr den Matisse GUI-Editor? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
Linad eclipse: gleiche Variablen anzeigen im Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G Editor/Compiler unter Linux IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G *.jar-datei in editor öffnen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
G Editor für Java debian/X11 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
S XML Editor Plugin IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
H NetBeans 5 und GUI-Editor "Mantisse" IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
K HTML Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
S Java Editor für Linux IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
L GUI editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
G Java-Editor und -Compiler für USB-Stick IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
B SQL-Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
S Grafischer Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
C Java-Editor Jedit - Button zum Kompilieren/Ausführen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
O Welcher Editor? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 34
E eclipse 3.0.1 Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
S JOE-Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
D Eclipse 3 entlich mit GUI Editor? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
C kleiner Editor ! IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
C kleiner Java-Editor neben Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 15
R UML-Diagramm-Editor für Java IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
M Eclipse - Class File Editor -> Source not found IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
B Java-Editor Probleme IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4

Ähnliche Java Themen

Neue Themen


Oben