Sunday, September 30, 2012

Java Swing Button Example

 //Button with an image, colors, border, tool tip text and shortcut key
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
class ButtonDemo extends JFrame
{
    JButton b;
    ButtonDemo()
    {
        //create container
        Container c = getContentPane();
        //set a layout for container
        c.setLayout(new FlowLayout());

        //store the image into ImageIcon object
        ImageIcon ii = new ImageIcon("car.jpg");

        //create the button with the image
        b = new JButton("Click Me", ii);

        //set background and foreground colors for button
        b.setBackground(Color.yellow);
        b.setForeground(Color.red);

        //set font for the label of button
        b.setFont(new Font("Arial", Font.BOLD, 30));

        //set bevel border for button
        Border bd = BorderFactory.createBevelBorder(BevelBorder.RAISED);
        b.setBorder(bd);
        //set tool tip text for button
        b.setToolTipText("This is a button");
        //set a short cut key for button. Alt+C from keyboard will invoke
         //the button
        b.setMnemonic('C');
        //add the button to the container
        c.add(b);
        //close the frame upon clicking
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
    public static void main(String args[])
    {
        //create a frame
        ButtonDemo obj = new ButtonDemo();
        obj.setTitle("My Button");;
        obj.setSize(500,400);
        obj.setVisible(true);
    }
}


car.jpg

Rannvijay Singh @ GIT Cultural fest 2012




Rannvijay Singh @ GIT Cultural fest 2012 (Gandhinagar Institute of Technology) Published on Sep 30, 2012 by
G.I.T Cultural fest 2012
Name: :~Ja|Z|ba~:
Tagline: ...:~Ja|Z|ba~:.kuchh kar dikhane ka
Place: Gandhinagar Institute of Technology (GIT) Campus, Motibhoyan, Gandhinagar

Viren Mistry performing at G.I.T. Jazba 2012


Published on Sep 29, 2012
It is a Video of Viren Mistry 3rd CE B playing Flute at Gandhinagar Institute of Technology in the event Jazba 2k12. No editting has been to this video. Nisarg Gajjar own this video and no one claims the right to edit this video without permission.

Priyanka Ma'am Performing at GIT Jazba 2012


Published on Sep 30, 2012 by Nisarg Gajjar.
Priyanka Ma'am Performing at G.I.T. Jazba 2k12.


General
Format MPEG-4
Format profile Base Media / Version 2
Codec Id mp42
File size 15.6 MB
Duration (ms) 2mn 58s
Total bitrate 732 Kbps
Encoded date UTC 2012-09-29 10:27:23
Tagged date UTC 2012-09-29 10:27:23
gsst 0
gstd 179048
gssd BB64FFE88MM1349007575717042
gshh o-o---preferred---sn-ci5gup-cvhe---v21---lscache3.c.youtube.com

Video
Id 1
Format AVC
Format info Advanced Video Codec
Format profile Baseline@L3.0
Use of CABAC No
RefFrames 1 frame
Codec Id avc1
Codec info Advanced Video Coding
Duration (ms) 2mn 58s
Bitrate mode Variable
Bitrate 633 Kbps
Bitrate maximum 886 Kbps
Width 640 pixels
Height 360 pixels
Aspect ratio 16:9
Framerate mode Constant
Framerate 30.000 fps
Colorimetry YUV
Colos space 4:2:0
Bit depth 8 bits
Scan type Progressive
Bits/(Pixel*Frame) 0.092
Stream size 13.5 MB (87%)
Tagged date UTC 2012-09-29 10:27:23

Audio
Id 2
Format AAC
Format info Advanced Audio Codec
Format version Version 4
Format profile LC
Format settings - SBR No
Codec Id 40
Duration (ms) 2mn 58s
Bitrate mode Variable
Bitrate 96.0 Kbps
Bitrate maximum 104 Kbps
Channel(s) 2 channels
ChannelPositions Front: L R
Sampling rate 44.1 KHz
Stream size 2.05 MB (13%)
Title IsoMedia File Produced by Google, 5-11-2011
Encoded date UTC 2012-09-29 10:27:23
Tagged date UTC 2012-09-29 10:27:23

Ranvijay Singh in GIT Jazba (4/4)

GIT celebrated their culfest named Jazba 2012 on 29th September for which students have shown an amazing response. :~Ja|Z|ba~: 2012 | EVENT was a full day power-pack event consisting many events in which students have participated so enthusiastically and worked very hard for performance and organization. Rannvijay Singha was the chief guest of this wonderful occasion.

Ranvijay Singh in GIT Jazba (3/4)

GIT celebrated their culfest named Jazba 2012 on 29th September for which students have shown an amazing response. :~Ja|Z|ba~: 2012 | EVENT was a full day power-pack event consisting many events in which students have participated so enthusiastically and worked very hard for performance and organization. Rannvijay Singha was the chief guest of this wonderful occasion.

Ranvijay Singh in GIT Jazba (2/4)

GIT celebrated their culfest named Jazba 2012 on 29th September for which students have shown an amazing response. :~Ja|Z|ba~: 2012 | EVENT was a full day power-pack event consisting many events in which students have participated so enthusiastically and worked very hard for performance and organization. Rannvijay Singha was the chief guest of this wonderful occasion.

Ranvijay Singh in GIT Jazba (1/4)

GIT celebrated their culfest named Jazba 2012 on 29th September for which students have shown an amazing response. :~Ja|Z|ba~: 2012 | EVENT was a full day power-pack event consisting many events in which students have participated so enthusiastically and worked very hard for performance and organization. Rannvijay Singha was the chief guest of this wonderful occasion.