package project;

import java.awt.Color;
import java.awt.Container;

import javax.swing.JFrame;
import javax.swing.JTextArea;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.plaf.ColorUIResource;

public class Main {

	public static void main(String[] args) {
		javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
            	try {
            		//FormFactory.csvParser();
				//	UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
					System.out.println(UIManager.getSystemLookAndFeelClassName());
					UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
				} catch (Exception e) {
					e.printStackTrace();
				}
            	 UIManager.put("TextField.inactiveForeground", new ColorUIResource(new Color(255, 0, 0)));
            	 UIManager.put("TextArea.inactiveForeground", new ColorUIResource(new Color(255, 0, 0)));
            	 UIManager.getLookAndFeelDefaults().put("TextField[Disabled].textForeground", new Color(0, 0, 255));
            	// UIManager.getLookAndFeelDefaults().put("TextField[Disabled].backgroundPainter", new Color(255, 255, 255));
            	 UIManager.getLookAndFeelDefaults().put("TextArea[Disabled+NotInScrollPane].textForeground", new Color(0, 0, 255));
            	 UIManager.getLookAndFeelDefaults().put("TextArea[Disabled+NotInScrollPane].backgroundPainter", new Color(255, 255, 255));
            	// UIManager.getLookAndFeelDefaults().put("Button[Enabled].textForeground", new Color(0, 0, 255));
            	// UIManager.getLookAndFeelDefaults().put("Button[Enabled].backgroundPainter", new Color(255, 255, 0));
            	JFrame testPad=new TestPadFrame("Test Demo");
            //	testPad.getInsets().set(20, 20, 20,20);
            	testPad.setSize(1100,730);
            	testPad.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //	testPad.setResizable(false); 
                testPad.setVisible(true);
                
                String s=String.format("Print `%1$s` and `%2$s` and %3$d","Test","Test",10);
                System.out.println(s);
            }
        });

	}


}