Browsing all posts in "JLabel".

Changing borders on the fly

Here is a short program that creates four labels. Each label draws a bevel border around itself when the mouse pointer enters the component’s region and erases it when the mouse leaves the region. This kind of “rollover” effect has become a popular feature in some applications’ toolbars. Modifying the program to use soft bevel [...]

Manipulation Dialog Box

Now we learn how to make dialog box in java,with it you can set label from stiring you have writen before…..
here they are:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/**
* Manipulasi kotak dialog
*
* @author Didik Dwi Prasetyo, [didik_rpl at yahoo dot com]
* @version 1.00
*/
public class ManipulasiDialog extends JFrame {
private JLabel lbl;
[...]