|
Friday September 30, 2005 |
|
What is strange on this workplace
|
Personal
|
Do you think that work places are a little bit crowded on these picture. It is my flexible workplace


Well, it isn't true. They are going to paint walls in our office. That's the reason why all the tables, chairs, etc. are crowded in the middle of the room
|
|
( Sep 30 2005, 05:41:00 PM CEST )
Permalink
|
|
|
Vampires sucked my blood
|
Personal
|
Fortunatelly it was only nurse that took my blood because of preventive medical check. Why they need a litre of my blood? I was crazy that I went there... I missed it last year and nothing happend...
I recognize that it's much more easier to write about vampires than about beta - maybe it can be because it's Friday and I'm looking forward to visit my friend's wine cellar No that has to be because I'm running the beta on chinese locale with chinese characters... Do you think that I'm crazy? This is called special testing approach )" title=" )" />)))
Enought... I almost missed my English lesson - let me improve myself.
|
|
( Sep 30 2005, 01:40:41 PM CEST )
Permalink
|
|
Thursday September 29, 2005 |
|
NetBeans 5.0 Beta relased
|
NetBeans
|
Beta of the biggest NetBeans release is out.
Why is it the biggest release? The IDE is bigger and bigger when you count it from any side... Fortunatelly more bytes means more functionality. This release includes Java SE and Java EE support (IDE bundled with AS. You can download two additional installers - Mobility Pack for Java ME development and Profiler for profiling of your apps.
|
|
( Sep 29 2005, 12:17:33 PM CEST )
Permalink
|
|
Wednesday September 28, 2005 |
|
Download Mobility Pack 5.0 Beta
|
MobilityPack
|
You can download it from netbeans.org site. All new features are listed here and here.
Today is public holiday in Czech republic... I'll comment on all new features later (tommorow). Some of them are listed in my previous posts...
PLEASE, DON'T FORGET
UPDATE : no time = no comments on new features... Did you try any of them?
|
|
( Sep 28 2005, 09:51:32 PM CEST )
Permalink
|
|
|
StarOffice 8
|
Sun
|
That should interested you... It costs only $69.95 and has powerful and integrated word processing, spreadsheet, presentation, drawing, and database capabilities. Nice, isn't it?
Check the other features of new StarOffice 8
- StarOffice 8 Writer
- StarOffice 8 Calc
- StarOffice 8 Draw
- StarOffice 8 Impress
- StarOffice 8 Base
- Enterprise Tools & Support
|
|
( Sep 28 2005, 02:02:07 PM CEST )
Permalink
|
|
Tuesday September 27, 2005 |
|
[TIP] Creating dynamic List in Mobility Pack for NetBeans 5.0
|
TIP
|
It's easy to create a List in Visual Mobile Designer of Mobility Pack. You just drag and drop components - first add List component into your Visual MIDlet and then add all the ListItems to the List. Of course you'll have to rename the ListItems to some reasonable values. Asssign an action to every ListItem and then the List will work as you'd expect. You don't have to write a line of code.
When you want to create an list with dynamic content then it's little bit complicated(you'll have to code ) but still doable.
Create Dynamic List
This example will be as simple as possible. Let have a String array and construct the List from it. We will show only part of this array and we will dynamically show more/less items of this list. When you'll select an list element from the list then it will show it's name in a different form. This is IMO enought to show how to work with a dynamic list.
How to do it - the steps
Create new Mobility project and create a Visual MIDlet in it. Drag and drop List component from palette to Flow designer. Drag and drop TextBox component to the Flow Design. Rename instance of the List to dynamicList and 'TextBox' to showPressed. You can do it either by inline editing name the name of component in Flow design or by changing 'Instance Name' in Properties window. Then add three commands to the List. Name them Exit, Add, Remove. Point the Exit command to 'Exit Point' of 'Mobile Device'. Point from 'Start Point' to the list. Add Back command to the showPressed form. Open Action property of the Back command. Select 'Switch to Screen' and set 'Target screen' to the dynamicList. Then go to Source code by pressing 'Source code' button on top-left of the Flow designer window.
Create new private field dynamicListListener in Source code of the visual midlet. Here is the code:
private CommandListener dynamicListListener = new CommandListener() {
public void commandAction(Command command, Displayable displayable) {
if (displayable == get_dynamicList()) {
if (command == exitCommand1) {
exitMIDlet();
}
if (command == dynamicList.SELECT_COMMAND) {
String __selectedString;
try {
__selectedString = get_dynamicList().getString(get_dynamicList().getSelectedIndex());
} catch (IndexOutOfBoundsException e) {
__selectedString = null;
}
if (__selectedString != null) {
get_showPressed().setString(__selectedString);
DynamicList.this.getDisplay().setCurrent(get_showPressed());
}
}
}
}
};
You can modify the behaviour of the listener as you need.
Next step is to add the listener to the list. Just add this code to post-init section code of the "public javax.microedition.lcdui.List get_dynamicList()" method:
dynamicList.setCommandListener(dynamicListListener);
createDynamicList();
Method createDynamicList() adds ListElements to the list. If your list should change every time when user displays the list you'll have to add this method even to pre-action code area of all transitions pointing to this List. I added 'Add' and 'Remove' command to the example project to show how to manage it.
Example of solution
This example show how to do it in Mobility Pack 5.0.
Example project with the source code
There are two solutions of this problem. See comments in the Source code.
|
|
( Sep 27 2005, 07:15:29 PM CEST )
Permalink
|
|
Friday September 23, 2005 |
|
[TIP] Simple trick to use Siemens SMTK with Mobility 5.0
|
TIP
|
Siemens' emulators are properly recognized by "Tools | Java Platform manager | Add Platform | Java Micro Edition Platform Emulator" but there is problem You cannot compile with these platforms because there is missing preverify.exe in bin directory of the emulator. To be exact there is preverify.exe but in wrong location - it's in bin directory of SMTK install dir. There are two solutions
- copy preverify.exe from {smtk_install_dir}/bin to {smtk_install_dir}/emulators/{your_emulator}/bin and preverification should work now
- create Custom platform ("Tools | Java Platform manager | Add Platform | Custom Java Micro Edition Platform Emulator") and point all the commands (preverify, execute, debug) to the proper locations. Then choose all neccessary jars. It seems to me that only API.jar is needed.
Bug has been reported about this problem but it seems that it's problem of Siemens emulator.
|
|
( Sep 23 2005, 01:20:35 PM CEST )
Permalink
|
|
Thursday September 22, 2005 |
|
New t-shirt (for geeks)
|
NetBeans
|
There was an all-hands with Jeff Jackson in Prague yesterday.
Everybody is wearing new t-shirt that we received (I'm kidding - almost everybody)
Do you like it?
|
|
( Sep 22 2005, 05:10:57 PM CEST )
Permalink
|
|
Wednesday September 21, 2005 |
|
[TIP] Connecting to a webservice in 5 minutes
|
TIP
|
It's so simple to create a j2me client that connects to a web service with Mobility Pack for NetBeans 5.0 I needed less than 5 minutes to create simple client.
Steps to create J2ME Web Service Client in latest q-build of mobility (or a build after 09/19):
- Have a j2me project
- 'New File/Folder' then 'MIDP | J2ME Web Services Client'
- provide WSDL URL/file for you webservice (e.g. QuoteService that is used in NetBeans IDE 5.0 Quick Start Guide for Web Service Clients
- set up your proxy and port properly
- Retrieve WSDL
- check 'Create Sample MIDlet' checkbox and the wizard will create simple midlet for you
- run project
- launch the midlet
Don't be suprised that some methods return empty form when you generate it for a webservice. This methods bodies are empty and they wait for your implementation. The QuteService is simple and returns only string but you can notice it when you generate client for a webservice that returns complex type. That's because the sample midlet doesn't know how to handle complex types. Field for the returned value of the complex type is generated and you just write method body to specify how to display the complex type. I'll show it later how to handle it.
There can be problems with connection if you are behind firewall - don't forget to set up proxy.
There aren't much devices with JSR172 support but you can try this project with WTK emulator. This project use QuoteService. I didn't wrote a line in this project - everything was generated by the wizard.
Geertjan, what do you think? Isn't it time to try the mobility pack? The latest q-build (it contains J2ME Web Services Client) is available here.
|
|
( Sep 21 2005, 09:34:39 AM CEST )
Permalink
|
|
Monday September 19, 2005 |
|
Modules list in NetBeans 5.0 and Mobility Pack 5.0
|
NetBeans
|
I started NetBeans with Mobility pack installed and I was suprised of the module list that were shown in console during start.
There is 208 modules today. I'll share the list with you. You won't see it if you are starting NetBeans from Start menu or with shortcut icon on desktop.
org.openide.util [6.4 200509151800]
org.openide.modules [6.3 200509151800]
org.openide.filesystems [6.2 200509151800]
org.netbeans.modules.queries/1 [1.5 200509151800]
org.netbeans.modules.projectapi/1 [1.7 200509151800]
org.openide.awt [6.5 200509151800]
org.openide.dialogs [6.2 200509151800]
org.openide.nodes [6.5 200509151800]
org.openide.windows [6.2 200509151800]
org.openide.options [6.2 200509151800]
org.openide.text [6.6 200509151800]
org.openide.explorer [6.3 1 200509151800]
org.openide.actions [6.3 200509151800]
org.openide.loaders [5.5 200509151800]
org.netbeans.api.progress/1 [1.0 200509151800]
org.netbeans.api.xml/1 [1.10 200509151800]
org.openide.io [1.7 200509151800]
org.openide.execution [1.6 200509151800]
org.netbeans.spi.navigator/1 [1.0 200509151800]
org.netbeans.core.output2/1 [1.5.0.1 1 200509151800]
org.netbeans.libs.formlayout/1 [1.0 1 200509151800]
org.netbeans.modules.options.api/0 [1.0 200509151800]
org.netbeans.bootstrap/1 [2.1 200509151800]
org.netbeans.core.startup/1 [1.3 200509151800]
org.netbeans.swing.plaf [1.3 200509151800]
org.netbeans.core/2 [3.0.0.1 200509151800]
org.netbeans.core.execution/1 [1.7 200509151800]
org.apache.tools.ant.module/3 [3.22 200509151800]
javax.jmi.reflect/1 [1.5 200509151800]
org.netbeans.jmi.javamodel/2 [1.18.0 200509151800]
org.netbeans.api.java/1 [1.8 200509151800]
org.openide.src [1.6 200509151800]
org.netbeans.api.mdr/1 [1.2 200509151800]
javax.jmi.model/1 [1.5 200509151800]
org.netbeans.modules.jmiutils/1 [1.3.0.2 2 200509151800]
org.netbeans.modules.mdr/1 [1.3.0.2.2 2 200509151800]
org.openidex.util/3 [3.7 200509151800]
org.netbeans.modules.java.platform/1 [1.5 200509151800]
org.netbeans.core.ui/1 [1.7 200509151800]
org.netbeans.modules.xml.core/2 [1.9.0.4 4 200509151800]
org.netbeans.modules.xml.catalog/2 [1.8.0.4.4 4 200509151800]
org.netbeans.modules.masterfs/1 [1.5 200509151800]
org.netbeans.modules.projectuiapi/1 [1.11.0.5 5 200509151800]
org.netbeans.modules.projectui [1.5.1.5 200509151800]
org.netbeans.modules.project.ant/1 [1.10 200509151800]
org.openide.compat [6.2 200509151800]
org.netbeans.modules.classfile/1 [1.15 200509151800]
org.netbeans.modules.javacore/1 [1.15.0.2.2 200509151800]
org.netbeans.modules.editor.errorstripe.api/1 [2.0.1 1 200509151800]
org.netbeans.modules.java/1 [1.23.0.2.2.2 2 200509151800]
org.netbeans.modules.project.libraries/1 [1.11 200509151800]
org.netbeans.modules.java.project/1 [1.6 200509151800]
org.netbeans.modules.junit/2 [2.17 200509151800]
org.netbeans.modules.editor.util/1 [1.6 200509151800]
org.netbeans.modules.editor.mimelookup/1 [1.1 200509151800]
org.netbeans.modules.editor.fold/1 [1.3 200509151800]
org.netbeans.modules.editor.lib/1 [1.7.0.1 1 200509151800]
org.netbeans.modules.editor.settings/1 [1.2 200509151800]
org.netbeans.modules.editor.settings.storage/1 [1.2 200509151800]
org.netbeans.modules.editor/3 [1.24.1 200509151800]
org.netbeans.modules.javahelp/1 [2.6 200509151800]
org.netbeans.modules.db/0 [1.0 3 200509151800]
org.netbeans.modules.db.core [1.0 200509151800]
org.netbeans.modules.db.sql.editor [1.0.0.3 200509151800]
org.netbeans.modules.utilities/1 [1.19 200509151800]
org.netbeans.modules.utilities.project/1 [1.3 200509151800]
org.netbeans.modules.servletapi/1 [1.7 200509151800]
org.netbeans.modules.httpserver/2 [2.3.0.42 42 200509151800]
org.netbeans.modules.xsl/1 [1.9.0.4 200509151800]
org.netbeans.modules.apisupport.ant [2.27 200509151800]
org.netbeans.modules.favorites/1 [1.9 200509151800]
org.netbeans.modules.kjava.j2meplatform [1.1.2 050916]
org.netbeans.modules.kjava.antext [1.1.2 050916]
org.netbeans.spi.viewmodel/2 [1.7 200509151800]
org.netbeans.api.debugger/1 [1.5 200509151800]
org.netbeans.api.debugger.jpda/2 [2.1 200509151800]
org.netbeans.modules.kjava.j2meproject [1.1.3 050916]
org.netbeans.modules.deployment.sonyericsson [1.0 050916]
org.netbeans.modules.extbrowser/1 [1.7 200509151800]
org.netbeans.modules.editor.completion/1 [1.1 200509151800]
org.netbeans.modules.websvc.clientapi [1.2 200509151800]
org.netbeans.modules.schema2beans/1 [1.12 200509151800]
org.netbeans.libs.xerces/1 [1.6 2.6.2 200509151800]
org.netbeans.modules.j2ee.dd/1 [1.5.0.2 2 200509151800]
org.netbeans.modules.j2ee.dd.webservice [1.1 200509151800]
org.netbeans.modules.j2eeapis/1 [1.4 200509151800]
org.netbeans.modules.settings/1 [1.8 200509151800]
org.netbeans.modules.j2eeserver/3 [1.9 200509151800]
org.netbeans.modules.websvc.websvcapi [1.2 200509151800]
org.netbeans.modules.editor.hints/1 [1.7.0.1 1 200509151800]
org.netbeans.modules.java.editor.lib/1 [1.2 200509151800]
org.netbeans.modules.editor.codetemplates/1 [1.0 200509151800]
org.netbeans.modules.java.editor/1 [1.2 200509151800]
org.netbeans.modules.j2ee.common/1 [1.2 200509151800]
org.netbeans.modules.dbschema/1 [1.0 3 200509151800]
org.netbeans.api.web.webmodule [1.4 200509151800]
org.netbeans.modules.j2ee.api.ejbmodule [1.2 200509151800]
org.netbeans.modules.j2ee.ejbcore [1.1 200509151800]
org.netbeans.modules.j2ee.ejbjarproject [1.1 200509151800]
org.netbeans.modules.servletapi24/1 [2.4 2.4 200509151800]
org.netbeans.modules.kjava.obfuscators.proguard [1.1.2 050916]
org.netbeans.modules.debugger.jpda/2 [1.14 200509151800]
org.netbeans.libs.commons_logging/1 [1.1 1.0.4 200509151800]
org.netbeans.modules.web.jspparser/2 [2.3 200509151800]
org.netbeans.modules.editor.structure/1 [1.9.0.1 1 200509151800]
org.netbeans.modules.xml.text/2 [1.9.0.4 200509151800]
org.netbeans.modules.editor.plain.lib/1 [1.1 200509151800]
org.netbeans.modules.html.editor.lib/1 [1.2 200509151800]
org.netbeans.modules.html.editor/1 [1.2 200509151800]
org.netbeans.modules.web.core.syntax/1 [1.20.0 200509151800]
org.netbeans.swing.tabcontrol [1.4 200509151800]
org.netbeans.spi.palette/0 [1.3 200509151800]
org.jdesktop.layout/1 [1.1 0.7 200509151800]
org.netbeans.core.multiview/1 [1.6 200509151800]
org.netbeans.modules.refactoring/1 [1.12.0.3.2 3 200509151800]
org.netbeans.modules.form/2 [1.17 1 200509151800]
org.netbeans.modules.properties/1 [1.15 200509151800]
org.netbeans.modules.i18n/1 [1.18 200509151800]
org.netbeans.modules.i18n.form/2 [1.16 200509151800]
org.netbeans.modules.apisupport.feedreader/1 [1.0 200509151800]
org.netbeans.core.windows/2 [2.5.0.1 200509151800]
org.netbeans.modules.ant.browsetask [1.9 200509151800]
org.netbeans.spi.debugger.ui/1 [2.6 200509151800]
org.netbeans.modules.debugger.jpda.ui/1 [1.3 200509151800]
org.netbeans.modules.debugger.jpda.ant [1.5 200509151800]
org.netbeans.modules.xml.tax/2 [1.9.0.4.4 4 200509151800]
org.netbeans.modules.apisupport.project [1.9.0.5.4 5 200509151800]
org.netbeans.modules.apisupport.refactoring [1.0.0.5 200509151800]
org.netbeans.modules.tomcat5/1 [1.4 200509151800]
org.netbeans.modules.ant.grammar/1 [1.12.0 200509151800]
org.netbeans.tasklistapi/1 [1.18.0.7 7 200509151800]
org.netbeans.modules.tasklist.core/2 [1.35.0.16.7 16 200509151800]
org.netbeans.libs.jsch/1 [1.1 0.1.20 200509151800]
org.netbeans.modules.kjava.emulators [1.1.2 050916]
org.netbeans.upgrader [4.3 200509151800]
org.netbeans.modules.deployment.webdav [1.0.1 050916]
org.netbeans.modules.java.examples/1 [1.3 200509151800]
org.netbeans.modules.j2ee.genericserver [1.1 200509151800]
org.netbeans.modules.kjava.editor [1.1.2 050916]
org.netbeans.modules.mvd [1.0.2 050916]
org.netbeans.modules.vmd.components.nbmidp [1.0 050916]
org.netbeans.modules.welcome/1 [1.8 200509151800]
org.netbeans.modules.xml.multiview/1 [1.2.0.2 2 200509151800]
org.netbeans.modules.websvc.registry [1.0 200509151800]
org.netbeans.modules.web.struts/1 [1.0 1 200509151800]
org.netbeans.modules.autoupdate/1 [2.14 200509151800]
org.netbeans.modules.updatecenters/1 [1.4 200509151800]
org.netbeans.modules.j2ee.debug/1 [1.1 200509151800]
org.netbeans.modules.kjava.examples/1 [1.1.2 050916]
org.netbeans.modules.ant.freeform [1.6 200509151800]
org.netbeans.modules.j2ee.jboss4/1 [1.1 200509151800]
org.netbeans.modules.kjava.j2meunit [1.1.2 050916]
org.netbeans.modules.image/1 [1.15 200509151800]
org.netbeans.modules.deployment.ftpscp [1.0.1 050916]
org.netbeans.modules.java.freeform/1 [1.2 200509151800]
org.netbeans.modules.web.freeform [1.1 200509151800]
org.netbeans.modules.j2ee.ant [1.4 200509151800]
org.netbeans.modules.xml.schema/1 [1.9.0.4 200509151800]
org.netbeans.modules.java.j2seproject [1.4.0.42 42 200509151800]
org.netbeans.modules.beans/1 [1.15 200509151800]
org.netbeans.lib.cvsclient/1 [1.12 200509151800]
org.netbeans.modules.jmxri/1 [1.0 1 200509151800]
org.netbeans.modules.xml.tools/2 [1.9.0.4.4.4 4 200509151800]
org.netbeans.modules.websvc.core [1.2.0.1.4.4 1 200509151800]
org.netbeans.modules.e2e.end2end/1 [1.0 050916]
org.netbeans.modules.versioning/1 [1.1.1 1 200509151800]
org.netbeans.modules.tomcat5.bundled/1 [1.4 200509151800]
org.netbeans.modules.j2ee.weblogic9/1 [1.1 200509151800]
org.netbeans.modules.clazz/1 [1.17 200509151800]
org.netbeans.modules.j2ee.platform/1 [1.1 200509151800]
org.netbeans.modules.web.project [1.1 200509151800]
org.netbeans.modules.web.examples/1 [1.3 200509151800]
org.netbeans.modules.j2ee.blueprints/1 [1.7 200509151800]
org.netbeans.modules.kjava.j2mejavahelp/1 [1.1.3 050916]
org.netbeans.modules.suggestions_framework/2 [1.13.0.9.16.7 9 200509151800]
org.netbeans.modules.tasklist.docscan/2 [1.21.0.9.16.7 200509151800]
org.netbeans.modules.j2ee.sun.dd/1 [1.3 200509151800]
org.netbeans.modules.j2ee.sun.appsrv/1 [1.0 1 200509151800]
org.netbeans.modules.j2ee.sun.ddui/1 [1.3 200509151800]
org.netbeans.modules.web.jsf/1 [1.0 1 200509151800]
org.netbeans.modules.j2ee.sun.appsrv81/1 [2.2 200509151800]
org.netbeans.modules.e2e.jsr172 [1.0 050916]
org.netbeans.modules.j2ee.earproject [1.2.0 200509151800]
org.netbeans.modules.ant.debugger/1 [1.5 200509151800]
org.netbeans.modules.html/1 [1.17 200509151800]
org.netbeans.modules.websvc.jaxrpc16/1 [1.0 200509151800]
org.netbeans.modules.css/2 [1.9 200509151800]
org.netbeans.modules.diff/1 [1.13.0.42 42 200509151800]
org.netbeans.modules.versioning.system.cvss/1 [1.5.1.42 1 200509151800]
org.netbeans.modules.usersguide/1 [1.17 200509151800]
org.netbeans.modules.java.j2seplatform/1 [1.4.0.2 2 200509151800]
org.netbeans.modules.editor.plain/1 [1.1 200509151800]
org.netbeans.modules.options.editor/1 [1.0 200509151800]
org.netbeans.modules.java.hints/1 [1.8.0.1 1 200509151800]
org.netbeans.modules.j2ee.ddloaders/1 [1.4.0.2.2.4 200509151800]
org.netbeans.modules.web.monitor/1 [1.13 200509151800]
org.netbeans.modules.properties.syntax/1 [1.15 200509151800]
org.netbeans.modules.websvc.dev/1 [1.3.0.1 200509151800]
org.netbeans.modules.web.core/1 [1.22.0.42.2 42 200509151800]
org.netbeans.modules.j2ee.ejbfreeform [1.2.0 200509151800]
org.netbeans.modules.java.navigation/1 [1.0 200509151800]
org.netbeans.modules.javadoc/1 [1.16 200509151800]
org.netbeans.modules.web.jstl11/1 [2.4 1.1.2 200509151800]
org.netbeans.modules.web.debug/1 [2.5 200509151800]
org.netbeans.modules.editor.errorstripe/2 [2.0.1.1 1 200509151800]
org.netbeans.core.ide/1 [1.7 200509151800]
org.netbeans.modules.j2ee.refactoring/1 [1.2.0.42.1 200509151800]
org.netbeans.modules.editor.bookmarks/1 [1.1 200509151800]
|
|
( Sep 19 2005, 07:06:09 PM CEST )
Permalink
|
|
|