Skip to content

dmitryblackwell/JavaFX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaFX

alt text Simple examples of JavaFx possibilities

Calculator

Simple calculator, just to make awesome gui.

Project Tree:

  1. Main
    • void start(Stage primaryStage);
    • void add(String s);
    • String getResult();
    • static void main(String[] args);
  2. Material
    • public static final String BUTTON;
    • public static final String CTRL;
    • public static final String ZERRO;

GamePlay:

alt text

2048

Popular game remake on Java.

Game Tree (public only):

  1. Bg - enum with color for text and background.
    • #FFFFFF SLIGHTLY
    • #FF7E04 STANDART
    • #CC1500 RED_FULL
    • #C704FF VIOLET_LIGHT
    • #5C76CC BLUE_LIGHT
  2. com.blackwell.GUI - main class, that draw all javafx object.
    • static void main(String[] args);
    • void start(Stage primaryStage);
    • void setUpdateOfMap();
    • void setButtonStyle(int i,int j, int FontSize, Bg color);
  3. GameMap - implementation of interface below.
  4. Map - interface, to interact with map.
    • int FIELD_SIZE = 4;
    • String SAVES_FILE = "saves.txt";
    • int getCellValue(int x, int y);
    • int getScore();
    • void moveLeft();
    • void moveRight();
    • void moveUp();
    • void moveDown();
    • void moveRandom();
    • void saveGame(String bestScore);
    • String loadGame();

GamePlay

alt text

Messenger

Simple messenger and server app. You just run ChatServer first and just once. After you can run, as many as, you want ClientWindows. In first window you need to type your name and server ip. It is shows in console, when server starts. After you can simple chat, with you friends, which connected to same server.

alt text

Random Tweet

Simple app, that contains TextField and button. You Enter user's login and that press button rand. After your next press, it is show you new random tweet,reply or retweet. App got a nice tweet-colored interface.

alt text

Releases

No releases published

Packages

No packages published