Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #5382

Re: Basic program flow

Newsgroups comp.lang.java.gui
Date 2013-10-17 16:55 -0700
References <l2e6ve$557$1@dont-email.me> <l2esji$506$1@dont-email.me>
Message-ID <2756113b-4022-47ab-95ba-277c86cb9365@googlegroups.com> (permalink)
Subject Re: Basic program flow
From Lew <lewbloch@gmail.com>

Show all headers | View raw


markspace wrote:
> Christopher Pisz wrote:
>> Did I make a basic frame correctly? There seems to be 900 different ways
>> of doing it.
> 
> In addition to Joerge's excellent synopsis, you have to deal with 
> threading issues when using using Swing or AWT, as they do live in their 
> own threads.

Among other things, Christopher, you cannot just call GUI calls on the main thread
as you have done. You have to take steps to push those actions onto the Event Dispatch
Thread (EDT), or you get weird bugs.

> <http://docs.oracle.com/javase/tutorial/uiswing/concurrency/>
> <http://docs.oracle.com/javase/tutorial/essential/concurrency/>
> 
> Also, pick up a copy of Java Concurrency in Practice by Brian Goetz. 
> It's *the* book on Java concurrency.

The tutorials will get you started, though.

-- 
Lew

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Basic program flow Christopher Pisz <cpisz@austin.rr.com> - 2013-10-01 05:08 -0500
  Re: Basic program flow Joerg Meier <joergmmeier@arcor.de> - 2013-10-01 12:44 +0200
    Re: Basic program flow Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2013-10-03 07:51 +0200
  Re: Basic program flow markspace <markspace@nospam.nospam> - 2013-10-01 09:17 -0700
    Re: Basic program flow Lew <lewbloch@gmail.com> - 2013-10-17 16:55 -0700
  Re: Basic program flow Jeff Higgins <jeff@invalid.invalid> - 2013-10-01 13:00 -0400
  Re: Basic program flow Roedy Green <see_website@mindprod.com.invalid> - 2013-10-01 21:47 -0700

csiph-web