All pastes #17657 Raw Edit

Unnamed

public text v1 · immutable
#17657 ·published 2005-07-13 23:02 UTC
rendered paste body
package gnu.java.awt.peer.qt;

import java.awt.*;

public class QtNativeEventPump extends Thread
{
  QtToolkit toolkit;
  long QApplicationPointer;
  String theme;

  public QtNativeEventPump( QtToolkit toolkit, long nativeAppPointer , String theme)
  {
    this.toolkit = toolkit;
    this.QApplicationPointer = nativeAppPointer;
    this.theme = theme;
  }
  
  public native void processEvents(long ptr, int time);

  public native void exec(long ptr);

  public void run()
  {
    toolkit.init(theme);
    exec(QApplicationPointer);
  }

}