• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JTextPane breaking up

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 22791
131
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic