You are not logged in.

FrancoAA

Beginner

  • "FrancoAA" is male
  • "FrancoAA" started this thread

Posts: 15

Date of registration: May 4th 2010

Location: Rosario, Argentina

  • Send private message

1

Monday, July 19th 2010, 5:44pm

DirListBox control

Google Translate:
Here is the new version of control. Is much better but has a bug that appears randomly.
I hope you try and if you know a better alternative make me know. Greetings FrancoAA.





Original text:
Aquí se encuentra la nueva versión del control
es mucho mejor pero tiene un bug que aparece aleatoriamente.
Espero que lo prueben y si conocen una mejor alternativa me la hagan saber. Saludos FrancoAA.

DirListBox2.zip

This post has been edited 1 times, last edit by "FrancoAA" (Jul 21st 2010, 4:28am)


theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

2

Tuesday, July 20th 2010, 5:03pm

RE: DirListBox control

Google Translate:
Greetings everyone, Here I give the user control that I hope you might help. Still missing some features and not fully proven, but little is better than nothing. Regards ;)
Nice. :-)
I assume you allow it, to intragrate it (or parts of it) in the Jabaco-Framework under the new BSD license. Right?

Currently we have only FileListBox in the SVN. And with your support there comes the DirListBox as addition.

FrancoAA

Beginner

  • "FrancoAA" is male
  • "FrancoAA" started this thread

Posts: 15

Date of registration: May 4th 2010

Location: Rosario, Argentina

  • Send private message

3

Tuesday, July 20th 2010, 5:34pm

RE: RE: DirListBox control

Google Translate:
Greetings everyone, Here I give the user control that I hope you might help. Still missing some features and not fully proven, but little is better than nothing. Regards ;)
Nice. :-)
I assume you allow it, to intragrate it (or parts of it) in the Jabaco-Framework under the new BSD license. Right?

Currently we have only FileListBox in the SVN. And with your support there comes the DirListBox as addition.

Google translate:Of course, I am happy to be so.


Por supuesto, estaré feliz de que así sea

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

4

Wednesday, July 21st 2010, 10:40pm

RE: DirListBox control

Google Translate:
Here is the new version of control. Is much better but has a bug that appears randomly.
I hope you try and if you know a better alternative make me know. Greetings FrancoAA.


:huh: You replaces your first post completly with a other one? :huh:

Happyly I have saved your old files before :S


DirListBox1:



DirListBox.zip

I have tested it on Linux. Here a Screenshot:



And as contradiction here your DirListBox2 again:



DirListBox2.zip


DirListBox1 and DirListBox2 are completly different.

To DirListBox1:

Nice. The only big current problem is, that it don't work on Un*x systems (Linux, (Open)Solaris, *BSD, MacOSX, ...) correct.
You have written in the code very often "\". The backslash is only used on Windows as seperator. On Unix it is the slash ("/").
Using the system property "file.separator" would help I think.
But currently I have only looked at it, because I haven't time for more.


To DirListBox2:

DirListBox2 makes use of FileChooser components. I have never know before, that it is possible to use some components of the FileChooser outside of it.
I have DirListBox2 currently not tested on Linux, because lack of time.
But the big disadvantage of DirListBox2 is, that the directories are not listed as a nice tree. I can only see the directories in the current browsed directory.
And that "directory" at the beginning, don't exist. There don't existsing on Windows a directory, which includes the directorys "Mis documentos", "Mi PC", "Mis sitios de red" and so on.

So I for myself like DirListBox1 more then DirListBox2.
But DirListBox2 have a nice "details" option, which shows for example the size of files. But that would be a nice enhancement for the FileListBox.
As I said, for DirListBox I would prefere a tree view.

But that is my personal opinion. So it would be nice to hear, what other people thinking of it.

Or would it makle more sense to include both: DirListBox1 and DirListBox2 ?
Then DirListBox1 could be called DirTreeBox. And DirListBox2 could be called DirChooserBox.

What do you think?

FrancoAA

Beginner

  • "FrancoAA" is male
  • "FrancoAA" started this thread

Posts: 15

Date of registration: May 4th 2010

Location: Rosario, Argentina

  • Send private message

5

Friday, July 23rd 2010, 1:29am

Google Translate:
Here is the new version of control. Is much better but has a bug that appears randomly.
I hope you try and if you know a better alternative make me know. Greetings FrancoAA.


:huh: You replaces your first post completly with a other one? :huh:

Happyly I have saved your old files before :S


DirListBox1:

index.php?page=Attachment&attachmentID=221

index.php?page=Attachment&attachmentID=222

I have tested it on Linux. Here a Screenshot:
index.php?page=Attachment&attachmentID=223


And as contradiction here your DirListBox2 again:

index.php?page=Attachment&attachmentID=224

index.php?page=Attachment&attachmentID=225


DirListBox1 and DirListBox2 are completly different.

To DirListBox1:

Nice. The only big current problem is, that it don't work on Un*x systems (Linux, (Open)Solaris, *BSD, MacOSX, ...) correct.
You have written in the code very often "\". The backslash is only used on Windows as seperator. On Unix it is the slash ("/").
Using the system property "file.separator" would help I think.
But currently I have only looked at it, because I haven't time for more.


To DirListBox2:

DirListBox2 makes use of FileChooser components. I have never know before, that it is possible to use some components of the FileChooser outside of it.
I have DirListBox2 currently not tested on Linux, because lack of time.
But the big disadvantage of DirListBox2 is, that the directories are not listed as a nice tree. I can only see the directories in the current browsed directory.
And that "directory" at the beginning, don't exist. There don't existsing on Windows a directory, which includes the directorys "Mis documentos", "Mi PC", "Mis sitios de red" and so on.

So I for myself like DirListBox1 more then DirListBox2.
But DirListBox2 have a nice "details" option, which shows for example the size of files. But that would be a nice enhancement for the FileListBox.
As I said, for DirListBox I would prefere a tree view.

But that is my personal opinion. So it would be nice to hear, what other people thinking of it.

Or would it makle more sense to include both: DirListBox1 and DirListBox2 ?
Then DirListBox1 could be called DirTreeBox. And DirListBox2 could be called DirChooserBox.

What do you think?

I think it's a good idea to rename the controls:
Dirlistbox1 = DirTreebox
Dirlistbox2 = DirChooserBox.

DirTreebox need some changes to run on linux, I would appreciate your help to make it work.

DirChooserBox is based on JFileChooser control so I do not think any changes need to work in linux.

Here attached the latest revision of DirChooserBox.
DirChooserBox.zip

Sorry for my English, is the best I can do with the google translator.

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

6

Friday, July 23rd 2010, 8:17pm

With revision 67 I have now added DirListBox1 to the Jabaco Framework:
http://code.google.com/p/jabacoframework/source/detail?r=67

It includes a little bugfix from me, which makes it run on Linux. Only "\" is changed to the Java FileSeparator property.

Here a screenshot on Linux:



I think it's a good idea to rename the controls:
Dirlistbox1 = DirTreebox
Dirlistbox2 = DirChooserBox.


Because DirListBox1 looks similar to the VB6 DirListBox, I have decided to let this name. VB6 developer then find it easier.

Quoted

DirTreebox need some changes to run on linux, I would appreciate your help to make it work.
Thats wrong. The other one makes more problems.

Quoted

DirChooserBox is based on JFileChooser control so I do not think any changes need to work in linux.
That is wrong, too.
Here a scrrenshot of it after start:


and a screenshot, if I click on the "Continue" button:


And the problem do not only exists on Linux. The DirChooserBox only runs with the WindowsLookAndFeel. If you use on Windows a different Look And Feel, then the comes the same error.

The line

Jabaco Source

1
tlb = Cast(myFileChooser.getComponent(0), JToolBar)
is the one, which works only with the WindowsLookAndFeel.


Quoted

Here attached the latest revision of DirChooserBox.

I will look at it later.

FrancoAA

Beginner

  • "FrancoAA" is male
  • "FrancoAA" started this thread

Posts: 15

Date of registration: May 4th 2010

Location: Rosario, Argentina

  • Send private message

7

Friday, July 23rd 2010, 11:28pm

DirChooserBox the problem is related to the GUI, and I imagine that the JFileChooser in linux has a different GUI consists of another set of JComponent, should not be difficult to fix, but I have no space to install linux on my pc, maybe later. Greetings, and thanks for solving the problem of DirListBox. ;)

Original Text:
el problema del DirChooserBox esta relacionado con la GUI, ya que me imagino que el JFileChooser en linux tiene una GUI diferente compuesta por otro conjunto de JComponent, no debería ser difícil solucionarlo, pero no tengo espacio para poder instalar linux en mi pc, tal vez más adelante. Saludos, y gracias por solucionar el problema del DirListBox.

Rate this thread
WoltLab Burning Board