Go Language is a new programming language produced by Google. The FAQ section of its website says that it compiles faster than other languages. It supports garbage collection and has ability to handle concurrency.
The only problem I see is that it currently does not support Windows-based system. It's a good thing that I'm running in Ubuntu so I could give it a try. :)
Maybe this will become more popular in the future since Google is behind it. For all the people interested, you could visit their home page by clicking here. It has different how-to's to help you get started.
Cheers!
Saturday, November 14, 2009
Wednesday, November 11, 2009
Turning on the Java Web Start Console
If you are working on a Java Web Start Project. It will really be useful if you could see the console. This will help you to easily find bugs or see logs in your code as it is running.
To enable the console in your system whenever a Java Web Start Application is running you just need to follow these steps. These steps are applicable regardless whether your machine is running on Ubuntu or Windows.
To enable the console in your system whenever a Java Web Start Application is running you just need to follow these steps. These steps are applicable regardless whether your machine is running on Ubuntu or Windows.
- Open a Terminal if you are using Ubuntu (or any Unix-based system). If you are running on Windows, you need to fire up the command prompt.
- Once it is running, type in: javaws -viewer and press Enter.
- The Java Control Panel will then appear in your system.
- Navigate to Advanced Tab.
- Under Settings > Java Console, just select the Show console option.
- Click on the Apply button.
Labels:
java control panel,
java web start,
show console,
turn on console,
ubuntu,
windows
Sunday, November 8, 2009
JTextField, JColorChooser, JTextPane
Lately, I've been assigned a module of the system our team is currently developing. This part of the system uses Java Swing. One of the tasks I had to do concerns asking the user to choose a color and assigning this to the user's profile. Being a Java Swing Noob, I had to research everything first.
I found out that using JColorChooser is an easy way to let the user pick a color he wants.
All you have to do is to call a static method which opens a dialog and returns the color the user chooses.
Then after this, I wanted to have a JTextField with a background which will change together with the color the user chose. Now, I tried using
textField.setbackground();
and
textField.setForeground();
and found out that only the text color will change and not the background inside the JTextField. So, I did a few more searches and found out that a good alternative for this is a JTextPane.
You could check out the following links to help you get started:
JFileChooser
JTextPane
I found out that using JColorChooser is an easy way to let the user pick a color he wants.
All you have to do is to call a static method which opens a dialog and returns the color the user chooses.
Then after this, I wanted to have a JTextField with a background which will change together with the color the user chose. Now, I tried using
textField.setbackground();
and
textField.setForeground();
and found out that only the text color will change and not the background inside the JTextField. So, I did a few more searches and found out that a good alternative for this is a JTextPane.
You could check out the following links to help you get started:
JFileChooser
JTextPane
Labels:
background,
color,
java,
java swing,
JFileChooser,
JTextField,
jtextfield problem,
JTextPane,
swing
Sunday, September 6, 2009
Installing windows installers in Ubuntu
I've been wanting to install some windows application in my Ubuntu System. While I was browsing through some sites, I found out that you can actually do this by installing the Wine application in your local machine.
The Wine application will allow you to install and use some of the Windows applications in your system. To do this, you need to:
I tried it out with Firefox and it worked like a charm. Perhaps, you can use this with other popular windows application. If this doesn't work, you can always opt for a VM instead.
The Wine application will allow you to install and use some of the Windows applications in your system. To do this, you need to:
- Navigate to System > Administration > Synaptic Package Manager
- Search for the wine application.
- Mark this all for installation, then Install.
- Right click on the windows installer file and choose, 'Open with "Wine Windows Program Loader"'.
- Follow the usual wizard to install it in your system.
I tried it out with Firefox and it worked like a charm. Perhaps, you can use this with other popular windows application. If this doesn't work, you can always opt for a VM instead.
Friday, July 31, 2009
Installing Groovy in Ubuntu
Groovy is a programming language built on top of Java. With all the fuss about it, I decided to try installing it in my local machine. I'm currently running on Ubuntu 9.04 (Jaunty Jackalope).
I found out that there is an easier way of installing Groovy in Ubuntu which will save you from all the trouble of setting up the user variable and system path by simply typing in a one-line command in the terminal.
These are the steps to get Groovy running on your Ubuntu system:
- Go to Applications > Accessories > Terminal.
- On the terminal, type in this command.
sudo apt-get install groovy
- You will then be asked for the admin password before your system starts the command. Click enter.
- Your system will then ask for your permission if you are willing to allot the needed memory space before it proceeds. Type in 'Y' then press enter.
Once you say yes to this, it will then begin installing Groovy on your machine.
To check if it has been properly installed, type in 'groovy -version' in your terminal. The groovy version currently installed in your system will be shown.
You can now start exploring Groovy.
Subscribe to:
Posts (Atom)