JEditorPane und Strg - z?

Status
Nicht offen für weitere Antworten.

Math55

Bekanntes Mitglied
hallo, ich bin dabei einen kleinen editor zu schreiben. gibt es ein pane, welches das rückgangig mahen via strg-z unterstützt? oder muß ich das selber machen? wenn ja, hat jemand ne idee?

DANKE:)
 

Math55

Bekanntes Mitglied
hallo, ich habs jetzt so. der editor unterstützt bereits syntaxhighlighting. genau das ist das problem. nehme ich die 2 zeilen am ende raus, dann gehts, dann wird allerdings die syntax nicht erkannt. nehme ich sie rein, dann klappt das highlighting, aber undo/redo nicht mehr, ne idee? leider ist der code etwas lang. aber es kommt ja nur auf das undo / redo an, wie das highlighten funzt ist ja egal, oer nicht?

Code:
import java.awt.*;
import java.util.*;
import javax.swing.*;
import javax.swing.text.*;
import javax.swing.undo.*;
import javax.swing.event.*;
import javax.swing.event.*;
import java.awt.event.*;


class jpe extends DefaultStyledDocument {

	private DefaultStyledDocument doc;
	private Element rootElement;

	int index;

	private boolean multiLineComment;
	private MutableAttributeSet normal;
	private MutableAttributeSet keyword;
	private MutableAttributeSet comment;
	private MutableAttributeSet quote;
	private MutableAttributeSet method;
	private MutableAttributeSet variable;
	

	private Hashtable keywords;
	private Hashtable methodhash;

	public jpe() {
		doc = this;
		rootElement = doc.getDefaultRootElement();
		putProperty(DefaultEditorKit.EndOfLineStringProperty, "\n");

		normal = new SimpleAttributeSet();
		StyleConstants.setForeground(normal, Color.black);

		comment = new SimpleAttributeSet();
		StyleConstants.setForeground(comment, Color.gray);
		StyleConstants.setItalic(comment, true);

		keyword = new SimpleAttributeSet();
		StyleConstants.setForeground(keyword, Color.blue);

		method = new SimpleAttributeSet();
		StyleConstants.setForeground(method, Color.magenta);
		
		variable = new SimpleAttributeSet();
		StyleConstants.setForeground(method, Color.magenta);

		quote = new SimpleAttributeSet();
		StyleConstants.setForeground(quote, Color.red);
		
		//Keywords like double, for, if ....
		Object keywordObject = new Object();
		keywords = new Hashtable();
		keywords.put("abstract", keywordObject);
		keywords.put("boolean", keywordObject);
		keywords.put("break", keywordObject);
		keywords.put("byte", keywordObject);
		keywords.put("byvalue", keywordObject);
		keywords.put("case", keywordObject);
		keywords.put("cast", keywordObject);
		keywords.put("catch", keywordObject);
		keywords.put("char", keywordObject);
		keywords.put("class", keywordObject);
		keywords.put("const", keywordObject);
		keywords.put("continue", keywordObject);
		keywords.put("default", keywordObject);
		keywords.put("do", keywordObject);
		keywords.put("double", keywordObject);
		keywords.put("else", keywordObject);
		keywords.put("extends", keywordObject);
		keywords.put("false", keywordObject);
		keywords.put("final", keywordObject);
		keywords.put("finally", keywordObject);
		keywords.put("float", keywordObject);
		keywords.put("for", keywordObject);
		keywords.put("future", keywordObject);
		keywords.put("generic", keywordObject);
		keywords.put("goto", keywordObject);
		keywords.put("if", keywordObject);
		keywords.put("implements", keywordObject);
		keywords.put("import", keywordObject);
		keywords.put("inner", keywordObject);
		keywords.put("instanceof", keywordObject);
		keywords.put("int", keywordObject);
		keywords.put("interface", keywordObject);
		keywords.put("long", keywordObject);
		keywords.put("native", keywordObject);
		keywords.put("new", keywordObject);
		keywords.put("null", keywordObject);
		keywords.put("operator", keywordObject);
		keywords.put("outer", keywordObject);
		keywords.put("package", keywordObject);
		keywords.put("private", keywordObject);
		keywords.put("protected", keywordObject);
		keywords.put("public", keywordObject);
		keywords.put("rest", keywordObject);
		keywords.put("return", keywordObject);
		keywords.put("short", keywordObject);
		keywords.put("static", keywordObject);
		keywords.put("String", keywordObject);
		keywords.put("super", keywordObject);
		keywords.put("switch", keywordObject);
		keywords.put("synchronized", keywordObject);
		keywords.put("this", keywordObject);
		keywords.put("throw", keywordObject);
		keywords.put("throws", keywordObject);
		keywords.put("transient", keywordObject);
		keywords.put("true", keywordObject);
		keywords.put("try", keywordObject);
		keywords.put("var", keywordObject);
		keywords.put("virtual", keywordObject);
		keywords.put("void", keywordObject);
		keywords.put("volatile", keywordObject);
		keywords.put("while", keywordObject);
		
		//"Methods" like procedure in Pascal or sub in Perl
		Object methodObject = new Object();
		methodhash = new Hashtable();
		methodhash.put("sub", methodObject);
		methodhash.put("procedure", methodObject);
		methodhash.put("function", methodObject);
		methodhash.put("union", methodObject);
	}

	/* 
	 *  Override to apply syntax highlighting after the document has been updated 
	 */
	public void insertString(int offset, String str, AttributeSet a)
		throws BadLocationException {
		if (str.equals("{"))
			str = addMatchingBrace(offset);

		super.insertString(offset, str, a);
		processChangedLines(offset, str.length());
	}

	/* 
	 *  Override to apply syntax highlighting after the document has been updated 
	 */
	public void remove(int offset, int length) throws BadLocationException {
		super.remove(offset, length);
		processChangedLines(offset, 0);
	}

	/* 
	 *  Determine how many lines have been changed, 
	 *  then apply highlighting to each line 
	 */
	private void processChangedLines(int offset, int length)
		throws BadLocationException {
		String content = doc.getText(0, doc.getLength());

		//  The lines affected by the latest document update 
		int startLine = rootElement.getElementIndex(offset);
		int endLine = rootElement.getElementIndex(offset + length);

		//  Make sure all comment lines prior to the start line are commented 
		//  and determine if the start line is still in a multi line comment 
		setMultiLineComment(commentLinesBefore(content, startLine));

		//  Do the actual highlighting 
		for (int i = startLine; i <= endLine; i++) {
			applyHighlighting(content, i);
		}

		//  Resolve highlighting to the next end multi line delimiter 
		if (isMultiLineComment())
			commentLinesAfter(content, endLine);
		else
			highlightLinesAfter(content, endLine);
	}

	/* 
	 *  Highlight lines when a multi line comment is still 'open' 
	 *  (ie. matching end delimiter has not yet been encountered) 
	 */
	private boolean commentLinesBefore(String content, int line) {
		int offset = rootElement.getElement(line).getStartOffset();

		//  Start of comment not found, nothing to do 
		int startDelimiter =
			lastIndexOf(content, getStartDelimiter(), offset - 2);

		if (startDelimiter < 0)
			return false;

		//  Matching start/end of comment found, nothing to do 
		int endDelimiter = indexOf(content, getEndDelimiter(), startDelimiter);

		if (endDelimiter < offset & endDelimiter != -1)
			return false;

		//  End of comment not found, highlight the lines 
		doc.setCharacterAttributes(
			startDelimiter,
			offset - startDelimiter + 1,
			comment,
			false);
		return true;
	}

	/* 
	 *  Highlight comment lines to matching end delimiter 
	 */
	private void commentLinesAfter(String content, int line) {
		int offset = rootElement.getElement(line).getEndOffset();

		//  End of comment not found, nothing to do 
		int endDelimiter = indexOf(content, getEndDelimiter(), offset);

		if (endDelimiter < 0)
			return;

		//  Matching start/end of comment found, comment the lines 
		int startDelimiter =
			lastIndexOf(content, getStartDelimiter(), endDelimiter);

		if (startDelimiter < 0 || startDelimiter <= offset) {
			doc.setCharacterAttributes(
				offset,
				endDelimiter - offset + 1,
				comment,
				false);
		}
	}

	/* 
	 *  Highlight lines to start or end delimiter 
	 */
	private void highlightLinesAfter(String content, int line)
		throws BadLocationException {
		int offset = rootElement.getElement(line).getEndOffset();

		//  Start/End delimiter not found, nothing to do 

		int startDelimiter = indexOf(content, getStartDelimiter(), offset);
		int endDelimiter = indexOf(content, getEndDelimiter(), offset);

		if (startDelimiter < 0)
			startDelimiter = content.length();

		if (endDelimiter < 0)
			endDelimiter = content.length();

		int delimiter = Math.min(startDelimiter, endDelimiter);

		if (delimiter < offset)
			return;

		//   Start/End delimiter found, reapply highlighting 
		int endLine = rootElement.getElementIndex(delimiter);

		for (int i = line + 1; i < endLine; i++) {
			Element branch = rootElement.getElement(i);
			Element leaf = doc.getCharacterElement(branch.getStartOffset());
			AttributeSet as = leaf.getAttributes();

			if (as.isEqual(comment))
				applyHighlighting(content, i);
		}
	}

	/* 
	 *  Parse the line to determine the appropriate highlighting 
	 */
	private void applyHighlighting(String content, int line)
		throws BadLocationException {
		int startOffset = rootElement.getElement(line).getStartOffset();
		int endOffset = rootElement.getElement(line).getEndOffset() - 1;

		int lineLength = endOffset - startOffset;
		int contentLength = content.length();

		if (endOffset >= contentLength)
			endOffset = contentLength - 1;

		//  check for multi line comments 
		//  (always set the comment attribute for the entire line) 
		if (endingMultiLineComment(content, startOffset, endOffset)
			|| isMultiLineComment()
			|| startingMultiLineComment(content, startOffset, endOffset)) {
			doc.setCharacterAttributes(
				startOffset,
				endOffset - startOffset + 1,
				comment,
				false);
			return;
		}

		//  set normal attributes for the line 
		doc.setCharacterAttributes(startOffset, lineLength, normal, true);

		//  check for single line comment 
		int index = content.indexOf(getSingleLineDelimiter(), startOffset);
			
		if ((index > -1) && (index < endOffset)) {
			doc.setCharacterAttributes(
				index,
				endOffset - index + 1,
				comment,
				false);
			endOffset = index - 1;
		}

		//  check for tokens 
		checkForTokens(content, startOffset, endOffset);
	}

	/* 
	 *  Does this line contain the start delimiter 
	 */
	private boolean startingMultiLineComment(
		String content,
		int startOffset,
		int endOffset)
		throws BadLocationException {
		int index = indexOf(content, getStartDelimiter(), startOffset);

		if ((index < 0) || (index > endOffset))
			return false;
		else {
			setMultiLineComment(true);
			return true;
		}
	}

	/* 
	 *  Does this line contain the end delimiter 
	 */
	private boolean endingMultiLineComment(
		String content,
		int startOffset,
		int endOffset)
		throws BadLocationException {
		int index = indexOf(content, getEndDelimiter(), startOffset);

		if ((index < 0) || (index > endOffset))
			return false;
		else {
			setMultiLineComment(false);
			return true;
		}
	}

	/* 
	 *  We have found a start delimiter 
	 *  and are still searching for the end delimiter 
	 */
	private boolean isMultiLineComment() {
		return multiLineComment;
	}

	private void setMultiLineComment(boolean value) {
		multiLineComment = value;
	}

	/* 
	 *   Parse the line for tokens to highlight 
	 */
	private void checkForTokens(
		String content,
		int startOffset,
		int endOffset) {
		while (startOffset <= endOffset) {

			//  skip the delimiters to find the start of a new token 
			while (isDelimiter(content
				.substring(startOffset, startOffset + 1))) {
				if (startOffset < endOffset)
					startOffset++;
				else
					return;
			}

			//  Extract and process the entire token 
			if (isQuoteDelimiter(content
				.substring(startOffset, startOffset + 1)))
				startOffset = getQuoteToken(content, startOffset, endOffset);
			else
				startOffset = getOtherToken(content, startOffset, endOffset);
		}
	}

	/* 
	 * 
	 */
	private int getQuoteToken(String content, int startOffset, int endOffset) {
		String quoteDelimiter = content.substring(startOffset, startOffset + 1);
		String escapeString = getEscapeString(quoteDelimiter);

		int index;
		int endOfQuote = startOffset;

		//  skip over the escape quotes in this quote 
		index = content.indexOf(escapeString, endOfQuote + 1);

		while ((index > -1) && (index < endOffset)) {
			endOfQuote = index + 1;
			index = content.indexOf(escapeString, endOfQuote);
		}

		// now find the matching delimiter 
		index = content.indexOf(quoteDelimiter, endOfQuote + 1);

		if ((index < 0) || (index > endOffset))
			endOfQuote = endOffset;
		else
			endOfQuote = index;

		doc.setCharacterAttributes(
			startOffset,
			endOfQuote - startOffset + 1,
			quote,
			false);

		return endOfQuote + 1;
	}

	/* 
	 * 
	 */
	private int getOtherToken(String content, int startOffset, int endOffset) {
		int endOfToken = startOffset + 1;

		while (endOfToken <= endOffset) {
			if (isDelimiter(content.substring(endOfToken, endOfToken + 1)))
				break;

			endOfToken++;
		}

		String token = content.substring(startOffset, endOfToken);
		

		//Keyword? --> see keywordhash for supported keywords
		if (isKeyword(token))
			doc.setCharacterAttributes(
				startOffset,
				endOfToken - startOffset,
				keyword,
				false);
		
		//Method? --> see methodhash for supported names
		if (isMethod(token)||token.startsWith("@")||token.startsWith("$#")||token.startsWith("$"))
			doc.setCharacterAttributes(
				startOffset,
				endOfToken - startOffset,
				method,
				false);

		return endOfToken + 1;
	}

	/* 
	 *  Assume the needle will the found at the start/end of the line 
	 */
	private int indexOf(String content, String needle, int offset) {
		int index;

		while ((index = content.indexOf(needle, offset)) != -1) {
			String text = getLine(content, index).trim();

			if (text.startsWith(needle) || text.endsWith(needle))
				break;
			else
				offset = index + 1;
		}

		return index;
	}

	/* 
	 *  Assume the needle will the found at the start/end of the line 
	 */
	private int lastIndexOf(String content, String needle, int offset) {
		int index;

		while ((index = content.lastIndexOf(needle, offset)) != -1) {
			String text = getLine(content, index).trim();

			if (text.startsWith(needle) || text.endsWith(needle))
				break;
			else
				offset = index - 1;
		}

		return index;
	}

	private String getLine(String content, int offset) {
		int line = rootElement.getElementIndex(offset);
		Element lineElement = rootElement.getElement(line);
		int start = lineElement.getStartOffset();
		int end = lineElement.getEndOffset();
		return content.substring(start, end - 1);
	}

	/* 
	 *  Override for other languages 
	 */
	protected boolean isDelimiter(String character) {
		String operands = ";:{}()[]+-/%<=>!&|^~*";

		if (Character.isWhitespace(character.charAt(0))
			|| operands.indexOf(character) != -1)
			return true;
		else
			return false;
	}

	/* 
	 *  Override for other languages 
	 */
	protected boolean isQuoteDelimiter(String character) {
		String quoteDelimiters = "\"'";

		if (quoteDelimiters.indexOf(character) < 0)
			return false;
		else
			return true;
	}

	
	protected boolean isKeyword(String token) {
		Object o = keywords.get(token);

		return o == null ? false : true;
	}

	protected boolean isMethod(String token) {
		Object o1 = methodhash.get(token);

		return o1 == null ? false : true;
	}

	/* 
	 *  Override for other languages 
	 */
	protected String getStartDelimiter() {
		return "/*";
	}

	/* 
	 *  Override for other languages 
	 */
	protected String getEndDelimiter() {
		return "*/";
	}

	/* 
	 *  Override for other languages 
	 */
	protected String getSingleLineDelimiter() {
		return "//";
	}

	/* 
	 *  Override for other languages 
	 */
	protected String getEscapeString(String quoteDelimiter) {
		return "\\" + quoteDelimiter;
	}

	/* 
	 * 
	 */
	protected String addMatchingBrace(int offset) throws BadLocationException {
		StringBuffer whiteSpace = new StringBuffer();
		int line = rootElement.getElementIndex(offset);
		int i = rootElement.getElement(line).getStartOffset();

		while (true) {
			String temp = doc.getText(i, 1);

			if (temp.equals(" ") || temp.equals("\t")) {
				whiteSpace.append(temp);
				i++;
			} else
				break;
		}

		return "{\n"
			+ whiteSpace.toString()
			+ "\t\n"
			+ whiteSpace.toString()
			+ "}";
	}

	public static void main(String a[]) {
		
		//MenuJFrame mjf = new MenuJFrame("Java Programmers Editor (jpe)");
		JFrame mjf = new JFrame();
		JEditorPane textcomp  = new JEditorPane();
		
		final UndoManager undo = new UndoManager();
 
		Document doc1 = textcomp.getDocument();
    
		doc1.addUndoableEditListener(new UndoableEditListener() {
			public void undoableEditHappened(UndoableEditEvent evt) {
				System.out.println("dsjkdjskdjskdsjkd");
				
				undo.addEdit(evt.getEdit());
			}
		});
		
		textcomp.getActionMap().put("Undo",
			new AbstractAction("Undo") {
				public void actionPerformed(ActionEvent evt) {
					try {
						if (undo.canUndo()) {
							undo.undo();
						}
					} catch (CannotUndoException e) {
					}
				}
		   });
		
		textcomp.getInputMap().put(KeyStroke.getKeyStroke("control Z"), "Undo");
		
		textcomp.getActionMap().put("Redo",
			new AbstractAction("Redo") {
				public void actionPerformed(ActionEvent evt) {
					try {
						if (undo.canRedo()) {
							undo.redo();
						}
					} catch (CannotRedoException e) {
					}
				}
			});
		
		
		textcomp.getInputMap().put(KeyStroke.getKeyStroke("control Y"), "Redo");
		
		/* Diese beiden Zeilen machen Probleme !!!!!!!!*/
		//textcomp.setEditorKit(new StyledEditorKit());
		//textcomp.setDocument(new SyntaxDocument());
		JScrollPane scroll = new JScrollPane(textcomp);
		
		mjf.getContentPane().add(scroll);
		mjf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		mjf.setSize(600, 300);
		mjf.setVisible(true);
	}
}


DANKE!!! :)
 
Status
Nicht offen für weitere Antworten.
Ähnliche Java Themen
  Titel Forum Antworten Datum
W JEditorPane textausrichtung nach settext funktioniert nicht mehr AWT, Swing, JavaFX & SWT 11
O Soll ich einen JEditorPane verwenden ? AWT, Swing, JavaFX & SWT 5
E wie Schriftfarbe in JEditorPane verändern? AWT, Swing, JavaFX & SWT 10
P Swing JEditorPane in Kombination mit JScrollPane AWT, Swing, JavaFX & SWT 29
L Ausgabe in JEditorPane mittels HTMLEditorKit zeigt auf bestimmten Systemen falsche Zeichen AWT, Swing, JavaFX & SWT 1
N JEditorPane und automatische Scrollposition AWT, Swing, JavaFX & SWT 2
K JEditorPane Text einfügen AWT, Swing, JavaFX & SWT 4
B JEditorPane lädt keine Schriftfarbe in HTML AWT, Swing, JavaFX & SWT 2
J JEditorPane mit HTML füllen AWT, Swing, JavaFX & SWT 2
C JEditorPane und Gifs AWT, Swing, JavaFX & SWT 2
B Swing JEditorPane ohne Zeilenumbruch nach InputStream AWT, Swing, JavaFX & SWT 2
H JScrollPane - JEditorPane und HTML-Tabelle AWT, Swing, JavaFX & SWT 2
H Swing JEditorPane und HTML AWT, Swing, JavaFX & SWT 3
S JEditorPane Zeilen zählen AWT, Swing, JavaFX & SWT 5
C Swing JEditorPane: Caret nach Rechtsklick neu setzen AWT, Swing, JavaFX & SWT 4
X JEditorPane Größe in JDialog automatisch anpassen AWT, Swing, JavaFX & SWT 2
C JTextPane / JEditorPane ohne Keywords farbig machen AWT, Swing, JavaFX & SWT 4
S JEditorPane oder JTextPane? AWT, Swing, JavaFX & SWT 2
M Swing JEditorPane: Text formatieren AWT, Swing, JavaFX & SWT 2
F Swing JEditorPane Bild mittig einbinden AWT, Swing, JavaFX & SWT 5
H Swing HTML in einem JEditorPane zeilenweise hinzufügen ohne Inhalt jedes Mal neu zu laden AWT, Swing, JavaFX & SWT 4
B 2D-Grafik Zeilen drehen im JEditorPane AWT, Swing, JavaFX & SWT 3
H Plain Text in RTF JEditorPane? AWT, Swing, JavaFX & SWT 3
D Informationen über JEditorPane gesucht AWT, Swing, JavaFX & SWT 2
C Swing Scrollbalken in JEditorPane - WIE? AWT, Swing, JavaFX & SWT 3
destroflyer Swing UTF-8 in JEditorPane darstellen AWT, Swing, JavaFX & SWT 5
J Swing JEditorPane flackert AWT, Swing, JavaFX & SWT 2
F Swing Performanceproblem mit JEditorpane AWT, Swing, JavaFX & SWT 3
S Swing HTML-Text in JEditorPane einfärben AWT, Swing, JavaFX & SWT 5
I JTextPane und Hyperlink (ohne JEditorPane) AWT, Swing, JavaFX & SWT 5
P Swing JEditorPane mit HTMLDocument - Text hinzufügen AWT, Swing, JavaFX & SWT 2
T Swing JEditorPane Groesse berechnen AWT, Swing, JavaFX & SWT 2
N Swing JEditorPane mit Farbe und Font AWT, Swing, JavaFX & SWT 2
T Swing JTextArea, JTextPane, JEditorPane...Unterschied?! AWT, Swing, JavaFX & SWT 3
B JEditorPane - Absätze werden nicht gespeichert AWT, Swing, JavaFX & SWT 12
K Verweise in JEditorPane AWT, Swing, JavaFX & SWT 6
B JEditorPane - Text und Graphik in HTML speichern AWT, Swing, JavaFX & SWT 4
D Swing JEditorPane wort zu lang AWT, Swing, JavaFX & SWT 11
X Swing Inhalt einer JEditorPane in Datei abspeichern AWT, Swing, JavaFX & SWT 5
D Swing JEditorPane mit HTML aber ohne Bilder AWT, Swing, JavaFX & SWT 3
Developer_X Swing JEditorPane.paste(Lokale_HTML); AWT, Swing, JavaFX & SWT 11
W Swing dynamisch Buttons in JEditorPane erstellen AWT, Swing, JavaFX & SWT 2
H JScrollPane (mit JEditorpane ) resizing AWT, Swing, JavaFX & SWT 2
E Swing File lesen und in JEditorpane AWT, Swing, JavaFX & SWT 2
D GridBagLayout und JEditorPane (mehrere fragen) AWT, Swing, JavaFX & SWT 2
S JEditorPane soll HTML und dann Text anzeigen..? AWT, Swing, JavaFX & SWT 5
T HTML und JEditorPane AWT, Swing, JavaFX & SWT 6
Daniel_L jEditorPane - Formatierten Text in Zwischenablage kopieren? AWT, Swing, JavaFX & SWT 2
R JEditorPane Schriftart und Schriftgröße AWT, Swing, JavaFX & SWT 3
K Instanz von JEditorPane starten AWT, Swing, JavaFX & SWT 3
W HTML-Text mit relativer URL in JEditorPane einlesen AWT, Swing, JavaFX & SWT 10
J Flackern in JEditorPane() AWT, Swing, JavaFX & SWT 14
& eigene Schriftart in JEditorpane AWT, Swing, JavaFX & SWT 2
M JEditorPane lädt HTML ohne Bilder AWT, Swing, JavaFX & SWT 2
M JEditorPane lädt HTML ohne Bilder AWT, Swing, JavaFX & SWT 2
DeeDee0815 JEditorPane + HTML + <img src=file> + JAR = FALSE AWT, Swing, JavaFX & SWT 3
G JEditorPane + F6 AWT, Swing, JavaFX & SWT 2
I Anordnungsprobleme bei JEditorPane AWT, Swing, JavaFX & SWT 5
ChMaster JEditorPane / HTMLEditorKit AWT, Swing, JavaFX & SWT 3
G JEditorPane | Homepage wird nicht richtig angezeigt AWT, Swing, JavaFX & SWT 8
J JEditorPane zeigt nicht alles AWT, Swing, JavaFX & SWT 2
I JEditorPane vorladen der Seiten unterbinden AWT, Swing, JavaFX & SWT 2
P JEditorPane mit HTMLEditorKit Text ausrichten AWT, Swing, JavaFX & SWT 2
T Projekt - ChatClient - JEditorPane - Smilies, Vektor AWT, Swing, JavaFX & SWT 2
N java.awt.Color zu HTML Farbcode (JEditorPane) AWT, Swing, JavaFX & SWT 1
T Grösse einer JEditorPane ändern AWT, Swing, JavaFX & SWT 5
G JEditorPane Zeilenumbruch verhindern AWT, Swing, JavaFX & SWT 2
F wie funktionier JEditorPane AWT, Swing, JavaFX & SWT 8
M jEditorPane String to html AWT, Swing, JavaFX & SWT 2
T DataFlavor für HTML-formatierten Text im JEditorPane AWT, Swing, JavaFX & SWT 8
G Welchen Listener für JEditorPane ? AWT, Swing, JavaFX & SWT 3
G HTML aus JEditorPane drucken AWT, Swing, JavaFX & SWT 2
F Frage zu JEditorPane und Text einfügen AWT, Swing, JavaFX & SWT 2
G JEditorPane HTML-Email versenden AWT, Swing, JavaFX & SWT 2
C getText() sinnlos bei HTMLEditorKit und JEditorPane! AWT, Swing, JavaFX & SWT 11
F Das Standardbild beim JEditorPane ersetzen? AWT, Swing, JavaFX & SWT 8
M Image-Objekte in JEditorPane anzeigen? AWT, Swing, JavaFX & SWT 3
U Bild in JEditorPane oder Aus "" mach' "/&quot AWT, Swing, JavaFX & SWT 2
I how to implement.(About JTable and the JEditorPane) AWT, Swing, JavaFX & SWT 6
S JEditorPane HTML-Text auslesen AWT, Swing, JavaFX & SWT 2
M JEditorPane und HyperLinks AWT, Swing, JavaFX & SWT 9
B JEditorPane: Höhe für bestimmte Breite bestimmen AWT, Swing, JavaFX & SWT 4
S Link in JEditorPane AWT, Swing, JavaFX & SWT 5
M JEditorPane und Bild als html? AWT, Swing, JavaFX & SWT 7
F Link aus JEditorPane ausführen AWT, Swing, JavaFX & SWT 2
S HTML-Datei in Anwendung (JEditorPane) AWT, Swing, JavaFX & SWT 5
M Jeditorpane + zeilenumbruch AWT, Swing, JavaFX & SWT 2
N File von HDD in JEditorPane laden? AWT, Swing, JavaFX & SWT 2
B In JScrollPane eingebettetes JEditorPane scrollen AWT, Swing, JavaFX & SWT 2
L Image Problems with JEditorPane AWT, Swing, JavaFX & SWT 7
D Kann jeditorPane CSS Style-Sheets und javascript AWT, Swing, JavaFX & SWT 2
T JEditorPane-content drucken AWT, Swing, JavaFX & SWT 2
T HTML in JEditorPane darstellen AWT, Swing, JavaFX & SWT 5
C JEditorPane, HTML EditorKit und HTMLDocument AWT, Swing, JavaFX & SWT 8
bernd Zeilenumbruch in JEditorPane AWT, Swing, JavaFX & SWT 10
S JEditorPane: Benachrichtigung, wenn Inhalt geladen AWT, Swing, JavaFX & SWT 2
S JEditorPane setText() Problem mit String übergeben AWT, Swing, JavaFX & SWT 3
S JEditorPane Tags löschen AWT, Swing, JavaFX & SWT 3
S JEditorPane AWT, Swing, JavaFX & SWT 2
D JavaFX Überprüfung, ob Strg gedrückt ist AWT, Swing, JavaFX & SWT 3

Ähnliche Java Themen

Neue Themen


Oben