Hello guys I'm using FlatLaf library in my java swing code so I'm getting the class no found and classloader error
import java.awt.Dimension; import javax.swing.JFrame; import javax.swing.SwingUtilities; import com.formdev.flatlaf.FlatLightLaf; import com.formdev.flatlaf.ui.FlatListUI; public class JFrameBackgroundColor { public static void main(String[] args) throws Exception { FlatLightLaf.setup();//setting the look and feel // schedule this for the event dispatch thread (edt) SwingUtilities.invokeLater(new Runnable() { public void run() { displayJFrame(); } }); } static void displayJFrame() { // create our jframe as usual JFrame jframe=new JFrame(); //UIManager.setLookAndFeel(new FlatLightLaf()); //JFrame.setDefaultLookAndFeelDecorated(true); jframe.getRootPane().putClientProperty("JRootPane.titleBarBackground", new Color(23,180,252)); jframe.getRootPane().putClientProperty("JRootPane.titleBarForeground", Color.white); jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //jframe.getContentPane().setBackground( Color.RED ); // jframe.setBackground(Color.red); // set the jframe size and location, and make it visible jframe.setPreferredSize(new Dimension(400, 300)); jframe.pack(); jframe.setLocationRelativeTo(null); jframe.setVisible(true); } }