All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.invation.code.toval.test.TestFrame Maven / Gradle / Ivy

Go to download

TOVAL comprises a set of java classes for common programming issues. It includes utils for arrays, lists, sets and collections for convenient handling and modification, but also support for mathematic definitions concerning logic (clauses + resolution) together with some algorithms for permutations, powersets and resolution. Additionally it contains a number of types for multisets, matrices with object keys and much more.

The newest version!
package de.invation.code.toval.test;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class TestFrame extends JFrame {

	private static final long serialVersionUID = 3042808150443175251L;

	public TestFrame() {
		setLayout(new FlowLayout());
		final JPanel panel = new JPanel();
		panel.setPreferredSize(new Dimension(100,100));
		panel.setBackground(Color.green);
		add(panel);
		JButton button = new JButton("button");
		button.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				panel.setPreferredSize(new Dimension(200,200));

				TestFrame.this.pack();
			}
			
		});
		add(button);
		pack();
		setVisible(true);
	}
	

	public static void main(String[] args) {
		new TestFrame();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy