-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
116 changed files
with
8,595 additions
and
2,370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
:stem: latexmath | ||
|
||
= 8. 거꾸로 세상 | ||
= 8. 거꾸로 세상[[top]] | ||
|
||
**Keyword** | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?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.nhnacademy</groupId> | ||
<artifactId>chapter-r1</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<maven.compiler.source>11</maven.compiler.source> | ||
<maven.compiler.target>11</maven.compiler.target> | ||
</properties> | ||
|
||
<url>http://maven.apache.org</url> | ||
<dependencies> | ||
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api --> | ||
<dependency> | ||
<groupId>org.junit.jupiter</groupId> | ||
<artifactId>junit-jupiter-api</artifactId> | ||
<version>5.10.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<!-- https://mvnrepository.com/artifact/org.junit.platform/junit-platform-console-standalone --> | ||
<dependency> | ||
<groupId>org.junit.platform</groupId> | ||
<artifactId>junit-platform-console-standalone</artifactId> | ||
<version>1.10.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api --> | ||
<dependency> | ||
<groupId>org.apache.logging.log4j</groupId> | ||
<artifactId>log4j-api</artifactId> | ||
<version>2.22.1</version> | ||
</dependency> | ||
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core --> | ||
<dependency> | ||
<groupId>org.apache.logging.log4j</groupId> | ||
<artifactId>log4j-core</artifactId> | ||
<version>2.22.1</version> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
<version>3.1.0</version> | ||
<configuration> | ||
<archive> | ||
<manifest> | ||
<classpathPrefix>lib/</classpathPrefix> | ||
<addClasspath>true</addClasspath> | ||
<mainClass>com.nhnacademy.exam090201.Main</mainClass> | ||
</manifest> | ||
</archive> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>2.9.1</version> | ||
<configuration> | ||
<locale>ko_kr</locale> | ||
<encoding>utf-8</encoding> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
29 changes: 29 additions & 0 deletions
29
example/chapter-r1/src/main/java/com/nhnacademy/exam01/ExamAbsoluteLayout.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.nhnacademy.exam01; | ||
|
||
import java.awt.Color; | ||
|
||
import javax.swing.JButton; | ||
import javax.swing.JFrame; | ||
import javax.swing.JPanel; | ||
|
||
public class ExamAbsoluteLayout { | ||
public static void main(String[] args) { | ||
JFrame frame = new JFrame(); | ||
|
||
frame.setSize(400, 300); | ||
frame.setLayout(null); | ||
|
||
JPanel world = new JPanel(); | ||
world.setBounds(10, 10, 340, 230); | ||
world.setBackground(Color.WHITE); | ||
frame.add(world); | ||
|
||
JButton fireButton = new JButton("Fire"); | ||
fireButton.setBounds(20, 250, 50, 30); | ||
|
||
frame.add(fireButton); | ||
|
||
frame.setEnabled(true); | ||
frame.setVisible(true); | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
example/chapter-r1/src/main/java/com/nhnacademy/exam01/ExamBorderLayout.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.nhnacademy.exam01; | ||
|
||
import java.awt.BorderLayout; | ||
|
||
import javax.swing.JButton; | ||
import javax.swing.JFrame; | ||
import javax.swing.WindowConstants; | ||
|
||
public class ExamBorderLayout { | ||
public static void main(String[] args) { | ||
JFrame frame = new JFrame(); | ||
|
||
frame.setSize(400, 300); | ||
|
||
frame.setLayout(new BorderLayout()); | ||
|
||
JButton[] buttons = new JButton[5]; | ||
for (int i = 0; i < buttons.length; i++) { | ||
buttons[i] = new JButton("버튼" + (i + 1)); | ||
} | ||
|
||
frame.add(buttons[0], BorderLayout.EAST); | ||
frame.add(buttons[1], BorderLayout.WEST); | ||
frame.add(buttons[2], BorderLayout.SOUTH); | ||
frame.add(buttons[3], BorderLayout.NORTH); | ||
frame.add(buttons[4], BorderLayout.CENTER); | ||
|
||
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); | ||
frame.setLocationRelativeTo(null); | ||
|
||
frame.setEnabled(true); | ||
frame.setVisible(true); | ||
} | ||
} |
Oops, something went wrong.