Skip to content

java gui help needed

I need some help with gui in java. I am an absolute beginner with java and programming. I copy pasted this code in BlueJ

import javax.swing.*;
class gui{
    public static void main(){
       JFrame frame = new JFrame("My First GUI");
       JButton button = new JButton("Press");
       frame.getContentPane().add(button); // Adds Button to content pane of frame

and I didn’t get the desired results and this is what showed up in the terminal window:

Device “Mobile Intel(R) 45 Express Chipset Family (Microsoft Corporation – WDDM 1.1)” (.DISPLAY1) initialization failed : WARNING: bad driver version detected, device disabled. Please update your driver to at least version

Can anyone tell me how to fix this error?



Just like it says, download the latest graphics driver on the official Intel website and install,then try it again.

3 People found this is helpful