[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Invalid thread access, but using only 1 thread

ok, i figured it out. Turns out i had some Color objects that were created before starting the application, like this:

public class MainFrame {
private Display display;
private Shell shell;
// this was the error, should have done the construction
// in the constructor :(
private Color red = new Color(display, 255, 100, 100);
private Color white = new Color(display, 255, 255, 255);


// etc }