How to have a Center Screen Window in Java

Submitted by donbermoy on
Some of the programs in java is set to its user location using the setLocation method of the JFrame or JWindow because they find it hard to center their window screen. So here in this tutorial, we will create a program that has a center screen window in Java. Now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of centerScreen.java. 2. Import the

setAttribute/removeAttribute in Javascript

Submitted by GeePee on
This project will teach you how to use setAttribute and removeAttribute method in javascript. setAttribute adds an attribute to a specified element and give it a value. Like in my example, I add an attribute of class and the value is animate which I give an animation. So, by pressing the setAttribute button, the element starts to animate and by clicking removeAttribute, the animation stops

How to Create an Etched Border in Java

Submitted by donbermoy on
This tutorial will teach you how to create an etched border in Java. An etched border has an etched-in or etched-out effect and in default it is in etched-in effect. Like bevel borders, it has also constants of raised and lowered etched. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of etchedBorder.java. 2.