473,396 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Why the command button is not being displayed in my emulator?

108 100+
I have already added 5 cammands in a form and I want to add a sixth but It does not display the sixth?

I am posting my codes below.

Expand|Select|Wrap|Line Numbers
  1.  public Command getOk_Lastjourney() {
  2.         if (Ok_Lastjourney == null) {
  3.             // write pre-init user code here
  4.             Ok_Lastjourney = new Command("Last Journey", Command.OK, 0);
  5.             // write post-init user code here
  6.         }
  7.         return Ok_Lastjourney;
  8.     }
  9.  
  10.  
  11. public Form getFrm_planjourney() {
  12.         if (frm_planjourney == null) {                                 
  13.             // write pre-init user code here
  14.             frm_planjourney = new Form("Plan journey", new Item[] { getTxt_From(), getTxt_To(), getCg_usertype(), getCg_userpref(), getCg_searchalgo() });                                    
  15.             frm_planjourney.addCommand(getExt_planjourney());
  16.             frm_planjourney.addCommand(getOk_planjourney());
  17.             frm_planjourney.addCommand(getOk_planFare());
  18.             frm_planjourney.addCommand(getOk_planDistance());
  19.             frm_planjourney.addCommand(getOk_planTime());
  20.             frm_planjourney.addCommand(getOk_planRoute());
  21.             frm_planjourney.setCommandListener(this);                                  
  22.             // write post-init user code here
  23.             System.out.println("Appending.....");
  24.  
  25.             System.out.println("Append completed...");
  26.             System.out.println(frm_planjourney.size());
  27.             frm_planjourney.setItemStateListener(this);
  28.         }                         
  29.         return frm_planjourney;
  30.     }
  31.  
Mar 26 '11 #1
0 1256

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Melissa | last post by:
What is the code to delete a command button from a form? Can the code be run from the click event of the button to be deleted? Thanks! Melissa
6
by: deko | last post by:
I have a several forms that accept user input in a textbox and then take some action based on that input after a command button is clicked. Is it possible issue the command when the user presses...
3
by: Paul Hodgson | last post by:
I have quite a few pages that have multiple command buttons on them - for example one button might be to logout, and others might be to display different segments of the data being shown. The...
2
by: hcs | last post by:
Hello, is it possible to place a command button in a datagrid in vb.net . i am converting a program i have written in access to vb.net. in access i have a subform sent to "continous form" and...
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
2
by: emc_cos | last post by:
I have a very nice parent child relationship happening between a main form and 8 subforms. The main form is the data entry point for a table that holds textual data like names, notes and the...
3
by: afr0ninja | last post by:
Hello! I'm currently working on a form that has several input fields and a subform. What I'm trying to accomplish is that when I first open the form I'd like to have the input fields displayed...
3
by: WiscCard | last post by:
This seems simple enough, but I am having problems. I have a table of customer information. I have a form with various combo boxes displaying unique customer information (in this case, zone and...
2
beacon
by: beacon | last post by:
I have a DAP that I've added a command button to (and by default is set to be coded using vbscript, but I'll use whatever works). The command button uses the onclick method to look at a dropdown...
3
by: extrym | last post by:
I have 2 forms, "Staff" and "Security" (without the ""'s). The Staff form has the following fields: staff_ID staff_name staff_number staff_DOB priority The Security form contains the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.