You are not logged in.

theuserbl

Intermediate

  • "theuserbl" started this thread

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

1

Sunday, June 12th 2011, 6:43pm

FormViewer for Jabaco *.jsrc files

If you want to show a GUI-Jabaco Sourcefile on other systems then Windows. Or you want to see a GUI file without installing Jabaco on an computer, then it is now possible.

Download this file:
FormViewer.jar

It is an executable jar-file.
You can start it with
java -jar FormViewer.jar
in a console. Or double click on it in the Exlorer of Windows.

After that cliock in the menu "File" -> "Open...".
Navigate to the directories and files to a Jabaco-Sourcecode file with GUI (a Form, Applet, etc. Not a Module or Class file).
For example choose from the Jabaco Samples in the directory "Calculator" the file "frmMain.jsrc".
Then it looks like on that attached screenshot.

I am sorry, that it is still buggy. But I am not a developer.
theuserbl has attached the following image:
  • Screnshot14.png

OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

2

Sunday, June 12th 2011, 7:38pm

Hi,

Quoted

I am sorry, that it is still buggy. But I am not a developer
you do not share the sourcecode, do you?
regards
OlimilO

theuserbl

Intermediate

  • "theuserbl" started this thread

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

3

Sunday, June 12th 2011, 7:39pm

Hi,

Quoted

I am sorry, that it is still buggy. But I am not a developer
you do not share the sourcecode, do you?
regards
OlimilO


Here is it:
FormViewer-src.zip
But it is written in Java not Jabaco.

OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

4

Sunday, June 12th 2011, 7:51pm

Quoted

it is still buggy.

at first glance the sourcecode looks good to me.
what kind of problems/bugs are there to expect?

theuserbl

Intermediate

  • "theuserbl" started this thread

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

5

Sunday, June 12th 2011, 7:59pm

Quoted

it is still buggy.

at first glance the sourcecode looks good to me.
what kind of problems/bugs are there to expect?


Some Forms are not right shown.
At the moment it can not handle with IResource and so on. I am not sure what happens, when a UserControl is added to a Form, etc.
Try it out. You will see, that not all sample running ok.
This have also to do, that the main ty-catch block (in ComponentArea.java) assumed that all runs ok.
If it comes to an error and "catch" is used, then the method will be ended.
XML-instructions (Heigh, Whith, Color of a control and so on) which are for a control on it, comes then to the control itself.

theuserbl

Intermediate

  • "theuserbl" started this thread

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

6

Sunday, June 12th 2011, 8:04pm

Oh, and I have forgotton to mention the prolem with Timer and so on.
VBTimer or Timer is no normal control. So it is not derived from JComponent or Component.
The JPanel can with "add" only things with "Component" and above.
So it comes to an error, to add such a control. In the Jabaco-IDE it have its place. But if you compßile it,it is not visible.
So this have also to be catched.

theuserbl

Intermediate

  • "theuserbl" started this thread

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

7

Monday, June 13th 2011, 6:22pm

Little update

Have updated it.
The updated versions are on the same place like before the old one:
FormViewer.jar
FormViewer-src.zip

+ Now it loads all Forms
+ It shows additional Timer and so on

- It still don't set all Properties. It still don't understamd the properties from enums.

Greatings
theuserbl
theuserbl has attached the following image:
  • Screnshot15.png

theuserbl

Intermediate

  • "theuserbl" started this thread

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

8

Sunday, June 19th 2011, 4:39am

Updated files:
FormViewer.jar
FormViewer-src.zip

+ Nearly all is now correct shown

- Still a little bug with scrollbars, which are sometimes complete gray and only shown, when the mouse goes over it.

Resources can not be shown (like pictures inside), because some needed information are in the project file (.jba), but I only handle the pure sourcefile (.jsrc) to show it .


Please test it!
And tell me here, if you find bugs in that program.



Greatings
theuserbl
theuserbl has attached the following image:
  • Screnshot16.png

This post has been edited 3 times, last edit by "theuserbl" (Jun 19th 2011, 5:29am)


Rate this thread
WoltLab Burning Board