+ Reply to Thread
Results 1 to 2 of 2

Thread: Creating a Graphical GUI without flickering

  1. #1
    Junior Member
    Join Date
    Jan 2012

    Creating a Graphical GUI without flickering

    I am facing an issue right now , i am trying to create a nice looking GUI using punch of photos and icons , but when program opens , i get a lot of flickering when moving form or walking through it like switching tabs and pressing buttons , is that normal , should i reduce images or what ?
    Thanks in advance .

  2. #2
    Well you can refer to Java 2D You can set the drawing to render at higher quality via the setRenderingHints function as described below :
    public void paint(Graphics g) {
        Graphics2D g2d = (Graphics2D) g;
        g2d.setRenderingHints(Graphics2D.KEY_ANTIALIASING, Graphics2D.ANTIALIAS_ON);
        // draw stuff

+ Reply to Thread

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts