MP hell MP hell MP hell MP hell
This commit is contained in:
		
							
								
								
									
										14
									
								
								Semester 2/Assignments/SwingTest/pom.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								Semester 2/Assignments/SwingTest/pom.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <groupId>com.calebfontenot</groupId>
 | 
			
		||||
    <artifactId>SwingTest</artifactId>
 | 
			
		||||
    <version>1.0-SNAPSHOT</version>
 | 
			
		||||
    <packaging>jar</packaging>
 | 
			
		||||
    <properties>
 | 
			
		||||
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 | 
			
		||||
        <maven.compiler.source>1.8</maven.compiler.source>
 | 
			
		||||
        <maven.compiler.target>1.8</maven.compiler.target>
 | 
			
		||||
        <exec.mainClass>com.calebfontenot.swingtest.SwingTest</exec.mainClass>
 | 
			
		||||
    </properties>
 | 
			
		||||
</project>
 | 
			
		||||
@@ -0,0 +1,28 @@
 | 
			
		||||
/*
 | 
			
		||||
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
package com.calebfontenot.swingtest;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import javax.swing.*;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 *
 | 
			
		||||
 * @author caleb
 | 
			
		||||
 */
 | 
			
		||||
// Hello.java (Java SE 8)
 | 
			
		||||
 | 
			
		||||
public class SwingTest extends JFrame{
 | 
			
		||||
    public SwingTest() {
 | 
			
		||||
        super("Hello World");
 | 
			
		||||
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
 | 
			
		||||
        add(new JLabel("Hello, world!"));
 | 
			
		||||
        pack();
 | 
			
		||||
        setVisible(true);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static void main(String[] args) {
 | 
			
		||||
        SwingUtilities.invokeLater(SwingTest::new);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user