Connect

Connect is a Java library for creating Web-Based Interfaces, think of it as JFrame for the web. It was created in Late October 2015, and is maintained by @notelek.

Easy Interface Creation

Creating an interface can be a challenging aspect of program design, and take up valuable time that could be spent working on your solution, with Connect, all you have to do is import the library, and in as little as 2 lines of code you can have your own web based interface up and running.

Getting Started

In two simple lines of java, you can create the base for your interface, doing away with the hassle of setting up a web server, linking imports, and referencing documentation.

Layout layout = new Layout();
PortListener server = new PortListener(80, layout.generateDashboard("Notelek Connect"));

This example creates the basic page below: Connect Demo Page

Where more granular control is required, you can begin to use the deeper functions of connect. Below is the same example as above, but in expanded form.

PageBuilder page = new PageBuilder();
page.addNavbar(title, new String[] {"Dashboard", "Logs", "Settings"});
page.addContent("<div style=\"font-size:32pt;text-align:center;width:500px;position:absolute;top:30%;left:50%;margin-left:-250px;\">Dashboard Demo</div>");
String pageContent = page.getPage(title);