This is basically replicating a mobile OS, think of it as a homeless man's Android, but on desktop and doesn't have many features.
I guess really it's an application portal, I don't really know.
This has been made for my own learning, and some of these apps are useful for me.
- Applications are essentially folders, in which the application has free rein apart from...
- Applications return a
Pane
(450x524) which is displayed. (See Example_App_Pane.fxml)
(Use Maven (min v3.1.0))
Pre-requisites to develop:
- Run
mvn install
on the mobile-os project - Add
com.github.koolskateguy89.mobileos:mobileos
as a dependency to your application's pom withprovided
scope
<dependency>
<groupId>com.github.koolskateguy89.mobileos</groupId>
<artifactId>mobileos</artifactId>
<version>${latest.version}</version>
<scope>provided</scope>
</dependency>
The main class needs to extend App
, and needs a
public
constructor with parameters Path, Properties
or Path, Properties, Preferences
. If both are defined, the one with the
latter parameters (incl. java.util.Preferences
) is used.
Name | Description |
---|---|
./info.properties | Properties file containing application details (see info.properties below) |
The rest is however you want.
Key | Description | Example |
---|---|---|
name | The app's name | ExampleApp |
version | The app's version | 1.0 |
backgroundColor | (Optional - default white) The background color for your icon (HTML or CSS) | #FFFFFF or red |
mainClassName | The fully-qualified name of the class that extends App |
com.github.koolskateguy89.example.MyApp |
jarPath | The relative path to the application jar (relative from the application directory) | app.jar |
A | B |
A java.util.Properties
object representing this file gets passed to the App in its constructor (you can define more
properties if you want).
The rest of the folder is almost entirely how you want it (see Restrictions below)
Basically don't have the same canonical names as anything already here
TODO: this
-
Browser icon made by Freepik from www.flaticon.com
-
Text Editor icon made by Smashicons from www.flaticon.com
-
AppInstaller icon made by Freepik from www.flaticon.com
-
Notes icon made by Freepik from www.flaticon.com
-
Counter icon made by Pixel perfect from www.flaticon.com
-
Postman icon made by Freepik from www.flaticon.com
-
Settings icon made by srip from www.flaticon.com
-
Explorer icon made by DinosoftLabs from www.flaticon.com