You are not logged in.

Search results

Search results 361-380 of 500.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Wednesday, September 16th 2009, 3:02pm

Author: A1880

SendKeys Function?

Hi, in Java there is a "Robot" class to tackle automation tasks like sendkeys. The following sample code might inspire you to come up with a Jabaco version: Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 import java.awt.Robot; import java.awt.event.KeyEvent; /** * @author imran * Description : Used to toggle the multimonitor display in Win XP. */ public class MultiMon { public static void main(String[] args) { try { /...

Wednesday, September 16th 2009, 12:02am

Author: A1880

Language mix

Hi Stefan, to mix two programming languages would mean a lot of complexity in terms of Jabaco implementation and also in terms of tool usage, documentation, etc. I would rather like to see improvements in the GUI building features of the Jabaco IDE. I've just implemented a form with a lot of usercontrols. It took a lot of fiddling around to get the resize code working. The result does not look nearly as nice as a .Net user interface. Well, that might be due to my personal lack of training buildi...

Sunday, September 13th 2009, 12:08pm

Author: A1880

Question about deploying jar files

Hi Milan, yes. You can specify a CLASSPATH which tells the Java virtual machine where to look for libraries. Look here for details. But your advantage is limited. The loading time should be fairly the same compared to loading one big library. When you compile your Jabaco application into an exe file, Jabaco will pack all needed libraries into a self-extracting executable. This exe creates a temporary jar file whenever you start it. You'll find it under environment path %TMP% (or is it %TEMP%? I ...

Sunday, September 13th 2009, 11:56am

Author: A1880

Path to executable?

Hi, App.Path points to the current working directory which was true when starting the application. This is not necessarily the directory of the executable. Example: I start my Jabaco IDE via a desktop icon. This determines the current working directory to be somewhere on my desktop. Far away from the Jabaco project directory. But you are right: When you compile an exe file and start it using the exe's directory, App.Path works as expected. Opening a file without specifying the path, leads to the...

Saturday, September 12th 2009, 11:53pm

Author: A1880

Question about deploying jar files

Hi, a Jar file can be renamed to the extension zip and then manipulated by an archiver/packer tool capable of handling zip archives. Window XP and Vista can handle such "compressed folders" internally. You could just remove any unwanted 3rd party library contents and thus repackage your Jabaco classes in a smaller jar. Rename it back to jar afterwards. There are numerous "jar stripping" tools available. They remove unused classes from ja file and take out debugging information. Currently, I have...

Friday, September 11th 2009, 4:19pm

Author: A1880

Substance skins with Jabaco

The trick works with small example but not for my form which happens to have some 20 controls and usercontrols. It might be a matter of timing .... A1880

Friday, September 11th 2009, 4:04pm

Author: A1880

Substance skins with Jabaco

Hi, I tried to call the recommended methods in Form_Load and got the following error: Quoted org.jvnet.substance.api.UiThreadingViolationException: Component creation must be done on Event Dispatch Thread at org.jvnet.substance.utils.SubstanceCoreUtilities.testComponentCreationThreadingViolation(SubstanceCoreUtilities.java:2368 ) To circumvent this problem, I created an asynchronous thread, but this hasn't helped either. Google returns quite a few similar stories about Substance. Any ideas how t...

Friday, September 11th 2009, 1:08pm

Author: A1880

FAQ - HOW TO?

The post I was referring to has no platform dependent aspects. Closing forms is the same on all platforms. The porting question also has been discussed in various posts of this forum. Please do make use of the search function! The Jabaco applications can be run on any platform as long as it supports Java. Obviously, you should not make use of "WINAPI" statements, unless you intend to use the application on Windows. The Jabaco IDE is bound to Windows for the time being. Does this answer your ques...

Thursday, September 10th 2009, 4:52pm

Author: A1880

Ein paar Dinge...

War mir auch nicht klar, dass sich das MDI-Parent-Fenster nicht designen sondern nur als Container nutzen lässt. Bleibt zurzeit wohl nur ein "do it yourself" MDI mit einem normalen Hauptfenster und "floatenden" Usercontrols als MDI-Childs. Da man in Usercontrols wiederum Usercontrols unterbringen kann, sollte das gehen. Gruß! A1880

Thursday, September 10th 2009, 3:44pm

Author: A1880

Ein paar Dinge...

Jabaco bietet Usercontrols, die man wie Dialogs oder Forms selber designen und als Projektdatei einfügen kann. Oder was Du mit "selbstgezeichnet" etwas anderes? Gruß! A1880

Thursday, September 10th 2009, 3:39pm

Author: A1880

FAQ - HOW TO?

Hi, good question, but this was already explained in an earlier post in the past. You may want to consult the "search word" functionality of the forum. Success! A1880

Wednesday, September 9th 2009, 9:41am

Author: A1880

End problem

Hi, you can "end" a Form like this: Jabaco Source 1 2 3 4 Public Sub cmdEnd_Click() Unload Me system.exit 0 ' returns an error status which can be reacted upon in a calling script End Sub Another way: Jabaco Source 1 2 3 4 Public Sub cmdEnd_Click() Unload Me Me.close End Sub Greetings! A1880

Monday, September 7th 2009, 10:28pm

Author: A1880

Core themes for further developments

Hi, there is a small Example in the Jabaco framework. Other database samples are scattered throughout this forum. You might want to use the search function. Success! A1880

Sunday, September 6th 2009, 4:06pm

Author: A1880

error writing text to VBFileHandler file

Hi, I found a problem writing to a file: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Public Sub Command1_Click() Dim fileName As String = System.getenv("tmp") & "\myFile.txt" Dim f As VBFileHandler = Open(fileName, Output, Write, Shared) Dim i As Integer Dim cnt As Integer = 0 Dim res As Boolean For i = 1 To 100 res = f.writeString(cnt & ": neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, " & _ "consectetur, adipisci velit, sed quia non numquam eius") c...

Sunday, September 6th 2009, 3:38pm

Author: A1880

Resize

These events are only triggered if the cursor is inside the Form window. They are not called during or at the end of a resize. Greetings A1880

Saturday, September 5th 2009, 11:49pm

Author: A1880

"else if" problem

Hi, there seems to be a problem with nested if / elseIf / else if. Here is my example: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 Public Sub Command1_Click() Dim a As Boolean = False Dim b As Boolean = False f1 a, b f2 a, b f3 a, b End Sub Private Sub f1(a As Boolean, b As Boolean) If a Then MsgBox "a" Else If b Then ' note the space between "Else" and "if" MsgBox "b" End If ' missing "End If" not detected by Jabaco End Sub Priva...

Saturday, September 5th 2009, 11:27pm

Author: A1880

Resize

Hi, the "Form_Resize" handler is only called once at the end of a form resize operation. Therefore, there is no direct way to resize dynamically following the mouse-drag right away. Any ideas how to get more resize calls and not just one? Greetings A1880

Saturday, September 5th 2009, 11:23pm

Author: A1880

Auto-save

Hi Manuel, for quick Jabaco IDE experiments, it is very handy to keep all project files in memory without saving. That's the current situation: I am not forced to save my project. However, this is somewhat dangerous. It may happen, that the PC or the IDE goes down losing my source code entry. I would welcome an user selectable auto-save feature which saves all changes whenever I press F6. Greetings A1880

Saturday, September 5th 2009, 11:17pm

Author: A1880

Opening a file for read creates an empty file

Hi, I've tried the following: Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 Dim f As VBFileHandler Dim s As String f = Open(fileName, Input, Read, Shared) If f <> Null Then Do While Not f.EOF s = f.readLine .... loop end if f.close This code creates an empty file, if "fileName" does not exist. To avoid this behaviour, I am now using: Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Dim f As VBFileHandler Dim s As String f = Open(fileName, Input, Read, Shared) If f <> Null Then if f.exists then Do Whi...

Saturday, September 5th 2009, 11:08pm

Author: A1880

Path to executable?

Hi, I tried to use App.ExeName to locate the current executable. This function exists in Jabaco, but returns an empty string. Any idea how to find my own executable? I'd like to know the path to open a configuration file in the same directory. Greetings A1880

WoltLab Burning Board