Home » Author Archives: Mark Anro Silva

Author Archives: Mark Anro Silva

Software Engineer | UI/UX Engineer, Java, JavaFX, GWT and Scala.

Messaging with RabbitMQ

amqp-logo

We previously published a brief tutorial showing how to set up a Spring RabbitMQ Template. Now, let’s take a step back for a broader view of what RabbitMQ is and how you might use it. This article introduces the relevant concepts, hopefully helps you to navigate around one or two common “gotchas,” and provides links to more in-depth resources. It ...

Read More »

JavaFX Game (Connect Four)

javafx-logo

This is my first JavaFX game tutorial and my first blog post about JavaFX panel. I made this connect four game with just 200+ lines of code just enough for a simple game. I used the GridPane panel here to lay out the disks, GridPane is one of the JavaFX layout pane but it is different from the other pane ...

Read More »

GWT and HTML5 Canvas Demo

google-gwt-logo

This is my first experiment with GWT and HTML5 Canvas. My first attempt is to create rectangles, with just a few lines of code I came up something like this: Code: public class GwtHtml5 implements EntryPoint { static final String canvasHolderId = "canvasholder"; static final String unsupportedBrowser = "Your browser does not support the HTML5 Canvas"; static final int height ...

Read More »

JavaFX 2 Form with Tron effect

javafx-logo

This is a simple JavaFX Login Form with a TRON like effect. In this example I am using CSS to style the TextField and Button. Here is the snippet of the CSS and Effect code: .text-field{ -fx-background-color: transparent; -fx-border-color: #00CCFF; -fx-text-fill: white; } .password-field{ -fx-background-color: transparent; -fx-border-color: #00CCFF; -fx-text-fill: white; } .button{ -fx-background-color: transparent; -fx-border-color: white; -fx-background-radius: 30; -fx-border-radius: 30; ...

Read More »

GWT Custom Button using UIBinder

google-gwt-logo

Here’s an example on how to create a custom button using UIBinder on GWT. public class GwtUIBinderButton implements EntryPoint { public void onModuleLoad() { Button button = new Button(); button.setText("Button"); button.addClickHandler(new ClickHandler(){ @Override public void onClick(ClickEvent event) { Window.alert("Button clicked"); } }); RootPanel.get("container").add(button); } } public class Button extends Composite implements HasText, HasClickHandlers, ClickHandler{ private static ButtonUiBinder uiBinder = GWT.create(ButtonUiBinder.class); ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.