-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 3168dce
Showing
6 changed files
with
44 additions
and
0 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,7 @@ | ||
{ | ||
"java.project.sourcePaths": ["src"], | ||
"java.project.outputPath": "bin", | ||
"java.project.referencedLibraries": [ | ||
"lib/**/*.jar" | ||
] | ||
} |
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,18 @@ | ||
## Getting Started | ||
|
||
Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code. | ||
|
||
## Folder Structure | ||
|
||
The workspace contains two folders by default, where: | ||
|
||
- `src`: the folder to maintain sources | ||
- `lib`: the folder to maintain dependencies | ||
|
||
Meanwhile, the compiled output files will be generated in the `bin` folder by default. | ||
|
||
> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there. | ||
## Dependency Management | ||
|
||
The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies). |
Binary file not shown.
Binary file not shown.
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,8 @@ | ||
public class App { | ||
public static void main(String[] args) throws Exception { | ||
System.out.println("Hello, World!"); | ||
|
||
MainFrame mainFrame = new MainFrame(); | ||
mainFrame.init(); | ||
} | ||
} |
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,11 @@ | ||
import javax.swing.JFrame; | ||
import javax.swing.WindowConstants; | ||
|
||
public class MainFrame extends JFrame{ | ||
public void init(){ | ||
setTitle("Pomodoro Suzdalenko"); | ||
setSize(450, 300); | ||
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); | ||
setVisible(true); | ||
} | ||
} |