There is an example for the most complex remote control handling at chapter 23. And the show file is like the following, which describes all of the selected(and activated) state of the each letter in the 3x3 box.

But, I'm really sorry to say that this is really tedious and hard works. In addition, the bottom of show text file, in the "rc handling" part, we should contain "forwarding address" that takes us to get the correct behavior we wanted with 'grid' keyword.

In my personal opinion, even I don't get the concrete solution, lightweight extension mechanism might avoid this hard coding via “java_commands” syntax, and that can be be more programtic approach. But I'm not sure.

In a short, my question is that how we can avoid to tell similar or repeated scripts in show text file? Is there better solutions for making the complex UI and UX in BD-J application?

I'm a very beginner of GRIN. Any replies will be read carefully and appreciated.

For this particular case, I believe a new syntax called menu_assembly greatly reduces the reputation. In the latest hdcookbook menu example in the hdcookbook.dev.java.net repository, the script looks like this.