Monday, 10 December, 2012

When I write programming code, if I find myself writing the almost identical lines over and over, I create a subroutine to do that work. This makes the code shorter and easier to read. That is exactly what I did in the slide show program when I was creating the toolbar for the Java version.

After I installed the WindowBuilder plugin for Eclipse and brought up that display, I found that WindowBuilder was not smart enough to follow the subroutine. So I had to completely remove that code and start over, using WindowBuilder. I have completed the toolbar and have hooked up all the support stubs for all the buttons.

Once again, here is what the original Delphi program window looks like:

And here is what the equivalent Java program window looks like:

Note that I have actually added another button to the new version – it’s a help button. Also note that those three buttons are now to the far right, where I wanted them in the first place. It turns out that WindowBuilder is very helpful in laying things out the way you want them. I will stick with it.

Next up is the layout of the rest of the main window.


 

Last Monday I ordered two devices from Computer Geeks: a Premiertek PowerLink N150 150Mbps Wireless-N USB 2.0 Adapter and an IOGear GBU521 Bluetooth 4.0 USB Micro Adapter. I knew the wireless adapter would work, as I have a ‘g’ version of it already, and it says it supports Linux right in the specifications. I did not know if the bluetooth adapter would work, so I googled it before I bought it and found that it works with Linux.

When I got the bluetooth adapter, I plugged it in to my 64-bit Linux Mint 13 box and it was not recognized. I tried various things and finally booted a newly-downloaded live-distro copy of Linux Mint 14.1. It worked fine with that version of Linux.

So I downloaded the 64-bit version of Linux Mint 14.1 and installed it on my 64-bit box. It took a couple of hours, since I also had to re-install some applications, but it all works fine.


 

Silly sign of the day:


 

Free/Open Source Software