• Post Reply Bookmark Topic Watch Topic
  • New Topic

JEditorPane draw a rectangle

 
andrea regina buegler
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

in my frame exists JSplitPane. 2 JEditorPanes were added to the JSplitpane.
Then with click in the left JEditorPane

The right JEditorPane
--> some more classes were used and one of then has paint-Method . This paints a rectangle.

With some more clicks -on the left side -in another lines, new rectangle -right side-was painted.

The last ones shouldn't be there.

Could someone help me with that? sorry my english isn't the best.

Thanks Andrea
 
permaculture is giving a gift to your future self. After reading this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!