Creating j2me GUI s just like j2se in Netbeans
I am a j2se programmer. I know nothing about j2me. Can we design GUIs for mobile apps just like we do in j2se application? I saw one option in netbeans visual midb(forget it) to design GUI. but i couldnt create effectively as i do in j2se.
can anyone explain how to create GUI in netbeans for mobile app?
Yes, you are right.
From the time I posted my question I tried to make a similar GUI in NetBeans and I noticed that NetBeans included the following code for the GUI:
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(UpToolbar, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
.addGap(10, 10, 10)
.addComponent(tabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
.addContainerGap())
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(UpToolbar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(tabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 182, Short.MAX_VALUE)
.addContainerGap())
pack();I just adapted the code to my initial project and it works much more better.
Still the icon pics look very poor, like I am using a 800x600 resolution. They look so old...And the fonts used for the menus are bolded...
I will look on the forum for a way to make the GUI use some normal fonts.
Thank you, camickr , for your response ;)
Similar Messages
-
How to create a TEST form just like in workshop
Hello
I am using WL Workshop 7.0.2. and Java 1.4. Could anyone pls tell me how to create
my own test form like in Workshop.
Is it possible to have a HTML client without any java class or JSP in between
the HTML form and the webservices(jws). In workshop I know that knexServlet is
somehow resposible for creating the test form in work shop.
Any example which has used webservices created by workshop and has a HTML form
has a client.
Any HELP will be greatly appreciated.
Thanks
madhuThanks Anurag,
Could you point me to some rich JSP client example, (not the HelloWorld or MazeDisplay).
preferably which takes a XML as request.
Thanks
madhu
"Anurag Pareek" <[email protected]> wrote:
Madhu,
To call a webservice, a client using HTTP should be able to send a SOAP
request to the server hosting the webservice. Generally, it is complicated
to code the SOAP request manually and hence clients use a proxy on their
side to do the job for them. For a Java client, this job is taken care
of by
the client proxy JAR file which can either be downloaded from the Test
View
web page or generated using the <clientgen> ant task.
Requests from the Test View page are given special treatment, and there
is
special functionality provided in the server to help in iterative
development using the Test View.
For any client other than the Test View such special wiring is not
available. Hence you need to use a JSP or a Java class on the client
side.
Regards,
Anurag
"madhu" <[email protected]> wrote in message
news:3ee8cca3$[email protected]..
Hello
I am using WL Workshop 7.0.2. and Java 1.4. Could anyone pls tell mehow
to create
my own test form like in Workshop.
Is it possible to have a HTML client without any java class or JSPin
between
the HTML form and the webservices(jws). In workshop I know thatknexServlet is
somehow resposible for creating the test form in work shop.
Any example which has used webservices created by workshop and hasa HTML
form
has a client.
Any HELP will be greatly appreciated.
Thanks
madhu -
Create path or outline just like text
hi , For text i can easily use TYPE / Create Outlines
but what about Create Path Around Object or PNG with Transparancy ?
i know about using Pen Tool and create Path , but it takes much time and my final work not perfect as i want
is there any tips to create path around and image object ?Arioman,
For vector artwork (if you refer to that by Object), you may use the Appearance palette flyout and Add New Stroke (you may add multiple ones with desired Stroke weight and Colour (and Transparency>Opacity maybe set to 0%). You may drag the new stroke below the fill to have only the outer half of it appear (so you may have to double the stroke Weight).
For raster images with transparency, you may redraw the outer shape with the appropriate tools (Pen Tool, Ellipse Tool, whatever suitable), or you may Auto/Live Trace the outer shape (you may need to expand), and then apply whichever Stroke Weight, Colour, whatever, desired.
For raster images with just a rectangular border, you may Object>flatten Transparency, then Ungroup and Flatten Transparency and apply the stroke to the path that was a Clipping Mask; you may use Object>Offset Path by half the Stroke Weight if you want the stroked path to be outside the image. There may be other ways in the newest version(s). -
I used to be able to import a Camera Archive in the previous version of iMovie. How can I do the same with the latest iMovie version (10.0.5)? Is it even possible?
Thanks!Thanks for the tip QuickTimeKirk. Out of curiosity: does this mean that it is no longer possible to create camera archives in the latest version of iMovie? Or with the changes in the iMovie platform, is it enough with simply dragging the AVCHD package into your laptop?
-
Hi, I'm making a midlet, and I want to create a gui. i think the best way for making this is using canvas, but I can't find any tutorial/example. The gui would be something like this:
http://bladecoder.net/hof/images/sf1.png
ah, and I cannot use j2mepolish.
Thanks for your help.Please start with the link mentioned above. After discovering the APIs you need you can find numerous examples of custom UIs.
A couple of years ago there was a great example of creating a a custom UI framework on the web. I cant seem to find it now. The closest thing I could find now is http://www2.sys-con.com/itsg/virtualcd/Java/archives/0606/cordrey/index.html
Visit the Nokia and SE developer site. SE, especially, always has good examples.
I use the low level API for all my J2ME work. As an aside, you can look at some of my "weekend" projects. Here are some screenshots.
http://mobox.cliqcafe.com/files/1439/rim-5.jpg
http://mobox.cliqcafe.com/files/1831/Screenshot0036.jpg
http://hostj2me.cliqcafe.com/files/2382/Screenshot0619.jpg
Grab the source if you like, but learn the basics first. I would not want you to inadvertently pick up any of my "bad habits." If you have time to waste, and dont mind lax production:), you can watch video demo an custom ui here:
http://hostj2me.cliqcafe.com/files/1877/yipi.wmv -
CS6. I cant duplicate lighting effects using an alt key, just like in CS3. I dont want a new light i want to duplicata an existing one that i created.
Nie mogę duplikować zaprogramowanego efektu świetlnego za pomocą altu tak jak w poprzednich wersjach.http://java.sun.com/j2se/1.4.1/docs/api/java/io/FileOutputStream.html#FileOutputStream(java.io.File, boolean)
Kind regards,
Levi -
hello guys,
I want to create a vi such dat when I press a button on the frontpanel of the vi it opens the same vi in another window..and I should be able to work on this new window also able to work on the previous window without closing it...Just like opening a new window when using the internet explorer....
I try to make my vi a reetrant vi but when I click the new window button on my vi..a new clone windows open up that I can control but the previous windows is not accessible not I close the current window...I want a way that I can acces both vi window and d operation of one will not affect the other like when the indicators are updating in one window the other window will not update...
Thank you...
Solved!
Go to Solution.The picture attached shows what i want to achieve as a vi or executable...The new window button opens a clone of the vi, but the previous window can not be operated on until i close the clone window...i want to be able to work on both window at any time without closing one of them....The vi was design in labview 2010
Attachments:
ni.jpg 66 KB
window vi.vi 8 KB -
Creating INCLUDE, just like REPORT prog.?
Hi Experts,
One simple question, pls. clarify ma that,
In the process of VA01-Sales Order creation, I need to do not allow to create/save that doc. if PO#, MATNR, Batch r already existing in DB! in this case, I need to write logic in SAPMV45A, I found the corresponding User exit, so, I wanna insert my code as INCLUDE my_prog_code.
So, to write INCLUDE, Is it just like Report prog.? like, SE38>my_name>create--->Type->INCLDE selection?
Or any other things I hv to consider, to write a INCLUDE?
thanqThat is correct way to create an INCLUDE program. Just make sure that you correctly call the routines in the user exit and give reference of this program.
Here is a pseudo logic.
FORM USEREXIT_MOVE_FIELD_TO_VBAK.
perform validate_DATA(<your include program name>).
ENDFORM.
Your code for routine VALIDATE_DATA will be placed in the include program.
Message was edited by:
Ashish Gundawar -
Creating an Internet Shortcut to the desktop just like Internet Explorer.
Hi!
I am running FF24 and would like to create a shortcut of a website to the desktop just like Internet Explorer. I have read a solution that has me resizing FF and feel that it is clumsy and unproductive.
Does anyone know of an Add-On to this great feature in IE?
Not only for Windows XP but for 7 & 8, as well.
Surprised that the smarties at Mozilla did not put any thought into this.
TIA :)Hi jscher2000,
Thanks for your timely response!
I installed and configured it, double checked settings, but it does not create anything on the desktop in XP. Very strange.
Any suggestions welcome.
Cheers,
Compumind :) -
How can you create subtitles just like in movies?
Hi, I recently purchased Final Cut Pro X and I was wondering how to create subtitles just like in movies. Thanks
Does FCP X support subtitles like you see in Blu-ray or DVD? I.e. subtitles for the narrative?
I know you can put titles but subtitles would be something that needs to keep "changing". -
BAPI/FM to create idoc based from another(Just like WE19)...
Hello Experts,
Are there any BAPI to create a new idoc based on an existing one just like the functionality of WE19?
Thank you guys!But looks like this function module is opening CO07 in SAPGUI...i actually need to call the function module from web application and create the add-on order. Please advise.
Besides..i can pass the KTEXT value during the function module call itself right? can you pls tell me the reason why i need to force this in the enhancement spot?
Regards,
Kumar.
Edited by: Kumar Kasavaraju on Aug 28, 2009 11:02 PM -
How to create a gui pf status and guititle in module pool programming?
hi frnds,
how to create a gui pf status and gui title in module pool programming?
my problem is i created a screen and wen execute the screen by a tcode.am nt able to activate SAVE BACK EXIT CANCEL COMMANDS?.how to do this can any one explain in detail procedure?
plz gve step by step process.Hi,
For Title:In PBO...just write
SET TITLEBAR 'ZTITLE'.
double click on 'ZTITLE'....give whatever title u want...save it...activate...and check...reward points if useful...
PF means FUNCTION CODE
ex; set pf-status 'zrstatus'.
double click on the zrstatus expand the application server ,
at the time of execution the default menu(ie system,help),application toolbar buttons like enter,help etc and function keys(by default there will be no function keys)as are there on the normal
will appear on the screen.
Details:
PF-STATUS is used to set the GUI Status of a screen, ie you can control the options on your menu bar, application toolbar, the function keys assigned to various options etc.
Implementing the status for a screen can be done in 2 ways:
1) Create the GUI status using the object list of the program or by using the transaction SE41. Then, assign it to the screen using SET PF-STATUS statement.
2) Create the GUI status by means of forward navigation, ie, use the SET PF-STATUS 'XXX' statement where 'XXX' is the name of the GUI status and double click on it to create it.
Status names can have a maximum of 20 characters.
After assigning a GUI status to a screen, this is inherited to all subsequent screens. In order to have a different status for each of the subsequent screens, you have to set a separate status for each screen.
In transaction SE41,
1) Give the program name and the status name and click on the Create button.
2) Go to 'Function keys' and expand.
3) On top of the save icon type SAVE, on top of the back icon type BACK, on top the the exit icon type EXIT etc ie on top of all the icons that you want to use, type the respective names that you want to give.
Whatever you have typed now becomes the function codes of these icons and can be used in your program.
For example you have a screen 100.
In the 'Element list' tab of the screen, give "ok_code" as the name where "OK" is the type of screen element. Activate screen.
The flow logic for the screen looks like this:
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
Create the modules STATUS_0100 and USER_COMMAND_0100 in the main program by simply double clicking on them.
The code for these modules can be something like this:
MODULE status_0100 OUTPUT.
SET PF-STATUS 'Example'. "Example is the name of the GUI status
ENDMODULE.
MODULE user_command_0100 INPUT.
CASE ok_code.
WHEN 'SAVE'.
"call a subroutine to save the data or give statements to save data.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE.
Regards,
Shiva Kumar (Reward If helpful) -
Building a simple J2ME chat client (for own J2SE-based server) Threading Qs
Hi!
I am making my own simple chat / messenger service to use between a couple of friends over GPRS.
On the server side i have made a multi threaded TCP server that opens a new thread for each connecting client and stores these socket connections in a hashtable for access to send data between each thread.
So when a client logs on to the server, the server sends a printwriter message to all other clients informing them of what client connected, and the clients can put the username in its out-database. then the clients can send messages to each others using a simple, self build protocol.
All connection between clients/server happens over a simple printwriter on in/out streams.
Problem is: it works perfectly most of the time.... However, sometimes a message is mysteriously lost when transferred from the server to a client. Transfer from client to server works flawlessly. I am thinking that it might have something to do with the client side threading, or slow network transfer casuing a TCP read error.
Client structure is as following:
start-> Midlet class -> (press connect to server) -> new Client class (impl runnable) -> new thread(this) -> void run() sets up all connections and writers, waits in a while loop for messages from server and takes action according to message type. -> Button(send) uses output stream to send a message to server.
Do anyone have any suggestions on what I must consider when making a client that will simultaniously be able to listen for data from server as well as send data to server over 1 socket and slow mobile connection without causing any trouble?
More info can be provided if necessary.
Thank you!Building a simple J2ME chat client (for own J2SE-based server)a. i would like to say that this is a bl00dy brilliant idea. i mean ~ its been done before but building one yourself is quite thrilling.
b. are u using java 4 or java 5. ?
sometimes a message is mysteriously lost when transferred from the server to a client. Transfer from client to server works flawlessly.are you using push registry to recieve incoming connections.
i recommend using a StreamConnectionNotifier connection instead of just a socket connection. you could send your data (xml/plain text) just like a stream (tcp ofcourse). if you want to know how to use a StreamConnectionNotifier connection, here's how
try{
// listen at local port 789
StreamConnectionNotifier notify = (StreamConnectionNotifier) Connector.open(http://:789);
// infinite loop to get incoming connections
for(;;)
StreamConnection stream = notify.acceptandOpen(); // return a stream connection when a connection is made
InputStrean mystream = stream.openInputStream();
while(mystream!=-1)
mystream.read();
....cheers -
In full screen mode how can i use keyboard shortcut just like
recently i used adobe cs 5.1 version and some problem are there which problem was not in cs 3 and cs 4 in advance version why this problem kindly tell me the solve which may be i dont know
my problem is, in photoshop 3 screen mode are there 1-standard screen mode, 2- full screen mode with menu bar and 3- full screen mode
in 3- full screen mode ---- in this view window how can i go to image-adjustments-brightness/contrast through using only keyboard shortcuts just like ALT+I then A then C = brightness/contrast menu will come
any body please solve my problem
thank U very muchChris, he means the windows-only ALT+letters shortcuts, not brightness contrast in particular.
RA, this is your third thread on the topic, please do not create multiple threads...
http://forums.adobe.com/thread/957264
and http://forums.adobe.com/thread/957168 -
Creating a GUI on a remote device.
I would like to create a GUI on a simple CCD touchscreen.The screen is effectively a dumb terminal that is connected to a pc using a proprietary data interface. The GUI needs to be created and rendered in an off screen buffer on the server with the data that constitutes repaint regions being sent to the LCD display.
I have thought about overriding the RepaintManagerI but that doesn't work when the display on the sever is not visible. I have thought about creating a custom GraphicsDevice and GraphicsConfiguration but I haven't had any success with this approach.
Has anyone done anything similar? Could anyone suggest a solution to this problem? I would be grateful for any help.
Thanks.Hi -
I have a similar problem.
I have a small LCD controlled via the serial port. I have written a simple Java class to set or clear individual pixels on the display (it makes use of Java COMM to communicate with the hardware).
How would I go about turning this simple class into something that Java could use to render graphics on?
Obviously I could start writing a whole set of graphics routines for drawing lines, boxes, glyphs etc myself, but this is clearly wasted effort. How can I make use of the existing code to render graphics on a non-standard display?
Thanks for any suggestions!
Maybe you are looking for
-
Linked PDF files won't open in Preview
I have a a few Table of Content PDF files linked to a large number of PDF files in subdirectories (the old AGES library system). When I try to open the linked file in Preview i get an error saying that I don't have permission to open this file. Ado
-
I Was updating my i5 phone and it shows picture of iTunes and plug what am I to do? i Can't use my phone and shutting on and off won't help.
-
Failover not working each time
We have a 2 node rac on solaris 10, oracle 11.1.0.7. We are executing the tests from the Rac Assurance Metalink test plan and find that our service and select query correctly fail over when we create an instance failure for database, for asm or when
-
Hi, In recent we are getting shared pool exhaust issue. I am interested to know which objects occupying more share pool.Do we have any queries which can show the most space occupied objects in shared pool do we have any monitoring tools(or queries) u
-
Hi I wonder if it is possible to add JButton in a JList? Or how can I produce a list of JButtons? Each button represents a person (an object), is there anyway to add listener to the buttons so i can get the person thats represnted by the button? I ca