Skip to content Skip to sidebar Skip to footer
Showing posts with the label Swing

Add A Jscrollpane To A Jlabel

I can't seem to find out how I can add a JScrollPane to a JLabel. The JLabel that I'm using… Read more Add A Jscrollpane To A Jlabel

How To Get Current Html Element(tag) In Jtextpane?

I am doing on WYSIWYG Html Editor using Java Program. I need When I click mouse on Paragraph elemen… Read more How To Get Current Html Element(tag) In Jtextpane?

Htmleditorkit And Custom Tags In The Jeditorpane

I use the instructions to add my own tag http://java-sl.com/custom_tag_html_kit.html class MyParser… Read more Htmleditorkit And Custom Tags In The Jeditorpane

Java: Html In Swing, Link Margin Not Working

Hi there I'm trying to format HTML content in Swing. Formattings such as color or text-decorat… Read more Java: Html In Swing, Link Margin Not Working

How Do I Retrieve The Attribute Of An Element Using Swing's Htmleditorkit.parsercallback?

I am extending HTMLEditorKit.ParserCallback to parse HTML. I am matching on a certain element type … Read more How Do I Retrieve The Attribute Of An Element Using Swing's Htmleditorkit.parsercallback?

Hyperlinkupdate() Gives Me Nullpointerexception Every Time I Click A Hyperlink In The Jeditorpane?

I just want to add that the initial file loaded is a javadoc that has the names of all the classes,… Read more Hyperlinkupdate() Gives Me Nullpointerexception Every Time I Click A Hyperlink In The Jeditorpane?

Setting The Font And Style Of Jeditorpane

I am currently developing an application for this company as my last year of studies project, and i… Read more Setting The Font And Style Of Jeditorpane

Merging Cells In Jtable

Is it possible to merge some cells of a JTable object? (source: codeguru.com) If it's not pos… Read more Merging Cells In Jtable

Resizing Jlabel Imageicon With Html

So I looked through this thread and saw the suggestion of using HTML for resizing. I've been go… Read more Resizing Jlabel Imageicon With Html

Addmouselistener To A Program

im trying to overwrite mouseClicked function of MouseAdapter then i can use it in my program as fol… Read more Addmouselistener To A Program

Html In Jlabel Not Showing

JLabel label = new JLabel(' Hello world '); shows nothing. If I get rid of the tags, it s… Read more Html In Jlabel Not Showing

Jlabel With Html Containing "<" And ">" Characters

From time to time I use HTML in JLabels in Java Swing. Lastly I've came across something a litt… Read more Jlabel With Html Containing "<" And ">" Characters

Tooltip In Swing

I made to tool tip for comportment in swing using some html tags _graph.setToolTipText(' Solut… Read more Tooltip In Swing

Error With Making Text Bold And Colored In Jtextpane

I am trying to create a text editor using a JTextPane that outputs the text as HTML. I want to incl… Read more Error With Making Text Bold And Colored In Jtextpane

Is There A Way To Attatch A Css File To A JEditorPane?

Simple enough question: I have a string containing HTML that is being handed off to a JEditorPane f… Read more Is There A Way To Attatch A Css File To A JEditorPane?