• 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

setText happens too late

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've managed to piece [redacted] together with what little I know.

Edit: Back to the basics.
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

K Miller wrote:I've managed to piece this together with what little I know...


And therein, I suspect, lies the problem.

I'm afraid I don't even want to try and untangle what you've written; save to say that it's WRONG.
Even if it works, nobody in his/her right mind would even try to maintain it.

If it's an attempt at a 'fluid interface' (and I suspect it isn't), it's ill-conceived, because the idea of fluid interfaces is
(a) readability
(b) simplicity of methods
neither of which you've achieved.

My suggestion: Back up, and work out what you want to do. And do it with your computer turned OFF, and in English (or your native language).

Programming is NOT about coding; it's about thinking; and what you've written qualifies for the Jean-Paul Sartres School of Programming:
"I've got a problem; let's start coding and see if a solution simply materializes."

Be advised: the school is very large; but contains very few professional programmers.

Winston
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I too am not going to read 500 lines of code. But if you are finding that things are not happening in the right order, then probably you didn't stumble across the fact that you have to handle threads in Swing applications carefully. Here's the tutorial to read: Lesson: Concurrency in Swing.
 
reply
    Bookmark Topic Watch Topic
  • New Topic