You are not logged in.

Search results

Search results 221-240 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.

Thursday, April 15th 2010, 11:40am

Author: A1880

Communicating between forms and with the internet in Jabaco

You could use or take some inspiration from external Java libraries like this one. It might be possible to migrate the Java code to Jabaco rather than using the *.jar file externally. Please let us know about your findings. Greetings A1880

Wednesday, April 14th 2010, 10:32am

Author: A1880

Communicating between forms and with the internet in Jabaco

To start the default browser for a given URL you can do the following: Jabaco Source 1 2 3 4 5 6 Const quote = Chr(34) Dim url As String = "http://www.jabaco.org" Dim cmd As String = "cmd.exe /c start " & quote & "my window" & quote & " " & url Debug.Print cmd Shell(cmd) The Chr(34) trick avoids Jabaco's limitation with quote characters within strings. The code works under Windows. Cheers A1880

Wednesday, April 14th 2010, 10:23am

Author: A1880

Communicating between forms and with the internet in Jabaco

Hi, the following works for me: 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 Dim a As String Dim b As java#net#URL Dim conn As java#net#URLConnection Dim c As java#io#InputStream Dim d As java#io#InputStreamReader Dim e As java#io#BufferedReader Dim f(1000) As String Dim n As Integer ' in case we are behind a proxy System.setProperty("http.proxyHost", "myproxy.xyz") System.setProperty("http.proxyPort", "8080") System.setProperty("http.proxyUse...

Wednesday, April 14th 2010, 9:00am

Author: A1880

call the constructor of a base class in a derived sub-class

Yes, that solves the problem! Thanks for your example. It is not sufficient to define a "Class_Initialize" in the base class or to leav out the default constructor at all. You have to define your own default constructor. Otherwise Jabaco does not allow you to define constructors of derived classes. But it is still not possible to call the constructor of a base class. In your example, you circumvented this limitation by a simple "Base.MyInt = 456". But for more complex base constructors it would ...

Tuesday, April 13th 2010, 9:20pm

Author: A1880

call the constructor of a base class in a derived sub-class

Is it possible to call the constructor of a base class in a derived sub-class in Jabaco? In Java this would be done using "super()". In general I found it difficult to write parametrized constructors in Jabaco. It might be easier to live with parameter-less constructors and move the initialization stuff to some init() method. Greetings A1880

Tuesday, April 13th 2010, 2:29pm

Author: A1880

inconvenience and sudden death in find&replace dialog

The find&replace dialog should allow repeated find&replace with a minimum of clicks. If the replacement string contains the original string, the Jabaco IDE editor should jump to the next match *after* the replacement. Example: replace "rose" by "myrose" in sentence "a rose is a rose is a rose" If you try a "replace all" in the above example, Jabaco IDE is killed with stack overflow. Another optimization would be to change the tab sequence. From textbox "Find what:" the tab key should jump to the...

Tuesday, April 13th 2010, 2:14pm

Author: A1880

negative exponents in literals

An alternative notation for numbers like 1000 is 1E3. Jabaco seems to have difficulties with negative exponents. The following statement yields a compile error: Jabaco Source 1 MsgBox 1E-2 A plus sign like in 1E+2 also is not accepted. A possible workaround would be something like 1/1E2 Greetings A1880

Sunday, April 11th 2010, 5:30pm

Author: A1880

Can I use the Java Mail API from within Jabaco

First, you have to add your external Jar files to the classpath of your current Jabaco project. Function key F1 gets you into the "Imports" dialog to define the Jar files to be known to the Jabaco IDE. Second, you can either use "import" statements or specify the full class names. Once you have referenced an external class in your code, the next references can omit the full path. Try it! See here for an example how to access external Java APIs from within Jabaco. The programming language you are...

Saturday, March 27th 2010, 6:55pm

Author: A1880

button image doesn't show in design mode

Have you seen this post? Cheers A1880

Saturday, March 27th 2010, 6:51pm

Author: A1880

Common Dialog Problem

Yep! Filters in the CommonDialog don't work yet. You might want to use the search facility of this forum. There have been some posts around this topic over the months. Greetings A1880

Saturday, March 27th 2010, 12:44pm

Author: A1880

trimming a path to file name from a listbox

Well, I think you have to use Mid() rather than Right() to extract all characters starting at a given position. Look at this: Jabaco Source 1 2 3 4 5 6 7 Dim k As Long Dim s As String = "a very long name\with a middle part\here comes the rest" k = InStrRev(s,"") If k > 0 Then s = Mid(s, k + 1) MsgBox s & " (k=" & k & ")" Cheers A1880

Wednesday, March 24th 2010, 3:21pm

Author: A1880

RichTextBox with wordwrap = false ?

RichTextBox.parent is a JTextPane object. I've tried to influence wrapping via RichTextBox1.parent.setMaxSize(), but I haven't not succeeded yet. Google is full of questions regarding JTextPane wrapping. Seems to be a hairy topic .... Cheers A1880

Sunday, March 14th 2010, 1:51pm

Author: A1880

Hash at the beginning?

The character "#" is called "hash" or "number sign" in English. See here I guess it orginates from the telephone key. The usefulness of # in the Jabaco IDE editor was not fully clear to me. Thanks for the hint! Apart from that, I consider the mixture of "#" and "." as one of the less elegant choices of Jabaco. What was the reason the invent "#", rather than always using "." as separator? Greetings A1880

Friday, March 12th 2010, 12:06am

Author: A1880

winsock control

Hi Vicente, sorry! I haven't noticed that. I guess that this has something to do with String encoding in Java. The Jabaco framework takes Winsock data as Strings, not as arrays of bytes. If your are using the following DataArrival handler, you see what bytes arrive: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 Private Sub tcpServer_DataArrival(ByVal bytesTotal As Long) Dim l As Long Dim i As Integer Dim s As java#lang#String = tcpServer.GetData() Text3.Text = Text3.Text & vbCrLf & bytesTotal & " ...

Thursday, March 11th 2010, 10:15am

Author: A1880

winsock control

Hi, I've change your DataArrival handler as follows: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Private Sub tcpServer_DataArrival(ByVal bytesTotal As Long) Dim Data() As Byte Dim l As Long Dim i As Integer Data = tcpServer.GetData.getBytes Text3.Text = Text3.Text & vbCrLf & bytesTotal & " bytes: [" & LBound(Data) & " .. " & UBound(Data) & "]" & vbCrLf For l = 0 To bytesTotal i = data(l) And 255 Text3.Text= Text3.Text & l & ": " & Chr$(i) & " " & CStr(i) & vbCrLf Next l End Sub The resulting ...

Sunday, March 7th 2010, 1:47am

Author: A1880

Jabaco JBGRID

The Parent of a JBGrid is a JTable. The usual way of removing rows from a JTable is to go via its DefaultTableModel. Unfortunately, the model of a JTable in Jabaco is a JBGridModel which hasn't got a DefaultTableModel. Long answer short: I don't know how to remove rows from an existing JBGrid. Recreating/redrawing might be the workaround for the time being. Looking through the documentation of javax.swing I get more and more thankful that the Jabaco framework hides major parts of swing's complex...

Friday, March 5th 2010, 8:35am

Author: A1880

CommonFileDialog (Filter)

Yep! Filter funktionieren noch nicht. Wie in meinem oben zitierten Artikel beschrieben: The filter functionality in CommonDialog has not been implemented yet in the current Jabaco framework. The filter property is CommonDialog ignored for the time being. Freiwillige Entwickler für's Jabaco-Framework sind derzeit Mangelware. Gruß! A1880

Tuesday, March 2nd 2010, 8:33am

Author: A1880

db2000 lightchat

The idea is to port one of the numerous Java socket samples to Jabaco. As far as I know, there is no such sample available yet in this forum. Manuel showed a possible starting link. You'll find Java/Jabaco portings samples throughout this forum. Give it a try! A1880

WoltLab Burning Board