Posts Tagged ‘java7’

The “Java Life” Rap Music Video

October 5, 2011

Hi frens,

This is a rap music video. I liked it and am sharing with you all. I took the link from Java’s youtube channel. I found it from a tweet by @java. Enjoy! and CODE HARD!

The lyrics is as follows :

The “Java Life”

In the cubicles representin’ for my JAVA homies…
In by nine, out when the deadlines are met, check it.

We code hard in these cubicles
My style’s nerd-chic, I’m a programmin’ freak
We code hard in these cubicles
Only two hours to your deadline? Don’t sweat my technique.

Sippin’ morning coffee with that JAVA swirl.
Born to code; my first words were “Hello World”
Since 95, been JAVA codin’ stayin’ proud
Started on floppy disks, now we take it to the cloud.

On my desktop, JAVA’s what’s bobbin’ and weavin’
We got another winning app before I get to OddEven.
Blazin’ code like a forest fire, climbin’ a tree
Setting standards like I Triple E….

Boot it on up, I use the force like Luke,
Got so much love for my homeboy Duke.
GNU Public Licensed, it’s open source,
Stop by my desk when you need a crash course

Written once and my script runs anywhere,
Straight thuggin’, mean muggin’ in my Aeron chair.
All the best lines of code, you know I wrote ‘em
I’ll run you out of town on your dial-up modem.

We code hard in these cubicles
Me and my crew code hyphy hardcore
We code hard in these cubicles
It’s been more than 10 years since I’ve seen the 404.

Inheriting a project can make me go beeee-serk
Ain’t got four hours to transfer their Framework.
The cleaners killed the lights, Man, that ain’t nice,
Gonna knock this program out, just like Kimbo Slice

I program all night, just like a champ,
Look alive under this IKEA lamp.
I code HARDER in the midnight hour,
E7 on the vending machine fuels my power.

Ps3 to Smartphones, our code use never ends,
JAVA’s there when I beat you in “Words with Friends”.
My developing skills are so fresh please discuss,
You better step your game up on that C++.

We know better than to use Dot N-E-T,
Even Dan Brown can’t code as hard as me.
You know JAVA’s gettin’ bigger, that’s a promise not a threat,
Let me code it on your brain

so you’ll never forget.

We code hard in these cubicles,
it’s the core component…of what we implement.
We code hard in these cubicles,
Straight to your JAVA Runtime Environment.

We code hard in these cubicles,
Keep the syntax light and the algorithm tight.
We code hard in these cubicles,
Gotta use JAVA if it’s gonna run right.

We code hard in these cubicles
JAVA keeps adapting, you know it’s built to last.
We code hard in these cubicles,
Robust and secure, so our swag’s on blast


Original link

Come on Java lovers lets start the rap!

Manohar Bhattarai (मनोहर भट्टराई)
Twitter :- :-


How to Create Translucent and Shaped Windows in java.

September 4, 2011

Hi all,

I am back after a long time. This time I want to tell you all how I set a window as translucent in java. It was a very cumbersome thing to do before recently. From JDK 6 update 10, java has this facility to set the window as translucent  and its very easy.

Recently I did this in one of my projects and wanted to share it with you all.

As of the Java Platform, Standard Edition 6 (Java SE 6) Update 10 release, we can add translucent and shaped windows to our Swing applications.

The translucent and shaped window API was first added to the Java SE 6 Update 10 release as a private API. This functionality was moved to the public AWT package in the JDK 7 release.

Here is an example :

import java.awt.*;
import javax.swing.*;
import static java.awt.GraphicsDevice.WindowTranslucency.*;

public class MyWindow extends JFrame {
    public MyWindow() {
        setLayout(new GridBagLayout());


        add(new JButton("Just a Button"));

    public static void main(String[] args) {
        // Determine if the GraphicsDevice supports translucency.
        GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
 GraphicsDevice gd = ge.getDefaultScreenDevice();

        //If translucent windows aren't supported, exit.
        if (!gd.isWindowTranslucencySupported(TRANSLUCENT)) { 
 System.err.println( "Translucency is not supported"); 

        SwingUtilities.invokeLater(new Runnable() {

            public void run() {
                MyWindow tw = new MyWindow();

		// Set the window to 55% opaque (45% translucent).

		// Display the window.

To learn more please check this link.


Here is how you can select which methods to use according to your JDK version.


Manohar Bhattarai (मनोहर भट्टराई)
Twitter :- :-

Java SE 7 is officially here.

July 28, 2011

Hi all,

Java SE 7 is officially released today i.e. July 28, 2011(07.28.2011)! After nearly five years of collaboration within the worldwide Java community, Java Platform, Standard Edition is ready for download! It’s an important step in Java’s evolution.

The major features of Java SE 7 are:
•    Project Coin- many small language changes that add up to a big boost in productivity for developers
•    The Fork/Join Framework –  facilitates parallelism for mulit-core processors
•    The New File System API (NIO.2) – provides the ability to perform many basic file system operations natively
•    InvokeDynamic – makes it easier to run other languages on the JVM

To learn more about these features, you can view the technical presentations from Oracle’s global event on July 7.

Download Java Platform, Standard Edition (Java SE) 7 

Here is my previous blog :

Manohar Bhattarai (मनोहर भट्टराई)
Twitter :- :-

Java 7 is here.

July 12, 2011

Hi all,

Java 7 (codename Dolphin) is an upcoming major update to Java, releasing on July 28, 2011(07.28.2011). The following links might help you know more about Java 7 :

Webcast on Java 7 :

Wiki on Java 7 :

Java se 7 :

JDK 7 features :

JDK 7 Java Docs :

I am looking forward to it. So stay tuned.

Manohar Bhattarai (मनोहर भट्टराई)
Twitter :- :-

%d bloggers like this: