Developer's Diary
Software development, with Terry Ebdon
18-Jul-2020 NPP Progress

GUI Created

I realised that the NewPostProd GUI doesn't need to use data bound controls. Some forms will not touch the database. With this in mind I revisited WindowBuilder Pro. I changed its default configuration to use member variables and create action events as class members. Unfortunately I'd put in quite a bit of work before I realised the defaults were wrong. But WindowBuilder Pro is fairly tolerant of changes to the generated code.

Form Layout

Gradle wouldn't compile classes that used the JGoodies Formlayout. I tried several versions from JCentral. Some were were retrieved but none worked.

// implementation 'com.jgoodies:forms:1.3.0'
// implementation 'com.jgoodies:forms:1.2.1'
// implementation 'com.jgoodies:forms:1.13.0'
// implementation 'com.jgoodies:forms:1.8.0'

Eventually I discovered that:

  1. The latest library versions are commercial only, just the ancient versions are free. From my perspective the software's been abandoned.
  2. I don't need this software, the grid and border layouts are fine.

Mixed compilation

Groovy can call into Java wih no problems. But Java couldn't see my Groovy classes. The quick fix was to move the Java code into the Groovy folder, allowing the Groovy compiler to handle everything.

Eclipse, a mixed bag

Eclipse can be a great product, I've always liked it. But it's not always the most friendly of IDEs. Without Eclipse I'd probably have used .NET for this port, so it's definitely a tool I'm glad to have. I found Eclipse to be very intolerant of classes being moved between namespaces by other software. Also its default key bindings are quite odd.

Progress

I have the Create Photo Shoot screen close to working. I hard-coded table data to avoid setting up a database. This is good enough to prove the code works. With a little effort I should soon be able to partially regenerate scripts used for previous photo shoots. Diffing the old and new files will give me some confidence in my progress.

17-JUL-2020 👈 Top of page 👉 19-JUL-2020

© 2020 Terry Ebdon.

Find me coding on GitHub, networking on LinkedIn, answering questions on Stack Exchange and hanging out on twitter.