Testing Java Applets

My first test goes on here :

Wow!
If your browser was Java-enabled, a "Hello, World" message would appear here.

Displaying Code Style 1


       

            import java.awt.event.*;  
import javax.swing.*;  
  
public class ImageButton{  
ImageButton(){  
JFrame f=new JFrame();  
                  
          
JButton b=new JButton("ABC");  
b.setBounds(130,100,100, 40);  
f.setTitle("Button in Java");
f.add(b);  
          
f.setSize(300,400);  
f.setLayout(null);  
f.setVisible(true);  
          
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);  
          
    }  
      
public static void main(String[] args) {  
    new ImageButton();  
}  
}  

       
 

CSS Button


Hoverable Buttons

Use the :hover selector to change the style of the button when you move the mouse over it.

Tip: Use the transition-duration property to determine the speed of the "hover" effect:


(5⁄6,-2⁄3)

new