I can see your head ... You say "I hope there's a solution." It's funny but I realized that some visitors arrived on this blog after placing a google search, mainly including the keyword '_delete_notify.dat.'
The problem is that the page of this blog that has that keyword does nothing to solve this problem. I decided to tour the java forums and wow! no walkthrough. So I have a little something for you.
What is that file _delete_notify.dat. ?
Weed I do not know ...
No, What you should understand is that:
1 - this issue does not affect your java code
2 - The NetBeans IDE uses as seamlessly deploy OTA when you launch your MIDlet. They thus create a more or less temporary URL that issues the fichier.JAD to your mobile virtual (emulation of the MIDP wireless toolkit).
3 - fichier.JAD says is supposed to be downloaded before execution of the program on the emulator. Notice the line above your error in the console:
Starting emulator in execution mode
Installing result from: http://127.0.0.1:1254/VotreMIDlet.jad
[WARN] [rms] javacall_file_open: _wopen failed for C: \ Documents and Settings \ be \ JavaME-sdk \ 3.0 \ work \ 0 \ appdb \ _delete_notify.dat
- This problem occurs when downloading the emulator to fichier.jad Mobile Wireless Toolkit
4 - Finally, delete_notify is an attribute present in the fichier.jad
So what can you do?
Two smalls things :
- open Fichier.jad with notepad and delete the lines as:
"MIDlet-Install-Notify, MIDlet-Delete-Notify, MIDlet-Delete-Confirm" (Unless you need it)
- Create with notepad an empty file and name it "_delete_notify.dat" ... copy and paste it exactly where the error claim it. it should work.
visit this link OTA: Deployment-ota-over-air-cest-what-ota
Libellés
javaME
(9)
MIDlet
(7)
netbeans
(7)
MIDlets
(6)
Netbeans IDE et SVG
(6)
java
(5)
Push Registry
(3)
jad
(3)
SVG
(2)
Touch Enable
(2)
Visual mobile designer
(2)
WAP
(2)
WAP Push
(2)
web services - soap - uddi
(2)
CRUD
(1)
IMEI
(1)
JPA
(1)
JSP
(1)
Lwuit
(1)
Persistent
(1)
PersistentUnit
(1)
RAD
(1)
SMS
(1)
Servlet
(1)
databinding
(1)
security
(1)
Affichage des articles dont le libellé est netbeans. Afficher tous les articles
Affichage des articles dont le libellé est netbeans. Afficher tous les articles
vendredi 27 mai 2011
Creating a Touch Enabled SVG UI for Java ME Devices
question here for you to test your mobile application in a touch screen. For this reason you need to enable this functionality in the configuration file for the device you use (in our example is the DefaultColorPhone). In this file option is marked FALSE touch_screen ... do not wait until I tell you to TRUE I think it makes sense.
After this change you can test your application. In our case it is a simple application (and unnecessary) that is achieved with the ease of svg included in this NetBeans User Interface. You can notice that the cross walk on the screen? That is, in fact this is cross your finger or that of the user, so you can test your application.
[The application (simple and useless) consist to write a text in the field provided and press the button with your finger so that the label is set to take down the text]
Enjoy!
After this change you can test your application. In our case it is a simple application (and unnecessary) that is achieved with the ease of svg included in this NetBeans User Interface. You can notice that the cross walk on the screen? That is, in fact this is cross your finger or that of the user, so you can test your application.
[The application (simple and useless) consist to write a text in the field provided and press the button with your finger so that the label is set to take down the text]
Enjoy!
Libellés :
java,
javaME,
MIDlet,
MIDlets,
netbeans,
Netbeans IDE et SVG,
SVG,
Touch Enable
dimanche 22 mai 2011
DATABINDING, WEB SERVICE and NETBEANS IDE
DataBinding, Web Services and NetBeans 6.7
Prerequis Prerequisites
- JavaME
- Netbeans Visual Mobile Designer Tool
- Netbeans Web Service Client Wizard tool
databinding Component
The element of NetBeans 6.7 IDE databinding is an easy to use tools to link these variables so that their changes be synchronous. It will produce an architecture of data link in your MIDlet and everything you have to do is to specify who is linked with that and that operations will take place on the variables.
The web service
In this tutorial we'll use databinding to display information from a previously created web service with Netbeans IDE. Our web service is just happy to tell you .... hello.(We'll keep it simple is the principle that counts). and our mobile application allows you to provide your name as parameter web service. A variable will be bound (databinding) to these various transactions and update the result of web service whenever you provide a new setting.
This is an example that you can just enter the operating mode of the tool databinding this in Netbeans.
-> Create a new web project -> select a server (eg tomcat) -> Once you create the project done right click on the node -> choose new file -> web service
-> A file is created -> click on the small bulb notified by Netbeans and add a task to your web service.
Here is my final code example:
------------------------------------------------------------------------------------------------------ -------------------------------------------------- -------------------------------------------------- -
public class bonjourWS {
@WebMethod(operationName = "getMyPass")
public String operation(@WebParam(name = "nomParam")
String nomParam) {
return"Bonjour "+nomParam;
}
}
Right click on the file of your web service and test your web service.
JavaME client
Use the Web service client JavaME netbeans wizard to generate a client in your mobile application. Right click on your mobile project -> web service client JavaME -> ....
After generating the code check if the stub was also generated if the file open. Wsclient that was generated and click "generate stubs"
Application flow
With the tools Visual MIDlet design a simple flow like this
Place items in the NetBeans palette as you see in the image below
For the numbering here is what the work to be done:
1 -> right click -> property -> image -> databinding -> box and select dataSet [DataSet]
-> Enter in dataSet.photo EL Read "this just means that the term" picture "that will allow us to link the image to display to that of a variable with the ticket databinding.
2 -> right click -> property -> text -> databinding -> box and select dataSet [DataSet]
-> entrez dataSet.nom dans "EL Read" ceci signifie juste que c'est le terme "nom" qui nous permettra de lier le texte de cet champ à une variable par le billet du databinding. -> Enter in dataSet.nom EL Read "this just means that the term" name "that will allow us to link the text of the field to a variable with the ticket databinding. C'est sur ce champ de texte que nous utiliserons notre web service. It is on this text field that we will use our web service.
3 - As we did with the addition of the DataSet component in our project done on such a resource to add images in the code.
The application code
Go to the "Source" of the Visual Mobile Designer and add a declaration for an instance of the Stub class that you generate. In my case it corresponds to the code:
-------------------------------------------------------------------------------------------------------------------------------------------
private bonjourWSService_Stub bews = new bonjourWSService_Stub();
-------------------------------------------------------------------------------------------------------------------------------------------
Locate the getValue method and adjust it by inserting a code similar to this one
------------------------------------------------------------------------------------------------------------------------------------------
public Object getValue(String name) throws IllegalStateException {
String a = choiceGroup.getString(choiceGroup.getSelectedIndex());
if (name.equals("nom")) {
/ * Note: The following clause if you use to specify what to do with the element of appointed dataSet.nom databinding * /
try {/ / THIS IS OUR VERY SMALL CODE
return bews.getMyPass(a);
/ * Note: Bews is the subject of the Stub class we instantiated. just by typing "Bews." NetBeans offers a list of methods available for this purpose and among these methods it appears that our web service. . I call it so she and I pass a parameter value of the local variable "a". As you have noticed, a contains the value of field checked (name of the character chosen) * /
catch (RemoteException ex) {
ex.printStackTrace();
}
}
if (name.equals("photo")) {
/ * You can thanks to databinding to match that image to an image provided by a web service, but that's a matter aute .... */
}
}
return null;
}
Test your application
I just wanted to do so ...
Prerequis Prerequisites
- JavaME
- Netbeans Visual Mobile Designer Tool
- Netbeans Web Service Client Wizard tool
databinding Component
The element of NetBeans 6.7 IDE databinding is an easy to use tools to link these variables so that their changes be synchronous. It will produce an architecture of data link in your MIDlet and everything you have to do is to specify who is linked with that and that operations will take place on the variables.
The web service
In this tutorial we'll use databinding to display information from a previously created web service with Netbeans IDE. Our web service is just happy to tell you .... hello.(We'll keep it simple is the principle that counts). and our mobile application allows you to provide your name as parameter web service. A variable will be bound (databinding) to these various transactions and update the result of web service whenever you provide a new setting.
This is an example that you can just enter the operating mode of the tool databinding this in Netbeans.
-> Create a new web project -> select a server (eg tomcat) -> Once you create the project done right click on the node -> choose new file -> web service
-> A file is created -> click on the small bulb notified by Netbeans and add a task to your web service.
Here is my final code example:
------------------------------------------------------------------------------------------------------ -------------------------------------------------- -------------------------------------------------- -
public class bonjourWS {
@WebMethod(operationName = "getMyPass")
public String operation(@WebParam(name = "nomParam")
String nomParam) {
return"Bonjour "+nomParam;
}
}
Right click on the file of your web service and test your web service.
JavaME client
Use the Web service client JavaME netbeans wizard to generate a client in your mobile application. Right click on your mobile project -> web service client JavaME -> ....
After generating the code check if the stub was also generated if the file open. Wsclient that was generated and click "generate stubs"
Application flow
With the tools Visual MIDlet design a simple flow like this
Application screen
Add the DataSet item to the palette in your application and add resources in two images in PNG format in the directory of your project.
Add the DataSet item to the palette in your application and add resources in two images in PNG format in the directory of your project.
Place items in the NetBeans palette as you see in the image below
For the numbering here is what the work to be done:
1 -> right click -> property -> image -> databinding -> box and select dataSet [DataSet]
-> Enter in dataSet.photo EL Read "this just means that the term" picture "that will allow us to link the image to display to that of a variable with the ticket databinding.
2 -> right click -> property -> text -> databinding -> box and select dataSet [DataSet]
-> entrez dataSet.nom dans "EL Read" ceci signifie juste que c'est le terme "nom" qui nous permettra de lier le texte de cet champ à une variable par le billet du databinding. -> Enter in dataSet.nom EL Read "this just means that the term" name "that will allow us to link the text of the field to a variable with the ticket databinding. C'est sur ce champ de texte que nous utiliserons notre web service. It is on this text field that we will use our web service.
3 - As we did with the addition of the DataSet component in our project done on such a resource to add images in the code.
The application code
Go to the "Source" of the Visual Mobile Designer and add a declaration for an instance of the Stub class that you generate. In my case it corresponds to the code:
-------------------------------------------------------------------------------------------------------------------------------------------
private bonjourWSService_Stub bews = new bonjourWSService_Stub();
-------------------------------------------------------------------------------------------------------------------------------------------
Locate the getValue method and adjust it by inserting a code similar to this one
------------------------------------------------------------------------------------------------------------------------------------------
public Object getValue(String name) throws IllegalStateException {
String a = choiceGroup.getString(choiceGroup.getSelectedIndex());
if (name.equals("nom")) {
/ * Note: The following clause if you use to specify what to do with the element of appointed dataSet.nom databinding * /
try {
return bews.getMyPass(a);
/ * Note: Bews is the subject of the Stub class we instantiated. just by typing "Bews." NetBeans offers a list of methods available for this purpose and among these methods it appears that our web service. . I call it so she and I pass a parameter value of the local variable "a". As you have noticed, a contains the value of field checked (name of the character chosen) * /
catch (RemoteException ex) {
ex.printStackTrace();
}
}
if (name.equals("photo")) {
/ * You can thanks to databinding to match that image to an image provided by a web service, but that's a matter aute .... */
}
}
return null;
}
Test your application
The application works fine now you are able to, efficiently handle the tool databinding in your applications to Netbeans mobile ... at least I hope so. Your suggessions are the property came.
[NOTE: The databinding as we have done will be done at application launch. To make it more dynamic set the command "validate" a method that will refresh the variables. Or you use two forms, one for the user's choice and one for displaying the result. .. .. this tutorial is called to be improved at any time] I just wanted to do so ...
Libellés :
databinding,
java,
javaME,
MIDlet,
MIDlets,
netbeans,
Netbeans IDE et SVG,
web services - soap - uddi
RAD with Netbeans. Rapid Application Development, CRUD
"MUST WATCHING" VIDEO. A SIMPLE TECHNIQUE FOR QUICK COMPLETE CRUD SOFTWARE (5 minutes max). IF YOU ARE NEW IN NETBEANS YOU MUST WATCH IT.
YOU CAN WATCH IT AND SHARE IT.
THANKS A LOT.....
dimanche 18 avril 2010
TESTER APPLICATION JAVAME POUR ECRAN TACTILE
il est question ici pour vous de tester votre application mobile dans un environnement à écran tactile. Pour cette raison vous devez activer cette fonctionnalités dans le fichier de configuration de la device que vous utilisez (Dans notre exemple c'est le defaultcolorphone). Dans ce fichier l'option touch_screen est marqué FALSE ... n'attendez pas que je vous dise de mettre TRUE je crois que c'est logique.
Après cette modification vous pouvez tester votre application. Dans notre cas il s'agit d'une application simple (et inutile) qui est réalisé avec les facilité du svg User Interface inclusent dans Netbeans. Vous pouvez remarquez la croix qui se balade sur l'écran ? Voilà, en fait cette croix c'est votre doigt ou celui de l'utilisateur, vous pouvez donc tester votre application.
[L'application simple et inutile consiste en fait à ecrire un texte dans le champ reservé et d'appuyer le bouton avec votre doigt pour que le label d'en bas prenne pour valeur ce texte]
Enjoy !
Après cette modification vous pouvez tester votre application. Dans notre cas il s'agit d'une application simple (et inutile) qui est réalisé avec les facilité du svg User Interface inclusent dans Netbeans. Vous pouvez remarquez la croix qui se balade sur l'écran ? Voilà, en fait cette croix c'est votre doigt ou celui de l'utilisateur, vous pouvez donc tester votre application.
[L'application simple et inutile consiste en fait à ecrire un texte dans le champ reservé et d'appuyer le bouton avec votre doigt pour que le label d'en bas prenne pour valeur ce texte]Enjoy !
Libellés :
java,
javaME,
MIDlet,
MIDlets,
netbeans,
Netbeans IDE et SVG,
SVG,
Touch Enable
vendredi 7 août 2009
SECURE YOUR MOBILE APPLICATION
SECURE YOUR MOBILE APPLICATION
MIDP and Security
It may sometimes be essential to secure your mobile applications designed to protect users against prying. It is for the programmer to ensure that:
- That its program has the necessary permissions for its proper fonctionnemlent
- If the code was compiled to be decompiled it is "fuzzy", confused.
- Identify the application to the user.
To accomplish these tasks I will show you how Netbeans IDE life easier.
Obfuscation
Obfusquation may mean making dark, confused, blurred. Programmers use the term to designate a code hard to read and maintain. There are many free and paid obfuscator soft. The obfuscation as you will understand is used to make the source code difficult to understand and therefore to mitigate the existence of decompiler. an obfuscation only affects the files. class and not on the source files. After an obfuscation weight of the application can be reduce ... what appears to be a good advantage. The obfuscation is to be made before the prévérification in the sequence compilation of your application. Netbeans IDE includes a free obfuscation (Proguard) whose use is very simple.
You just go to the project properties - obfuscating - Obfuscation Level. Whenever you move the gauge you can read the description of the corresponding level of obfuscation. After you just say OK.
Remember that the Obfuscation is when you are in production phase of your program and not being debugging. Always test your application after obfusquer, there may be derangements for example relating to the level of obfuscation that you define.
API access to protected
For its proper functioning program will often use permissions. One example for a right of access to files, the mobile information (File Browser, PIM API) is also the case for a connection to the Internet. The programmer must provide such permissions. The MIDP 1.0 specification does not the permissions if you can say it like that. MIDP 2.0 is quite flexible against. Permissions set in the descriptor of the application (. Jad) through attributes MIDlet-Permissions for required permissions and MIDlet-Permissions-opt for the optional permissions. When the permissions problem is detected when launching an application that it produces an SecurityException.
With Netbeans IDE, adding a permission can be done by going to properties - Application Descriptor - API Permissions - Add - Select your permissions. Depending on whether you check or uncheck "required" or your permission is not considered optional. Netbeans will add the attributes in question. Jad (application descriptor)
-
Everything goes as before the application specified the rights (permissions) and it wishes to have clarified the identity of the user through the use of digital certificate.
Signature of the application
A certificate is like the card application identity, the link between the physical entity (author) and the virtual entity (the application). the standard most often used to produce the X509 certificates.
We will use Netbeans IDE for signing our application. To do this we find in the Properties - Signing - Keystore - Alias. There are several areas to protect, select the certificate for the domain that fits your goals:
- Minimum all permissions are denied (OTA is a result of a failure).
- Trusted: all are accepted without permissions of the user intervension
- Untrusted: permissions granted after agreement of the user
Then export the key to the emulator to test your application.
Choose the field and click OK. Now your application is signed. The certificate was exported to the emulator for your application to be tested. Indeed, if your device does not recognize the certificate there is no valid reason to achieving the installation. You can create your own certificates (where you put your personal information for the signature) to open keystores manager. Then follow the steps as presented in the diagram below. (Note: Step 7 is not required)

The award of this certificate produced a jad having the following attributes (color)
-------------------------------------------------- -------------------------------------------------- ---------------------------------
MIDlet-1: PIM Browser Example, / org / netbeans / desktop / resources / dir.png, pimbrowserexample.PIMBrowserExample
MIDlet-Certificate-1-1: MIICYTCCAcqgAwIBAgIESn8frjANBg .. [number!] ... etc.
MIDlet-Jar-RSA-SHA1: BLSTv7epKRxVrFCmAcBIBsXRXg .. [number!] ... etc.
MIDlet-Jar-Size: 73547
MIDlet-Jar-URL: VotreMIDlet.jar
MIDlet-Name: Visual Designer Custom Components
MIDlet-Permissions: javax.microedition.pim.ContactList.write, javax.microedition.pim.ContactList.read,
... etc.
-------------------------------------------------- -------------------------------------------------- ---------------------------------
If you have not export the certificate in the emulator, when running you get an error message like:
-------------------------------------------------- --------------------------
Starting emulator in execution mode
Installing result from: http://127.0.0.1:1254/VotreMIDlet.jad
[WARN] [rms] javacall_file_open: _wopen failed for C: \ Documents and Settings \ be \ javame-sdk \ 3.0 \ work \ 0 \ appdb \ _delete_notify.dat
*** Error ***
A problem occurred during application from deploying http://127.0.0.1:1254/VotreMIDlet.jad
Reason:
The content provider certificate issuer C = Cameroon; ST = State, L = Location, O = Greenspirit; univa1109 OR =, CN = benycertif is unknown.
-------------------------------------------------- --------------------------
This message tells you clearly that the certificate is not recognized, in other words your application has an identity card which does not permit. add your certificate through the wireless toolkit that it is recognized. just like you do with your browser. But the "_delete_notify.dat" WARNING can have another cause : Try to see here: http://greensspirit.blogspot.com/2011/05/warn-rms-javacallfileopen-wopen-failed.html
This post has quickly explained the possibilities of securing your MIDlets and showed you how to do it easily with Netbeans IDE.
that's that....
MIDP and Security
It may sometimes be essential to secure your mobile applications designed to protect users against prying. It is for the programmer to ensure that:
- That its program has the necessary permissions for its proper fonctionnemlent
- If the code was compiled to be decompiled it is "fuzzy", confused.
- Identify the application to the user.
To accomplish these tasks I will show you how Netbeans IDE life easier.
Obfuscation
Obfusquation may mean making dark, confused, blurred. Programmers use the term to designate a code hard to read and maintain. There are many free and paid obfuscator soft. The obfuscation as you will understand is used to make the source code difficult to understand and therefore to mitigate the existence of decompiler. an obfuscation only affects the files. class and not on the source files. After an obfuscation weight of the application can be reduce ... what appears to be a good advantage. The obfuscation is to be made before the prévérification in the sequence compilation of your application. Netbeans IDE includes a free obfuscation (Proguard) whose use is very simple.
You just go to the project properties - obfuscating - Obfuscation Level. Whenever you move the gauge you can read the description of the corresponding level of obfuscation. After you just say OK.
Remember that the Obfuscation is when you are in production phase of your program and not being debugging. Always test your application after obfusquer, there may be derangements for example relating to the level of obfuscation that you define.
API access to protected
For its proper functioning program will often use permissions. One example for a right of access to files, the mobile information (File Browser, PIM API) is also the case for a connection to the Internet. The programmer must provide such permissions. The MIDP 1.0 specification does not the permissions if you can say it like that. MIDP 2.0 is quite flexible against. Permissions set in the descriptor of the application (. Jad) through attributes MIDlet-Permissions for required permissions and MIDlet-Permissions-opt for the optional permissions. When the permissions problem is detected when launching an application that it produces an SecurityException.
With Netbeans IDE, adding a permission can be done by going to properties - Application Descriptor - API Permissions - Add - Select your permissions. Depending on whether you check or uncheck "required" or your permission is not considered optional. Netbeans will add the attributes in question. Jad (application descriptor)
-
Everything goes as before the application specified the rights (permissions) and it wishes to have clarified the identity of the user through the use of digital certificate.
Signature of the application
A certificate is like the card application identity, the link between the physical entity (author) and the virtual entity (the application). the standard most often used to produce the X509 certificates.
We will use Netbeans IDE for signing our application. To do this we find in the Properties - Signing - Keystore - Alias. There are several areas to protect, select the certificate for the domain that fits your goals:
- Minimum all permissions are denied (OTA is a result of a failure).
- Trusted: all are accepted without permissions of the user intervension
- Untrusted: permissions granted after agreement of the user
Then export the key to the emulator to test your application.
The award of this certificate produced a jad having the following attributes (color)
-------------------------------------------------- -------------------------------------------------- ---------------------------------
MIDlet-1: PIM Browser Example, / org / netbeans / desktop / resources / dir.png, pimbrowserexample.PIMBrowserExample
MIDlet-Certificate-1-1: MIICYTCCAcqgAwIBAgIESn8frjANBg .. [number!] ... etc.
MIDlet-Jar-RSA-SHA1: BLSTv7epKRxVrFCmAcBIBsXRXg .. [number!] ... etc.
MIDlet-Jar-Size: 73547
MIDlet-Jar-URL: VotreMIDlet.jar
MIDlet-Name: Visual Designer Custom Components
MIDlet-Permissions: javax.microedition.pim.ContactList.write, javax.microedition.pim.ContactList.read,
... etc.
-------------------------------------------------- -------------------------------------------------- ---------------------------------
If you have not export the certificate in the emulator, when running you get an error message like:
-------------------------------------------------- --------------------------
Starting emulator in execution mode
Installing result from: http://127.0.0.1:1254/VotreMIDlet.jad
[WARN] [rms] javacall_file_open: _wopen failed for C: \ Documents and Settings \ be \ javame-sdk \ 3.0 \ work \ 0 \ appdb \ _delete_notify.dat
*** Error ***
A problem occurred during application from deploying http://127.0.0.1:1254/VotreMIDlet.jad
Reason:
The content provider certificate issuer C = Cameroon; ST = State, L = Location, O = Greenspirit; univa1109 OR =, CN = benycertif is unknown.
-------------------------------------------------- --------------------------
This message tells you clearly that the certificate is not recognized, in other words your application has an identity card which does not permit. add your certificate through the wireless toolkit that it is recognized. just like you do with your browser. But the "_delete_notify.dat" WARNING can have another cause : Try to see here: http://greensspirit.blogspot.com/2011/05/warn-rms-javacallfileopen-wopen-failed.html
This post has quickly explained the possibilities of securing your MIDlets and showed you how to do it easily with Netbeans IDE.
that's that....
mercredi 5 août 2009
PIMP YOUR MOBILE SVG USER INTERFACE
PIMP YOUR MOBILE SVG USER INTERFACE
[sorry for english mistake]
About Netbeans and SVG
Netbeans IDE give you a simple way for using SVG API in your mobile application. By using SVG tool include in Netbeans IDE, SVG User Interface look very simple to be implemented. in fact Netbeans have two tools for doing that, SVG Components and SVG Form Components. But the design of these components may not satisfy you if you like high quality design. In this tutorial, I want to show you how you can add your own SVG component in Netbeans palette and use it in your application without any problem.
Make your SVG file out of Netbeans
You can find many SVG editor software on the web. For mobile designing you can use Ikivo animator or Mobile Designer Beatware like you can see in this image.
If you use Mobile Designer Beatware (I think it's the same for Ikivo) the simple thing you have to do is to drag and drop image on the work space and then convert that image to button by right clicking. After that you have to rename the "Button1" by "button_1". you have the possibility to animate your new button like you want. For example one of my button will grow when
the cursor move on.
[according to the software you use try to read the help for achieving this thanks]
Don't forget that when you will export your SVG file, the profile MUST BE SVG Tiny 1.1.
I have also made a simple SVG animation that i will add to Netbeans palette.
You can download the 2 SVG animation of this tutorial here.
-----LINK------
but.svg is the animation file for les button and gspirit.svg is the simple file logo's animation .
Work with Netbeans IDE
Put that two SVG files on your Netbeans mobile application project. Right Click the new SVG file node - copy - right click on the Netbeans palette - click palette manager - select Form components - right click - paste item. Your new item will appear. Now you can use it like all other Components deliver by Netbeans SVG Form Components palette.
Use visual Mobile Designer tool and add SVG Form item on your work space.
Now create new SVG file on your project. name it "formCustom.svg" Drag and drop the new SVG form component item that you have just add to palette.
Drag and drop the but.svg file project node on the Netbeans SVG editor space. Now you must have something like this.
Go to formCustom.svg file source code and everywhere you see
(x is an integer exemple:) cut "id="button_x" and paste it at the end of tag. you must have this result:
-----------------------------------------------------------------------------------------------------------------------------------
<use x="-73" y="-50" xlink:href="#ipod.png"
transform="translate(-28.37,48.81) scale(0.625,0.65625)" id="button_1">
------------------------------------------------------------------------------------------------------------------------------------
Do it for all the three buttons.
now go to your Visual Mobile Designer file - drag and drop the formCustom.svg file over the SVG form item on your work space. If evrething is good you must see your new button be recognized by Netbeans IDE.

I have already write tutorial in this blog where i explain how to manipulate svg button. try to read this tutorial.
You can Run the project and see how your new SVG UI can be more attractive than UI which only use SVG elements present in Netbeans.

NOTE: You can do the same with the SVG menu component, then you will substitute "button_x" to "menu_x" ... something like this.
Give your comments and suggestions.
Thank for reading.
[sorry for english mistake]
About Netbeans and SVG
Netbeans IDE give you a simple way for using SVG API in your mobile application. By using SVG tool include in Netbeans IDE, SVG User Interface look very simple to be implemented. in fact Netbeans have two tools for doing that, SVG Components and SVG Form Components. But the design of these components may not satisfy you if you like high quality design. In this tutorial, I want to show you how you can add your own SVG component in Netbeans palette and use it in your application without any problem.
Make your SVG file out of Netbeans
You can find many SVG editor software on the web. For mobile designing you can use Ikivo animator or Mobile Designer Beatware like you can see in this image.
the cursor move on.
[according to the software you use try to read the help for achieving this thanks]
I have also made a simple SVG animation that i will add to Netbeans palette.
You can download the 2 SVG animation of this tutorial here.
-----LINK------
but.svg is the animation file for les button and gspirit.svg is the simple file logo's animation .
Work with Netbeans IDE
Put that two SVG files on your Netbeans mobile application project. Right Click the new SVG file node - copy - right click on the Netbeans palette - click palette manager - select Form components - right click - paste item. Your new item will appear. Now you can use it like all other Components deliver by Netbeans SVG Form Components palette.
Now create new SVG file on your project. name it "formCustom.svg" Drag and drop the new SVG form component item that you have just add to palette.
Drag and drop the but.svg file project node on the Netbeans SVG editor space. Now you must have something like this.
(x is an integer exemple:
-----------------------------------------------------------------------------------------------------------------------------------
<use x="-73" y="-50" xlink:href="#ipod.png"
transform="translate(-28.37,48.81) scale(0.625,0.65625)" id="button_1">
------------------------------------------------------------------------------------------------------------------------------------
Do it for all the three buttons.
now go to your Visual Mobile Designer file - drag and drop the formCustom.svg file over the SVG form item on your work space. If evrething is good you must see your new button be recognized by Netbeans IDE.
You can Run the project and see how your new SVG UI can be more attractive than UI which only use SVG elements present in Netbeans.
Give your comments and suggestions.
Thank for reading.
Libellés :
java,
javaME,
MIDlets,
netbeans,
Netbeans IDE et SVG,
Visual mobile designer
Inscription à :
Articles (Atom)


