• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextPane breaking up  RSS feed

 
Reginald Carter
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello-
I have a program that attempts to put a class I call TextPane which sub-classes JTextArea, in a specific location on another class which is sub-classed from JPanel which I call LinedPanel.
When the user selects a location in this LinedPanel and clicks the Add Button
the JTextArea show up but seems to be broken up.
I am including the code which can be copied, and run. If anyone would be able to tell me why this is happening I would be very grateful.
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a whole lot of code to ask a volunteer to sift through. I sincerely hope that someone will do it and give you the answer, but if they don't my suggestion is that you cut this program down to a manageable size that still compiles yet also shows your problem, in other words, an SSCCE.

Creating this is not a passive process, but an active one, one that will take a bit of effort from you. But then, it is often worthwhile effort, for after isolating the problem, you are often able to see the cause readily.

But then you already know all this from your threads in the Sun Java forums. Much luck.
 
Rob Spoor
Sheriff
Posts: 21052
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens if you remove the Darth Vader look&feel call?
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rob Prime:
What happens if you remove the Darth Vader look&feel call?


The program loses the Force?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!