public MainWin() {
		this.setUndecorated(true);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(Toolkit.getDefaultToolkit().getScreenSize().width-350, Toolkit.getDefaultToolkit().getScreenSize().height-220, 350, 180);
		contentPane = new JPanel();


		contentPane.setFont(new Font("Arial", Font.BOLD, 11));
		contentPane.setBorder(null);
		setContentPane(contentPane);
		contentPane.setLayout(new BorderLayout(0, 0));
		
		
		JPanel configPanel = new JPanel();
		configPanel.setBackground(Color.GRAY);
		contentPane.add(configPanel, BorderLayout.EAST);
		
		JCheckBox chckbxAot = new JCheckBox("AOT");
		chckbxAot.addActionListener(this);
		configPanel.setLayout(new BorderLayout(0, 0));
		
		configPanel.add(chckbxAot, BorderLayout.NORTH);
		
		slider = new JSlider();
		slider.setValue(100);
		slider.setMinimum(5);
		
		slider.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseReleased(MouseEvent arg0) {
				setTrans(((JSlider)arg0.getComponent()).getValue());
			}
		});
		slider.setOrientation(SwingConstants.VERTICAL);
		configPanel.add(slider);
		
		buttonPanel = new JPanel();
		buttonPanel.setBackground(Color.GRAY);
		buttonPanel.setBorder(null);
		configPanel.add(buttonPanel, BorderLayout.SOUTH);
		buttonPanel.setLayout(new BorderLayout(0, 0));
		
		addTimerButton = new JButton("+");
		addTimerButton.setToolTipText("Adds a new timer to the current tab.");
		addTimerButton.setName("addTimerButton");
		buttonPanel.add(addTimerButton, BorderLayout.NORTH);
		addTimerButton.addActionListener(this);
		addTimerButton.setFont(new Font("SansSerif", Font.BOLD, 12));
		addTimerButton.setForeground(Color.GREEN);
		addTimerButton.setBackground(Color.GRAY);
		
		removeTimerButton = new JToggleButton("-");
		removeTimerButton.setName("removeTimerButton");
		removeTimerButton.setToolTipText("Click to toggle remove mode: clicking a timer will remove it.");
		removeTimerButton.addActionListener(this);
		
		addTabButton = new JButton("T");
		addTabButton.setToolTipText("Adds a new tab.");
		addTabButton.addActionListener(this);
		addTabButton.setForeground(Color.GREEN);
		addTabButton.setFont(new Font("SansSerif", Font.BOLD, 12));
		addTabButton.setBackground(Color.GRAY);
		addTabButton.setName("addTabButton");
		buttonPanel.add(addTabButton, BorderLayout.WEST);
		removeTimerButton.setForeground(Color.RED);
		removeTimerButton.setFont(new Font("SansSerif", Font.BOLD, 12));
		removeTimerButton.setBackground(Color.GRAY);
		buttonPanel.add(removeTimerButton, BorderLayout.SOUTH);
		
		removeTabButton = new JButton("T");
		removeTabButton.setToolTipText("Removes the current tab. Does not work on the main tab.");
		removeTabButton.addActionListener(this);
		removeTabButton.setBackground(Color.GRAY);
		removeTabButton.setForeground(Color.RED);
		removeTabButton.setName("removeTabButton");
		buttonPanel.add(removeTabButton, BorderLayout.EAST);
		
		tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		tabbedPane.setBorder(null);
		contentPane.add(tabbedPane, BorderLayout.CENTER);
		
		tabbedPane.addMouseMotionListener(new MouseMotionAdapter() {
			@Override
			public void mouseDragged(MouseEvent arg0) {
				setWinPosition(arg0.getXOnScreen()-moveXinit, arg0.getYOnScreen()-moveYinit);
			}
		});
		tabbedPane.addMouseListener(new MouseAdapter() {
			@Override
			public void mousePressed(MouseEvent e) {
				moveXinit = e.getX();
				moveYinit = e.getY();
			}
			
		});
		
		mainPanel = new JPanel();
		tabbedPane.addTab("Main", null, mainPanel, null);
		mainPanel.setBorder(null);
		tabList.add(mainPanel);
		mainPanel.setLayout(new GridLayout(gridRows, gridColumns, 2, 2));
		
	}