Sunday, November 25, 2007

Java default icons

I always had the doubt, how to use java's icons? or wich are the default java's icons. for example the Warning icon from JOptionPane, etc.
This could be usefull or I want this because some time I need to use icon fast and easy to test something or just to don't add my own icon.

And now after to search for everywhere and looking inside Java's code i found some of them.

To get defaults icon, you need to ask to javax.swing.UIManager class, wich one have the objects related with look&fell (borders, icons, fonts...)

for example:

Icon icon = UIManager.getIcon("OptionPane.informationIcon");
JButton buton = new JButton(icon);

And the icon list is the next :


Data Models

In most software development is necessary to store a lot of data, so is necesary to design a model database to the problem.
Well for those who need to design one in there are more than 300 models Database, designed for typical cases as ERP, Customers and a Health Center, Clients and Fees,Bookstore...etc.
There are the diagrams ready to take and free download, and if you need help say they cand give a hand :-)

Links :
-reference from Anieto2k

Why Developers Leave (And What You Can Do About It)

Interesting article in the magazine, Speaking about why programmers migrate
Some comments :
About Money
"There are numerous ways to let a developer know that you are interested in working with him long term, and not all of them involve monetary rewards. Any kind of additional “perk” goes a long way towards making people happy. These can involve non-liquid monetary assets such as stock options as well as perks like telecommuting, free lunches/snacks/sodas, good hardware, other gadgets"

About Morale
"If a good developer leaves the company for a reason that doesn’t directly involve money, it is often some type of morale problem—one that may be more widespread than you think. If people aren’t happy where they work, they will often leave for equal—or even less—pay elsewhere."

About Burnout
"What kinds of activities am I talking about? That’s up to you. People are different and different things work for different people so there isn’t any one clear answer to that question. Many developers are computer gaming geeks as well so a quick match of Warcraft III or Unreal Tournament can serve to refresh a developer almost as well as a good nights sleep. Others don’t enjoy PC gaming, but will welcome other things, like a quick game of HORSE on the Nerf basketball hoop in the hallway."

..."However, before looking to big, broad, expensive gestures and top-down morale improvement initiatives, look at the simple things first. Things like getting to know your employees personally, using common sense in operations, and finding out what employees want from you and your company can go a long, long way towards helping you keep good people working hard in your organization."

Links : The full article

Sun's Courses free

well, not all are free,but there are several free and interesting, like this:
"topics about Application Server PE 9: ease of development for Java Platform Enterprise Edition (Java EE) 5, installation and basic administration, service oriented architecture (SOA) features, deployment, performance, developer experience, security, debugging and troubleshooting features."

These courses bring mp3 explanations, and they look very interesting...

more info:
SUN's course
Sun training

Saturday, November 24, 2007



Screeencast CRUD with JAVA EE 5.0 and netbeans

wow amazing and easy example...

btw CRUD (Create, Retrieve, Update and Delete.)

Link : Roumen's Weblog


SwingLabs is a Open Source Lab to explorer new ways to make easy application with improvements in performance and really pretty interfaces.
And they have a lot of components to download and use easily
for example:

Autentification window.

Typical WinXP's TaskPane

Important you need Java 1.5+
references: SwingLabs

Six steps for learning difficult subjects quickly

1.Bombard yourself with information
2.Identify the key concepts and make them yours
3.Only memorize what absolutely has to be memorized
4.Get some feedback on your understanding
5.Bombard yourself with some more information, but from another source
6.Get some real-world feedback


Nautilus Scripts

An easy way to make a contribution to Open Source, is just giving more functionality to the existing tools and one of most easy is helping adding scripts or plugins to Nautilus, without necesity of change code absoluty nothing, just with scripts.

ie. a script that allows resizing images:
1 : Create script

scale="resize : <height>x<width>"

`gdialog --title "$title" --inputbox "$scale" 200 100 2>&1`

while [ $# -gt 0 ]; do
pic = $1
/usr/bin/convert -scale $imgsize "$pic" "$imgsize-$pic"

2 : save this in ~/.gnome2/nautilus-scripts

3 : and ready, now it can use in nautilus

Download: pack with multiple scripts.

References : G-Script.

Final speech "The great dictator"

I'm sorry but I don't want to be an Emperor - that's not my business - I don't want to rule or conquer anyone. I should like to help everyone if possible, Jew, gentile, black man, white. We all want to help one another, human beings are like that.

We all want to live by each other's happiness, not by each other's misery. We don't want to hate and despise one another. In this world there is room for everyone and the earth is rich and can provide for everyone.

The way of life can be free and beautiful.

But we have lost the way.

Greed has poisoned men's souls - has barricaded the world with hate; has goose-stepped us into misery and bloodshed.

We have developed speed but we have shut ourselves in: machinery that gives abundance has left us in want. Our knowledge has made us cynical, our cleverness hard and unkind. We think too much and feel too little: More than machinery we need humanity; More than cleverness we need kindness and gentleness. Without these qualities, life will be violent and all will be lost.
Buy The Great Dictator at
The Great Dictator
Buy From

The aeroplane and the radio have brought us closer together. The very nature of these inventions cries out for the goodness in men, cries out for universal brotherhood for the unity of us all. Even now my voice is reaching millions throughout the world, millions of despairing men, women and little children, victims of a system that makes men torture and imprison innocent people. To those who can hear me I say "Do not despair".

The misery that is now upon us is but the passing of greed, the bitterness of men who fear the way of human progress: the hate of men will pass and dictators die and the power they took from the people, will return to the people and so long as men die [now] liberty will never perish...

Soldiers - don't give yourselves to brutes, men who despise you and enslave you - who regiment your lives, tell you what to do, what to think and what to feel, who drill you, diet you, treat you as cattle, as cannon fodder.

Don't give yourselves to these unnatural men, machine men, with machine minds and machine hearts. You are not machines. You are not cattle. You are men. You have the love of humanity in your hearts. You don't hate - only the unloved hate. Only the unloved and the unnatural. Soldiers - don't fight for slavery, fight for liberty.

In the seventeenth chapter of Saint Luke it is written " the kingdom of God is within man " - not one man, nor a group of men - but in all men - in you, the people.

You the people have the power, the power to create machines, the power to create happiness. You the people have the power to make life free and beautiful, to make this life a wonderful adventure. Then in the name of democracy let's use that power - let us all unite. Let us fight for a new world, a decent world that will give men a chance to work, that will give you the future and old age and security. By the promise of these things, brutes have risen to power, but they lie. They do not fulfil their promise, they never will. Dictators free themselves but they enslave the people. Now let us fight to fulfil that promise. Let us fight to free the world, to do away with national barriers, do away with greed, with hate and intolerance. Let us fight for a world of reason, a world where science and progress will lead to all men's happiness.

Soldiers - in the name of democracy, let us all unite!

Look up! Look up! The clouds are lifting - the sun is breaking through. We are coming out of the darkness into the light. We are coming into a new world. A kind new world where men will rise above their hate and brutality.

The soul of man has been given wings - and at last he is beginning to fly. He is flying into the rainbow - into the light of hope - into the future, that glorious future that belongs to you, to me and to all of us. Look up. Look up."