Difference between revisions of "JGuiGen Demo with Hale's notes"
Vsingleton (Talk | contribs) |
|||
(6 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
==== The objective: ==== | ==== The objective: ==== | ||
− | * A [http:// | + | * A [http://lightcloud.verns.net/JGuiGen/JGuiGen.html Screencast] |
==== The demo script ==== | ==== The demo script ==== | ||
− | + | Vern | |
+ | I added two files to your updateMisc.sh. I did it on my Linux box so the eol chars should be okay. | ||
+ | I also changed run.sh to take a parameter - the file to run. | ||
− | # | + | I created build.bat and run.bat the same way. |
+ | |||
+ | Please erase or move when you have read this. | ||
+ | |||
+ | tanx Hale | ||
+ | |||
+ | Vern - looks very nice (until it choked itself on too many features) | ||
+ | I had a couple of thoughts. | ||
+ | # You might want to build a screen that announced JGuiGen (Elegant CRUD) and says somethings like "Every database project involves major effort just to build screens that edit the tables. JGuiGen automates this task" If you wanted you could list a few features in big letters (CRUD, I18n, Multi-user, built in simple reports, build in simple Queries) Anyway you start your talk with this screen up instead of a black background. Very quickly you kill this screen and we never see it again. You just go on like you are doing now. | ||
+ | # You mention JGuiGen eating its own dog food several times. When you get to Mark Tables or Edit Columns you might want to mention that the screens were built with JGuiGen. Code that writes itself. (Hmmm The first thing they comipled with the IBM optimizing Fortran compiler in the early 60's was ---- drum roll please --- the fortran opimizing compiler.) | ||
+ | # This screen cast had more "breathy" noises than your other demos. I don't know if you changed mikes or position or what. | ||
+ | |||
+ | Regardless - it look great. I'm impressed. | ||
+ | Hale | ||
+ | Note: for Vern - 4/13 | ||
+ | All of these worked for me on my Fedora box. | ||
+ | # Login doesn't burp | ||
+ | # Save Query better (note: You don't see the query until you run FIND again.) | ||
+ | # User prefs are working for me. (???) | ||
+ | # JFreeReport worked (finally) | ||
+ | # View ReadMe.html and Manual - removed "qoutes" | ||
+ | # I went ahead and switched the prompts for UserLogDemo to their own resource bundle. Don't know | ||
+ | what this is going to break since it required doing something I wanted to do but hadn't gotten | ||
+ | to yet. Mark Table allows you to duplicate a table ruw and have two (or more) classes | ||
+ | going against the same table. I din't know if the I18N will pick up on this correctly since | ||
+ | you didn't want to write the bundles yet. | ||
+ | I know that this isn't all of the list - but I think that it is the Biggies! | ||
+ | |||
+ | # Assumed to have installed: subversion, java sdk, maybe eclipse 3.1.2 | ||
+ | # (ghp) On one of my Fedora boxes I had to install subversion yum install subversion worked fine | ||
# svn checkout https://svn.sourceforge.net/svnroot/jguigen/JGuiGen/trunk/ jguigen | # svn checkout https://svn.sourceforge.net/svnroot/jguigen/JGuiGen/trunk/ jguigen | ||
− | ## | + | ## Going hardcore ... |
− | + | ## Check out of the latest JGuiGen source code | |
− | ## | + | |
− | + | ||
− | + | ||
− | + | ||
## Only the most motivated, high speed, open source development allowed ... no holding back | ## Only the most motivated, high speed, open source development allowed ... no holding back | ||
## grabbing the latest source using subversion on sourceforge.net | ## grabbing the latest source using subversion on sourceforge.net | ||
Line 22: | Line 49: | ||
## we have revision ... | ## we have revision ... | ||
## Let's get down to business in JGuiGen | ## Let's get down to business in JGuiGen | ||
+ | # (ghp) I had to chmod the jguigen folder to give permissions before I could use elcipse. I had to do the same for the files - especially .classpath and .project which did not have write access. | ||
+ | # (ghp) When running from Eclipse - I had to: | ||
+ | ## Create a new Project (JGuiGen) in the folder where I installed JGuiGen (this found the existing project) | ||
+ | ## Right click on the project (in the Java Perspective window) --> Properties --> Build Class Path There are two external jars jce.jar and jsse.jar that are sun security files. The current class path points to their location on my Windows box. | ||
+ | ## You need to change this path to point to the <java install path>/jre/lib/ext folder on your box. | ||
# cd jguigen | # cd jguigen | ||
− | + | # unzip JGuiGenMisc.zip | |
− | + | # ./build.sh | |
− | + | ||
− | # unzip JGuiGenMisc.zip | + | |
− | # | + | |
− | + | ||
− | + | ||
# classpath=".:"`echo lib/*.jar | tr " " ":"` | # classpath=".:"`echo lib/*.jar | tr " " ":"` | ||
− | |||
− | |||
− | |||
# java -cp $classpath JGuiGen | # java -cp $classpath JGuiGen | ||
− | |||
− | |||
− | |||
− | |||
# Users | # Users | ||
# UserDemo | # UserDemo | ||
− | |||
− | |||
# change the social security number | # change the social security number | ||
# change the start date | # change the start date | ||
Line 63: | Line 81: | ||
## and the window close X button in the upper right ... web developers eat your heart out | ## and the window close X button in the upper right ... web developers eat your heart out | ||
## we may have missed 1 or 2 ... isn't that rediculous | ## we may have missed 1 or 2 ... isn't that rediculous | ||
− | |||
# Notice that the font chooser has octothorpes around the text, two points I'd like to make about this: | # Notice that the font chooser has octothorpes around the text, two points I'd like to make about this: | ||
− | |||
## the code still runs, which, for anyone whose ever had to do serious i18n in Java, you will appreciate | ## the code still runs, which, for anyone whose ever had to do serious i18n in Java, you will appreciate | ||
− | ## we | + | ## we can also go in now with JGuiGen and regenerate the resource bundles for the internationalization of that menu option |
# Notice that "ExtRa" button ... | # Notice that "ExtRa" button ... | ||
## This is just a simple button in the code that | ## This is just a simple button in the code that |
Latest revision as of 19:17, 7 January 2011
Back to Main Page
The objective:
The demo script
Vern I added two files to your updateMisc.sh. I did it on my Linux box so the eol chars should be okay. I also changed run.sh to take a parameter - the file to run.
I created build.bat and run.bat the same way.
Please erase or move when you have read this.
tanx Hale
Vern - looks very nice (until it choked itself on too many features) I had a couple of thoughts.
- You might want to build a screen that announced JGuiGen (Elegant CRUD) and says somethings like "Every database project involves major effort just to build screens that edit the tables. JGuiGen automates this task" If you wanted you could list a few features in big letters (CRUD, I18n, Multi-user, built in simple reports, build in simple Queries) Anyway you start your talk with this screen up instead of a black background. Very quickly you kill this screen and we never see it again. You just go on like you are doing now.
- You mention JGuiGen eating its own dog food several times. When you get to Mark Tables or Edit Columns you might want to mention that the screens were built with JGuiGen. Code that writes itself. (Hmmm The first thing they comipled with the IBM optimizing Fortran compiler in the early 60's was ---- drum roll please --- the fortran opimizing compiler.)
- This screen cast had more "breathy" noises than your other demos. I don't know if you changed mikes or position or what.
Regardless - it look great. I'm impressed. Hale Note: for Vern - 4/13 All of these worked for me on my Fedora box.
- Login doesn't burp
- Save Query better (note: You don't see the query until you run FIND again.)
- User prefs are working for me. (???)
- JFreeReport worked (finally)
- View ReadMe.html and Manual - removed "qoutes"
- I went ahead and switched the prompts for UserLogDemo to their own resource bundle. Don't know
what this is going to break since it required doing something I wanted to do but hadn't gotten to yet. Mark Table allows you to duplicate a table ruw and have two (or more) classes going against the same table. I din't know if the I18N will pick up on this correctly since you didn't want to write the bundles yet. I know that this isn't all of the list - but I think that it is the Biggies!
- Assumed to have installed: subversion, java sdk, maybe eclipse 3.1.2
- (ghp) On one of my Fedora boxes I had to install subversion yum install subversion worked fine
- svn checkout https://svn.sourceforge.net/svnroot/jguigen/JGuiGen/trunk/ jguigen
- Going hardcore ...
- Check out of the latest JGuiGen source code
- Only the most motivated, high speed, open source development allowed ... no holding back
- grabbing the latest source using subversion on sourceforge.net
- The jars, a 3 MB sample database, help files, and of course the source ... there it is
- we have revision ...
- Let's get down to business in JGuiGen
- (ghp) I had to chmod the jguigen folder to give permissions before I could use elcipse. I had to do the same for the files - especially .classpath and .project which did not have write access.
- (ghp) When running from Eclipse - I had to:
- Create a new Project (JGuiGen) in the folder where I installed JGuiGen (this found the existing project)
- Right click on the project (in the Java Perspective window) --> Properties --> Build Class Path There are two external jars jce.jar and jsse.jar that are sun security files. The current class path points to their location on my Windows box.
- You need to change this path to point to the <java install path>/jre/lib/ext folder on your box.
- cd jguigen
- unzip JGuiGenMisc.zip
- ./build.sh
- classpath=".:"`echo lib/*.jar | tr " " ":"`
- java -cp $classpath JGuiGen
- Users
- UserDemo
- change the social security number
- change the start date
- change to a different row in the table and show off the validation catch
- sort by clicking on a column
- right click and drop your jaw
- click back in the main window and change the ssn
- right click ... choose next
- watch validation work again
- mention the 10 or so actions which are already coded for me, and I dont have to write code for that correctly validate and make sure the users of my gui do not loose data in irritating ways
- changing rows in the table
- next in the right click pop-up
- previous in the right click pop-up
- "Refresh table" in the right click pop-up
- Find in the richt click pop-up and in the top menu
- Extra in the right click pop-up and the top menu
- "Dup" in the right click which means duplicate the current row with a new id number
- "Add" in the right click and in the main menu
- the exit button in the upper left
- and the window close X button in the upper right ... web developers eat your heart out
- we may have missed 1 or 2 ... isn't that rediculous
- Notice that the font chooser has octothorpes around the text, two points I'd like to make about this:
- the code still runs, which, for anyone whose ever had to do serious i18n in Java, you will appreciate
- we can also go in now with JGuiGen and regenerate the resource bundles for the internationalization of that menu option
- Notice that "ExtRa" button ...
- This is just a simple button in the code that
- you will be able to easily find the code for it in the java
- rename it to "my custom report"
- add your own functionalty to it
- and look it has built in functionality underneath that you might like to use ... option 1, 2, 3
- Find
- First name "is equal to" Hale
- OR
- last name "is like" Sing%
- Execute
- Find ... note it saved our most recent find critereon
- note the "Show inactive" button which toggles and ... guess what allows the user to find rows that they or someone else deleted last week, but were not really deleted of course ... just flagged that way so that you did not have to write that code again ... just use JGuiGen
- place holder for dicussing
- Reports
- Look and feel
- right click again ... choose inverse mono look and feel
- right click ... choose Native
- Print the screen
- Simply tonnes of documentation about JGuiGen e.g.
- here is a manual and for those of you who like to RTFM
- here is a read me which shows you, for example, all of the databases suppoerted by JGuiGen
- You can cuddle up with this in bed some evening
- type: "... Standalone"
- driver: JGuiGenDb
- Ok
- lead_ID integer identity
- lead_DATE timestamp
- lead_PHONE char(20)
- isremoved smallint - the deleted flag
- lastchangedby char(20) - for sanity and multi user functionality
- lastchangeddate timestamp default null - for validation and multi user functionality
- Mark Tables - place a check mark on the "Process Table" field for your new Lead Table
- Check Data Dictionary, Leave Flags, Run Now
- Edit Data Dict ... Select the Lead table, Do a bunch of stuff for each column
- Generate Application (Model, Order, Create Java)
- Exit from the Internationalization causes a write
- Generate HTML (optional)
- show out-of-the-box features of the gui
- View, Add, Edit, Delete ... right click duplicate
- Search for some rows
- Oh ... what's this? ... Reports!
- try closing a window after a change
- try changing the row to edit after a change
- Quickly adding a column, such as: ssn, phone, address
- Internationalization
- Hot keys
- Change validation error message and Test
- blast the coffee cup
- run test scripts against the gui
- show test script output
- shameless plug - Hale Pringle's web site
Notes about getting JGuiGen installed on SourceForge:
I ran into two "issues" while moving a new project to SourceForge as a Subversion version control project.
1. SourceForce wants a Subversion dump file to start with which menat I needed to place JGuiGen into
subversion locally. I created a repository using the Tortisesvn client. I imported the files into the
repository and checked them out again. Then it was time to create the dump. TortiseSvn doesn't create
dump files so I needed to use the command line. No problem. The instructions said use the svnadmin tool to
create the dump file. The issue came with figuring out what folder to be in when I ran svnadmin. I finally
found out that being in the main repository folder worked. That seems like a strange place to work from
but it worked.
2. The instructions on uploading a new project said to use scp and copy the file to scp FILENAME.ZIP USERNAME@shell.sourceforge.net:/home/groups/P/PR/PROJECTNAME/FILENAME.ZIP
I tried this and it didn't work scp jguigen.zip Halepringle@shell.sourceforge.net:/home/groups/P/PR/jguigen.zip.
What they don't mention in these instructions is that the "P/PR" are the first letter and first two letters of our project name. This worked scp jguigen.zip Halepringle@shell.sourceforge.net:/home/groups/J/JG/jguigen.zip.
3. To update the SourceForge web site I used Winscp and logged into shell.sourceforge.net using my sourceforge username and password. That placed me in /home/users/h/ha/halepringle. I navigated to /home/groups/j/jg/jguigen/htdocs and uploaded the web pages. Hale 4/10/2006