Cloudgarden's Discussion Board
Forums: Search: Several forums are available for people to post questions/comments about Java Speech or any of the CloudGarden products. As more messages are posted this discussion board should provide a useful, searchable, support database.
o AliceTalker (42)
o JSAPI Projects (69)
o Java Speech API (857)
o Jigloo GUI Builder for Eclipse (3322)
o SwingScroller (0)
o US Election 2004 (3)
Searches text and subject fields in all forums. The search matches as many words as possible. Don't use "AND" or "OR".
Latest "Jigloo GUI Builder for Eclipse" Topics [ Start new "Jigloo GUI Builder for Eclipse" Topic  ]

Cloudgarden Discussion Board  
This topic has 5 replies.       [ << Previous Topic | Start of Thread | >> Next Topic ]
Bug: "String index out of range: -1"
Author: Jörgen
06/11/10 11:47 Reply
Hi.

When creating a new JFrame or JPanel (haven't tried with others) and untick the "Add main method" check box the error message "String index out of range: -1" appears.

Re: Bug:
Author:Jonathan
Reply 1 of 507/14/10 05:18Reply
I can't reproduce this bug in version 4.6.2 - please try that version and if it still occurs tell me the eclipse version and platform you are using please.

Re: Bug:
Author:Jörgen
Reply 2 of 507/14/10 09:14Reply
Hi.

I believe that I was using 4.6.2 at the time when I wrote the initial forum entry, but I'm not sure. However, I tried it again, and it's still not working.

See http://tinyurl.com/374uv6h for a screenshot.

My eclipse configuration (Help -> About Eclipse SDK -> Installation details -> Configuration): http://tinyurl.com/32r5j73

I also noticed in the error log that I have a shortcut name clash that involves jigloo: http://tinyurl.com/36j7l9y. I don't think that is at least releated to this issue, but better safe than sorry :)


Re: Bug:
Author:Jörgen
Reply 3 of 507/14/10 09:15Reply
The dot in the last URL should not be included: http://tinyurl.com/36j7l9y

Re: Bug:
Author:Jörgen
Reply 4 of 507/14/10 09:20Reply
I now see that back slashes got lost when publishing the configuration at textdump dot com

Re: Bug:
Author:Jörgen
Reply 5 of 507/14/10 11:23Reply
I think I might be on to something now.

In eclipse I have a custom formatter (see Window -> Preferences -> Java -> Code style -> Formatter)

My choise for Indentation -> Tab policy is 'spaces only'. If I change it to 'tabs only' (or change to the eclipse built in formatter) then I can create the frame/panel without a main class.

But even though I don't have a main method, I get a method comment saying: Auto-generated main method to display this JFrame

Hope this helps