HTML formatierten Text mit drawString ?

Status
Nicht offen für weitere Antworten.

MasterEvil

Bekanntes Mitglied
Hallo, ich will mir einen TitledBorder bauen bei dem man den Titel auch mit HTML formatieren kann, also wie ein Label.
Gibt es eine einfache Möglichkeit mit drawString() HTML-formatierten Text auszugeben. Also eine Klasse die den
Text dann schon irgendwie vorformatiert oder kann ich irgendwie ein Label an dieser Stelle verwenden :/

Bin für jede Hilfe dankbar :)
 

kaie

Bekanntes Mitglied
Hab gerade mal gebastelt... :D

Code:
import java.awt.*;

import javax.swing.*;
import javax.swing.border.*;

public class HTMLBorder implements Border
{
    //-------------------------------------------------------------------------
    //
    // Attribute
    //
    //-------------------------------------------------------------------------
    private JLabel label  = null;
    private Border border = null;

    //-------------------------------------------------------------------------
    //
    // Konstruktoren
    //
    //-------------------------------------------------------------------------
    public HTMLBorder(String text)
    {
        this(null, text);
    }

    public HTMLBorder(Border b, String text)
    {
        label = new JLabel(text);
        border = b;
    }

    //-------------------------------------------------------------------------
    //
    // implementierte Methoden von Border
    //
    //-------------------------------------------------------------------------
    public void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
    {
        Dimension d = label.getPreferredSize();
        label.setSize(d);
        g.translate(x, y);
        if (border != null)
            border.paintBorder(c, g, x, y + d.height, w, h - d.height);
        g.translate(8, 0);
        label.paint(g);
        g.translate(-x - 8, -y);
    }

    public Insets getBorderInsets(Component c)
    {
        Insets i = new Insets(0, 0, 0, 0);
        if (border != null)
            i = border.getBorderInsets(c);
        i.top += label.getPreferredSize().height + 2;
        i.left += 2;
        i.bottom += 2;
        i.right += 2;
        return i;
    }

    public boolean isBorderOpaque()
    {
        return false;
    }

    //--------------------------------------------------------------------------
    //
    // Testmethode
    //
    //--------------------------------------------------------------------------
    public static void main(String[] args)
    {
        JFrame f = new JFrame("Test für HTMLBorder");
        f.setLayout(new GridLayout(2, 2));
        JPanel p1 = new JPanel(new BorderLayout());
        JPanel p2 = new JPanel(new BorderLayout());
        JPanel p3 = new JPanel(new BorderLayout());
        JPanel p4 = new JPanel(new BorderLayout());
        p1.setBorder(new HTMLBorder("Normaler Text"));
        p2.setBorder(new HTMLBorder(new EmptyBorder(10, 10, 10, 10),
                "<html><h2>Überschrift</h2>

Normaler Text in <font color=ff0000>rot"));
        p3
                .setBorder(new HTMLBorder(
                        "<html><table border=1><tr><td>[i]AWT</td><td>kann das nicht</tr><tr><td>[i]Swing</td><td>kann das!"));
        p4.setBorder(new HTMLBorder(new BevelBorder(BevelBorder.RAISED),
                "<html>H<sub>2</sub>O und E=mc<sup>2"));
        p1.add(new JButton("Funktioniert!"));
        p2.add(new JButton("Funktioniert!"));
        p3.add(new JButton("Funktioniert!"));
        p4.add(new JButton("Funktioniert!"));
        f.getContentPane().add(p1);
        f.getContentPane().add(p2);
        f.getContentPane().add(p3);
        f.getContentPane().add(p4);
        f.setSize(600, 400);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setLocationRelativeTo(null);
        f.setVisible(true);
    }
}

Entspricht das Deinen Vorstellungen?
 

MasterEvil

Bekanntes Mitglied
Hey ja .. cewl und danke :)

Werde das jetzt so erstmal verwenden :)

Aber, du weißt nicht zufällig auch wie man HTML zu einen AttributedString bekommt?
Dann könnte ich nämlich direkt in paintBorder(..) mit g.drawString(AttributedCharacterIterator aci, int x, int y); den String formatiert zeichnen. Da JLabel das ja wahrscheinlich auch so macht sollte ja eigentlich irgendwo ne Funktion existieren die das kann.
Google ist leider auch zwecklos, da findet sich nicht viel und in der API komm ich auch nur bis JComponent aber die Stelle wo der String konvertiert wird find ich net :(

Naja, aber zumindest funktionierts ja schonmal mit deiner Klasse :)
Besten Dank :D
 

MasterEvil

Bekanntes Mitglied
So, hab heute nochmal geguckt und hab einfach den TitledBorder nen bissle abgeändert so das er statt nem String einfach nen Label anzeigt.
Also in etwa wie kaie seine Klasse. Allerdings funktionierts jetzt genauso wie ein TitledBorder, also auch mit Position des Titles etc auswählbar.
Und das beste an einem Label, es ist auch möglich Icons zu verwenden :)

Hatte ne ganze Weile noch probiert irgendwie den TitledBorder so hinzubekommen das er den Text als HTML verarbeitet aber habs nicht auf die Reihe bekommen :(
Man kann einen View mit dem BasicHTML Object erstellen und diesen muss man dann irgendwie darstellen aber dafür bin ich noch zu doof *gg*



kleines Beispiel
LabledBorder.png


Und hier meine LabledBorder-Klasse:
Code:
import java.awt.Graphics;
import java.awt.Insets;
import java.awt.Rectangle;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Point;
import java.awt.Component;
import java.awt.Dimension;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.UIManager;
import javax.swing.border.AbstractBorder;
import javax.swing.border.Border;

public class LabledBorder extends AbstractBorder {

	private static final long serialVersionUID = 1304141032602452712L;

	protected JLabel label;
    protected Border border;
    protected int    titlePosition;
    protected int    titleJustification;
    protected Font   titleFont;
    protected Color  titleColor;
    
    protected int	 formattedWidth;
    protected int	 formattedHeight;

    private Point textLoc = new Point();

    static public final int     DEFAULT_POSITION        = 0;
    static public final int     ABOVE_TOP       = 1;
    static public final int     TOP             = 2;
    static public final int     BELOW_TOP       = 3;
    static public final int     ABOVE_BOTTOM    = 4;
    static public final int     BOTTOM          = 5;
    static public final int     BELOW_BOTTOM    = 6;
    static public final int     DEFAULT_JUSTIFICATION   = 0;
    static public final int     LEFT    = 1;
    static public final int     CENTER  = 2;
    static public final int     RIGHT   = 3;
    static public final int     LEADING = 4;
    static public final int     TRAILING = 5;

    // Space between the border and the component's edge
    static protected final int EDGE_SPACING = 2;

    // Space between the border and text
    static protected final int TEXT_SPACING = 2;

    // Horizontal inset of text that is left or right justified
    static protected final int TEXT_INSET_H = 5;

    public LabledBorder(JLabel label) { this(null, label, LEADING, TOP); }
    public LabledBorder(Border border) { this(border, null, LEADING, TOP); }
    public LabledBorder(Border border, JLabel label) { this(border, label, LEADING, TOP); }
    public LabledBorder(Border border, JLabel label, int titleJustification, int titlePosition) {
        this.label = label;
        this.border = border;

        setTitleJustification(titleJustification);
        setTitlePosition(titlePosition);
    }

    public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {

        Border border = getBorder();

        if (label == null || label.getText().equals("")) {
            if (border != null) {
                border.paintBorder(c, g, x, y, width, height);
            }
            return;
        }
        
        Rectangle	grooveRect = new Rectangle(x + EDGE_SPACING, y + EDGE_SPACING, width - (EDGE_SPACING * 2), height - (EDGE_SPACING * 2));
        int         labelHeight  = label.getPreferredSize().height;
        int         labelWidth = label.getPreferredSize().width + (TEXT_SPACING * 2);
        int         descent = labelHeight/2;
        int         ascent = labelHeight/2;
        int         diff;
        Insets      insets;

        if (border != null) insets = border.getBorderInsets(c);
        else insets = new Insets(0, 0, 0, 0);

        int titlePos = getTitlePosition();
        switch (titlePos) {
            case ABOVE_TOP:
                diff = ascent + descent + (Math.max(EDGE_SPACING, TEXT_SPACING * 2) - EDGE_SPACING);
                grooveRect.y += diff;
                grooveRect.height -= diff;
                textLoc.y = grooveRect.y - (descent + TEXT_SPACING);
                break;
            case TOP:
            case DEFAULT_POSITION:
                diff = Math.max(0, ((ascent/2) + TEXT_SPACING) - EDGE_SPACING);
                grooveRect.y += diff;
                grooveRect.height -= diff;
                textLoc.y = (grooveRect.y - descent) + (insets.top + ascent + descent)/2;
                break;
            case BELOW_TOP:
                textLoc.y = grooveRect.y + insets.top + ascent + TEXT_SPACING;
                break;
            case ABOVE_BOTTOM:
                textLoc.y = (grooveRect.y + grooveRect.height) - (insets.bottom + descent + TEXT_SPACING);
                break;
            case BOTTOM:
                grooveRect.height -= labelHeight/2;
                textLoc.y = ((grooveRect.y + grooveRect.height) - descent) + ((ascent + descent) - insets.bottom)/2;
                break;
            case BELOW_BOTTOM:
                grooveRect.height -= labelHeight;
                textLoc.y = grooveRect.y + grooveRect.height + ascent + TEXT_SPACING;
                break;
        }

		int justification = getTitleJustification();
		if(c.getComponentOrientation().isLeftToRight()) {
		    if(justification==LEADING || justification==DEFAULT_JUSTIFICATION) justification = LEFT;
		    else if(justification==TRAILING) justification = RIGHT;
		}
		else {
		    if(justification==LEADING || justification==DEFAULT_JUSTIFICATION) justification = RIGHT;
		    else if(justification==TRAILING) justification = LEFT;
		}
	
        switch (justification) {
            case LEFT:   textLoc.x = grooveRect.x + TEXT_INSET_H + insets.left; break;
            case RIGHT:  textLoc.x = (grooveRect.x + grooveRect.width) - (labelWidth + TEXT_INSET_H + insets.right); break;
            case CENTER: textLoc.x = grooveRect.x + ((grooveRect.width - labelWidth) / 2); break;
        }

        if (border != null) {
            if (((titlePos == TOP || titlePos == DEFAULT_POSITION) && (grooveRect.y > textLoc.y - ascent)) || (titlePos == BOTTOM && (grooveRect.y + grooveRect.height < textLoc.y + descent))) {
                Rectangle clipRect = new Rectangle();
                Rectangle saveClip = g.getClipBounds();
                clipRect.setBounds(saveClip);

                if (computeIntersection(clipRect, x, y, textLoc.x-1-x, height)) {
                    g.setClip(clipRect);
                    border.paintBorder(c, g, grooveRect.x, grooveRect.y, grooveRect.width, grooveRect.height);
                }
                clipRect.setBounds(saveClip);
                if (computeIntersection(clipRect, textLoc.x+labelWidth+1, y, x+width-(textLoc.x+labelWidth+1), height)) {
                    g.setClip(clipRect);
                    border.paintBorder(c, g, grooveRect.x, grooveRect.y, grooveRect.width, grooveRect.height);
                }
                if (titlePos == TOP || titlePos == DEFAULT_POSITION) {
                    clipRect.setBounds(saveClip);
                    if (computeIntersection(clipRect, textLoc.x-1, textLoc.y+descent, labelWidth+2, y+height-textLoc.y-descent)) {
                        g.setClip(clipRect);
                        border.paintBorder(c, g, grooveRect.x, grooveRect.y, grooveRect.width, grooveRect.height);
                    }
                }
                else {
                    clipRect.setBounds(saveClip);
                    if (computeIntersection(clipRect, textLoc.x-1, y, labelWidth+2, textLoc.y - ascent - y)) {
                        g.setClip(clipRect); 
                        border.paintBorder(c, g, grooveRect.x, grooveRect.y, grooveRect.width, grooveRect.height);
                    }
                }
                g.setClip(saveClip);   
            }
            else border.paintBorder(c, g, grooveRect.x, grooveRect.y, grooveRect.width, grooveRect.height);
        }
        
        label.setSize(label.getPreferredSize());
        g.translate(textLoc.x + TEXT_SPACING, textLoc.y - ascent);
        label.paint(g);

        g.translate(-x - (textLoc.x + TEXT_SPACING), -y - (textLoc.y - ascent));
    }

    public Insets getBorderInsets(Component c) {
        return getBorderInsets(c, new Insets(0, 0, 0, 0));
    }

    public Insets getBorderInsets(Component c, Insets insets) {
        FontMetrics fm;
        int	descent = 0;
        int	ascent = 16;
        int	height = 16;

        Border border = getBorder();
        if (border != null) {
            if (border instanceof AbstractBorder) ((AbstractBorder)border).getBorderInsets(c, insets);
            else {
                Insets i = border.getBorderInsets(c);
                insets.top = i.top;
                insets.right = i.right;
                insets.bottom = i.bottom;
                insets.left = i.left;
            }
        }
        else insets.left = insets.top = insets.right = insets.bottom = 0;

        insets.left   += EDGE_SPACING + TEXT_SPACING;
        insets.right  += EDGE_SPACING + TEXT_SPACING;
        insets.top    += EDGE_SPACING + TEXT_SPACING;
        insets.bottom += EDGE_SPACING + TEXT_SPACING;

        if(c == null || getLabel() == null || getLabel().getText().equals("")) return insets;

        Font font = getFont(c);
        fm = c.getFontMetrics(font);

		if(fm != null) {
	  	   descent = fm.getDescent();
		   ascent = fm.getAscent();
		   height = fm.getHeight();
		}

        switch (getTitlePosition()) {
          case ABOVE_TOP:
              insets.top += ascent + descent + (Math.max(EDGE_SPACING, TEXT_SPACING*2) - EDGE_SPACING);
              break;
          case TOP:
          case DEFAULT_POSITION:
              insets.top += ascent + descent;
              break;
          case BELOW_TOP:
              insets.top += ascent + descent + TEXT_SPACING;
              break;
          case ABOVE_BOTTOM:
              insets.bottom += ascent + descent + TEXT_SPACING;
              break;
          case BOTTOM:
              insets.bottom += ascent + descent;
              break;
          case BELOW_BOTTOM:
              insets.bottom += height;
              break;
        }
        return insets;
    }

    public boolean isBorderOpaque() { return false; }

    public JLabel getLabel() { return label; }

    public Border getBorder() {
        Border b = border;
        if (b == null) b = UIManager.getBorder("TitledBorder.border");
        return b;
    }

    public int getTitlePosition() { return titlePosition; }

    public int getTitleJustification() { return titleJustification; }

    public void setLabel(JLabel label) { this.label = label; }

    public void setBorder(Border border) { this.border = border; }

    public void setTitlePosition(int titlePosition) {
        switch (titlePosition) {
          case ABOVE_TOP:
          case TOP:
          case BELOW_TOP:
          case ABOVE_BOTTOM:
          case BOTTOM:
          case BELOW_BOTTOM:
          case DEFAULT_POSITION: this.titlePosition = titlePosition; break;
          default: throw new IllegalArgumentException(titlePosition + " is not a valid title position.");
        }
    }

    public void setTitleJustification(int titleJustification) {
    	switch (titleJustification) {
        	case DEFAULT_JUSTIFICATION:
        	case LEFT:
        	case CENTER:
        	case RIGHT:
        	case LEADING:
        	case TRAILING: this.titleJustification = titleJustification; break;
        	default: throw new IllegalArgumentException(titleJustification + " is not a valid title justification.");
        }
    }

    public Dimension getMinimumSize(Component c) {
        Insets insets = getBorderInsets(c);
        Dimension minSize = new Dimension(insets.right+insets.left, insets.top+insets.bottom);
        switch (titlePosition) {
          case ABOVE_TOP:
          case BELOW_BOTTOM: minSize.width = Math.max(label.getPreferredSize().width, minSize.width); break;
          case BELOW_TOP:
          case ABOVE_BOTTOM:
          case TOP:
          case BOTTOM:
          case DEFAULT_POSITION:       
          default: minSize.width += label.getPreferredSize().width;
        }
        return minSize;       
    }

    protected Font getFont(Component c) {
        Font font;
        if(label != null && (font = label.getFont()) != null) return font;
        if (c != null && (font = c.getFont()) != null) return font;
        return new Font("Dialog", Font.PLAIN, 12);
    }  

    private static boolean computeIntersection(Rectangle dest, int rx, int ry, int rw, int rh) {
		int x1 = Math.max(rx, dest.x);
		int x2 = Math.min(rx + rw, dest.x + dest.width);
		int y1 = Math.max(ry, dest.y);
		int y2 = Math.min(ry + rh, dest.y + dest.height);

		dest.x = x1;
        dest.y = y1;
        dest.width = x2 - x1;
        dest.height = y2 - y1;
	
		if (dest.width <= 0 || dest.height <= 0) return false;
		return true;
    }  
}
 
Status
Nicht offen für weitere Antworten.
Ähnliche Java Themen
  Titel Forum Antworten Datum
H Mit JLabel HTML - formatierten Text anzeigen AWT, Swing, JavaFX & SWT 14
Noar Infofenster zentrieren und HTML-formatierten Text readonly a AWT, Swing, JavaFX & SWT 7
T DataFlavor für HTML-formatierten Text im JEditorPane AWT, Swing, JavaFX & SWT 8
izoards HTML Editor AWT, Swing, JavaFX & SWT 3
H setToolTipText ignoriert HTML-Formatierung des anzuzeigenden Strings AWT, Swing, JavaFX & SWT 4
Yonnig Lokale HTML-Datei in Java GUI rendern AWT, Swing, JavaFX & SWT 4
kodela HTML-tags für JLabel AWT, Swing, JavaFX & SWT 9
C HTML Editor Eingabemaske kafenio Ersatz AWT, Swing, JavaFX & SWT 7
A JavaFX Daten in eine HTML-Table mit JS schreiben AWT, Swing, JavaFX & SWT 3
T JTextPane ignoriert HTML Zeilenumbruch <br> tag wegen eigenem HTMLEditorKit AWT, Swing, JavaFX & SWT 5
E Java FX FXML Problem mit html Scriptausführung AWT, Swing, JavaFX & SWT 2
K Html Editor AWT, Swing, JavaFX & SWT 3
B Swing HTML in JLabels AWT, Swing, JavaFX & SWT 6
S jLabel HTML Formatierung AWT, Swing, JavaFX & SWT 2
B JavaFX Java FX Html Template AWT, Swing, JavaFX & SWT 0
F JavaFX JavaFX HTMLEditor-Eingabe in Textarea als HTML anzeigen AWT, Swing, JavaFX & SWT 2
D Swing Breite einer HTML Tabelle in einer JTextPane AWT, Swing, JavaFX & SWT 6
R Swing JTable : Header der Spalten ergänzen mit caption (wie bei html-table) AWT, Swing, JavaFX & SWT 2
I LookAndFeel HTML Auflösung - Online Editor programmieren AWT, Swing, JavaFX & SWT 2
T HTML mit Java AWT, Swing, JavaFX & SWT 1
U Label zeigt nicht überall HTML Zeichen AWT, Swing, JavaFX & SWT 3
N JLabel HTML mit custom Font AWT, Swing, JavaFX & SWT 0
H RCP(SWT) Browser-Widget zeigt keine locale HTML-Dateien an AWT, Swing, JavaFX & SWT 1
F Submit eines HTML-Formulars in Vaadin AWT, Swing, JavaFX & SWT 3
T Swing HTML Text aus JLabel ohne "HTML-Tags" in String einlesen AWT, Swing, JavaFX & SWT 5
J JApplet, HTML und access denied exitVM.0 AWT, Swing, JavaFX & SWT 3
L Swing JToogleButton Vordergrundfarbe bei HTML String AWT, Swing, JavaFX & SWT 4
H Swing JApplet - HTML - ClassNotFoundException AWT, Swing, JavaFX & SWT 7
G Swing HTML Version AWT, Swing, JavaFX & SWT 11
S HTML in Java einbinden 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
N Swing JTree TreeCellRenderer mit html und automatischen Zeilenumbruch AWT, Swing, JavaFX & SWT 8
N Swing KomponentenHöhe an html-Inhalt anpassen AWT, Swing, JavaFX & SWT 4
F Applet JApplet per html einbinden - Main class kann nicht gefunden werden AWT, Swing, JavaFX & SWT 15
C html browser in Application nutzen AWT, Swing, JavaFX & SWT 10
S SWT Anzeigen einer lokalen HTML-Seite im Browser Widget über RAP nicht möglich AWT, Swing, JavaFX & SWT 3
S HTML Syntaxhighlighting AWT, Swing, JavaFX & SWT 7
S SWT HTML-WYSIWUG-Editor AWT, Swing, JavaFX & SWT 3
R Swing Renderproblem bei HTML in einer JTextPane AWT, Swing, JavaFX & SWT 12
N Swing JTextPane zur Anzeige von HTML AWT, Swing, JavaFX & SWT 2
N Applet JButton soll html Datei aus einem Ordner öffnen 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
D System.out.println() gibt html-Tags mit aus AWT, Swing, JavaFX & SWT 2
P Swing HTML-Renderer AWT, Swing, JavaFX & SWT 15
G Swing JCheckBox, setEnabled(false) und HTML Text Problem AWT, Swing, JavaFX & SWT 5
J 2D-Grafik Html in drawString() AWT, Swing, JavaFX & SWT 2
L Applet In HTML einbinden klappt einfach nicht AWT, Swing, JavaFX & SWT 5
X Frei nutzbarer HTML Editor AWT, Swing, JavaFX & SWT 13
B WYSIWYG-HTML-Editor / Validator für JAVA AWT, Swing, JavaFX & SWT 2
N JCombobox wie in HTML AWT, Swing, JavaFX & SWT 6
H Swing HTML in einem JEditorPane zeilenweise hinzufügen ohne Inhalt jedes Mal neu zu laden AWT, Swing, JavaFX & SWT 4
G Swing JEdtitorPane und HTML Image Seite AWT, Swing, JavaFX & SWT 2
C Swing JTextPane zeigt HTML-Text aus Variable nicht an :( AWT, Swing, JavaFX & SWT 3
P Swing html mit bilder drin AWT, Swing, JavaFX & SWT 12
destroflyer Wort im JLabel verlinken (per HTML) AWT, Swing, JavaFX & SWT 3
R Swing JTextComponent und HTML AWT, Swing, JavaFX & SWT 7
D Nodes eines statischen JTrees sollen auf Anker (Textmarken) in einer HTML-Datei zeigen AWT, Swing, JavaFX & SWT 8
S Swing HTML-Text in JEditorPane einfärben AWT, Swing, JavaFX & SWT 5
D Darstellung in Swing wie HTML? AWT, Swing, JavaFX & SWT 2
M Swing Kein update bei simulierten HTML-Link AWT, Swing, JavaFX & SWT 4
B Grafiken in JLabel mittels html AWT, Swing, JavaFX & SWT 5
E Swing JTextPane Inhalt(Text und Bilder) als HTML text bekommen AWT, Swing, JavaFX & SWT 3
B JEditorPane - Text und Graphik in HTML speichern AWT, Swing, JavaFX & SWT 4
K Alternative zu Applet mit HTML-Einbindung AWT, Swing, JavaFX & SWT 11
D Swing JEditorPane mit HTML aber ohne Bilder AWT, Swing, JavaFX & SWT 3
S Swing Text -> HTML: Caret-Koordinaten verschoben AWT, Swing, JavaFX & SWT 6
S JEditorPane soll HTML und dann Text anzeigen..? AWT, Swing, JavaFX & SWT 5
T HTML und JEditorPane AWT, Swing, JavaFX & SWT 6
J JList & HTML AWT, Swing, JavaFX & SWT 2
T HTML Seite neu laden mittels Applet AWT, Swing, JavaFX & SWT 2
N Performanceprobleme mit JLabel und HTML content AWT, Swing, JavaFX & SWT 5
A Oberfläche wir mit html-Frames aufbauen AWT, Swing, JavaFX & SWT 11
C JTextPane HTML und eigene Tags AWT, Swing, JavaFX & SWT 10
W HTML-Text mit relativer URL in JEditorPane einlesen AWT, Swing, JavaFX & SWT 10
C Suche fertigen HTML editor AWT, Swing, JavaFX & SWT 2
B HTML in Swing Components (JLabel) AWT, Swing, JavaFX & SWT 7
M JEditorPane lädt HTML ohne Bilder AWT, Swing, JavaFX & SWT 2
M JEditorPane lädt HTML ohne Bilder AWT, Swing, JavaFX & SWT 2
G Hilfe beim Erstellen eines eigenen Html-Editors! AWT, Swing, JavaFX & SWT 4
S drawString für HTML-Text? AWT, Swing, JavaFX & SWT 7
G Frage zu Labels mit html AWT, Swing, JavaFX & SWT 3
P HTML darstellen mit Java AWT, Swing, JavaFX & SWT 4
GilbertGrape Fehler bei HTML in JTextPane AWT, Swing, JavaFX & SWT 2
ARadauer swing html wysiwyg componente AWT, Swing, JavaFX & SWT 6
V "Anker" wie in HTML für JScrollPane? AWT, Swing, JavaFX & SWT 2
M html im Titel von JFrame AWT, Swing, JavaFX & SWT 9
M html aus einem Stream Laden und Anzeigen AWT, Swing, JavaFX & SWT 4
T Öffnen von SWT-Dialogboxen durch HTML-Link in HTML-Code AWT, Swing, JavaFX & SWT 4
B JTextPane und Image importieren in HTML String. AWT, Swing, JavaFX & SWT 2
J Html in JTextPane anzeigen? AWT, Swing, JavaFX & SWT 2
V Swing to HTML? AWT, Swing, JavaFX & SWT 4
A HTML-Datei öffnen AWT, Swing, JavaFX & SWT 3
A Noch mal Zusammenarbeit Java und HTML AWT, Swing, JavaFX & SWT 4
A Java und HTML AWT, Swing, JavaFX & SWT 8
R HTML Hintergrund für Swing - Componenten AWT, Swing, JavaFX & SWT 2
G Problem mit Anzeige von HTML AWT, Swing, JavaFX & SWT 5
G Probleme mit Druck von pdf und html AWT, Swing, JavaFX & SWT 2
DeeDee0815 JEditorPane + HTML + <img src=file> + JAR = FALSE AWT, Swing, JavaFX & SWT 3

Ähnliche Java Themen

Neue Themen


Oben