peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

As stultuske pointed out you use equals that you either have to write or you can reuse something that already exists. For example Arrays.equals(Object[] a, Object[] a2)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

What you need to use is setSelectedIndex(int elementNum,boolean selected) where you provide element number/index and boolean as TRUE.Do not forget to make your ChoiceGroup as Choice.EXCLUSIVE

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

As separated applications

  • packageApp1
    • MidletApp1
    • OtherClassesApp1
  • packageApp2
    • MidletApp2
    • OtherClassesApp2
  • packageApp3
    • MidletApp3
    • OtherClassesApp3

Merge

  • superPackage
    • packageApp1
      • MidletApp1
      • OtherClassesApp1
    • packageApp2
      • MidletApp2
      • OtherClassesApp2
    • packageApp3
      • MidletApp3
      • OtherClassesApp3

Remove other two midlets and provide launch menu

  • superPackage
    • packageApp1
      • MidletApp1
      • OtherClassesApp1
        • MenuToCallOnInactiveMidlets
    • packageApp2
      • OtherClassesApp2
    • packageApp3
      • OtherClassesApp3

Once you stop thinking about them as separated midlets and start thinking about them as just option menu or different functions you get different image. JME same as Java(standard Java enables you to call upon external applications and execute them from command line, or directly through use of some libraries, but it is dirty business and ot of your application eco-system) wasn't exactly build to invoke other applications. So best/easiest solution is to merge them in single application and provide a way how to call on each of them (shared menu) and perhaps provide default started application.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Merge them together, keep as separated packages, decide which to launch be default, strip other two from midlet declaration and provide a menu to launch them
If this is not clear just ask, I will try to explain

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

To know exact exception would be most desired. Nevertheless I expect you failed to include db driver in classpath once you called your application from command line

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Also a hint goes from your teacher you may want to use only one array like

Month[] months = {new Month(31, "January")
                , new Month(28, "February")
                , new Month(31, "March")
                , new Month(30, "April")
                , new Month(31, "May")
                , new Month(30, "June")
                , new Month(31, "July")
                , new Month(31, "August")
                , new Month(30, "September")
                , new Month(31, "October")
                , new Month(30, "November")
                , new Month(31, "December")
        };


        for (Month each : months) // loop to display number of days in month
        {
            each.printMonth();
        }

with inner class

static class Month {
        private int days;
        private String month;

        public Month(int days, String month) {
            this.days = days;
            this.month = month;
        }

        public int getDays() {
            return days;
        }

        public String getMonth() {
            return month;
        }

        public void printMonth() {
            System.out.println(month + " has " + // displays number of days in month
                    days + " days ");
        }
    }
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Only way to do is through setItemCommandListener(). You need implement new Command and then listen when this is triggered and execute whatever logic you need

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

As I said, missing plugin.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Did you installed m2eclipse plugin? Otherwise you need to be specific on where you are having problems to follow video

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

And what has to do with Java? Besides we do not like to see discussions on illegal activities even if you are trying to tell us that it is your equipment.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Have look at A Custom List Component for MIDP 2.0 which discuss how to work with CustomItem and then there is Adding Custom Items to MIDP 2.0 Forms that show you how to add your new CustomItem to form if you want/have reason to add it as part of concept instead of being stand-alone component

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@mali.sandhya2please create new thread instead of hijacking other person question. Your problem description is weak

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It is sad how people can be lazy or ignorant (any popular service that is accessible to public programatically is likely have some Java API available). This could have been sorted by simple Google search. You would have found immediately facebook-java-api and facebook-java-api examples

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

i created a list of name using j2me.
its like looking for a contact number in our phone that has a textfield to search.
i want that when i type the beginning of the name i want to highlight the name that corresponds the search name..

You cannot do it with provided List. However you can create your own list implementation through CustomItem

is it possible to have keypressed() in list..

No only selections works here, but again if you create list with CustomItem you can add listeners to handle this

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I think the punishment is too harsh. And he said he DID post a link to the website! I think you should un-ban him and apologize! abelLazm is a nice person, and I do not see a serious offence, if he posted the link to the original web-site! And whats up with downvoting people who are defending him! You are so mean! abelLazm is a great contributer to this forum! Just look at his points:
Total Up-Votes Received: 161
Total Down-Votes Received: 7
And I think this should also tell us something about unfair copyright laws, but I will not go there ;)

There was opportunity to learn from first mistake. We can't take responsibility for someone who is negligent to his position and involvement in community, ignoring community rules and do same thing again.
Beside abellazm is arrogant enough to come back create multiple accounts and continue posting same way as he did in his original account, also he is lame enough to up vote these accounts to get him self more reputation. So do not give me lectures about this not being fair.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Expecting that user record is in some way associated with database name only thing you need to do is build connection string that can be done simply as

public String buildConnectionString(String dbName){
    return new StringBuilder("jdbc:mysql://localhost:3306/").append(dbName).toString();
}
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Don't copy and paste your rules here .... just tell me what is brick marketing and it will be over ?

I don't know, but I guess that you cannot tell my match about Java garbage collection. Difference is that in my own words I can explain this and if necessary I can provide additional links, where you are not able to give general idea/explanation without direct quoting.

Do you get now what is the main difference?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Then how can I check my current infraction points(if I have any)?

1) Quick check, does your user info on any of the posts sports something like this "Infractions: 1/1 (5)" ? (not at the moment)
2) Detailed check, top of the page right side "Control Panel" or by clicking on your user name of any of the posts

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You need to look for java decompiler, however be aware that you will not get exact code as you do see in java file

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It is my understanding that these JSTL tags are used without need for html table tags like here. (If I'm wrong somebody correct me, didn't use JSTL since university :) )

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Directly fron Java Oracle tutorials - How to Make Dialogs and Java: JOptionPane Dialog Examples Part 1 - Basic one of the first results when searching for java joptionpane example

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

NETBEANS7.0 is the best IDE so far

O really?!
NetBeans 7 same as version 4 few years back is buggy. And if you have no conclusive answer just to shout "xyz IDE is the best" then it is better if you stay quite.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@mKorbel you forgot to mention another major IDE, Intellij IDEA by jetbrains (my tool of choice ;) )

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Applet only comes to my mind ...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Not with JME.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Not possible. Push registry is for messaging (advertising based on geo location) or timer based (reminder) application "wake" up. Inability to schedule an application to start on device start-up is basically downfall of JME

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Would have been nice if you posted/explained what is actual problem or error message and not just generic request.
Since we do not know how you created table we can guess that you either declared "id" value to be sequence/auto increment in which case providing NULL value is OK, but it is not necessary. If "id" is not sequence then error is obvious as id is NULL.
For few tips on sql:update you can check this article

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Project seems to be active on java.net. They also have mailing list so I would suggest to ask there. http://java.net/projects/jxta-jxse

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Quick notes how to install Java can also found in this post

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Why not use jQuery and look up some nice library to help you with it, something like jqPlot?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Should we have a hall of fame.
>> We already award every month one active and helpful member with "Featured Poster" badge, that used to be visible with every post (still visible if you roll-over member's name next to a post or visit member profile)

That shows the mods and admin community.
>> Already exists, but not many people are aware of it http://www.daniweb.com/forums/showgroups.php

Those who sponsor to daniweb and posters who are active all the time.
>> Sponsor badge visible in same way as "Featured Poster", activity of members can be checked through "Top Members by Rank" on top of the page

Should we?
>> Do we need anything else? Yes, people contributing material code snippets/tutorials/news stories/product reviews and less lazy students dumping their assignments on the site expecting to be magically solved for them without them doing anything else. Plus I would say less "know it all types" that tries to reply stuff they have no understanding/ study background

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

How many profiles you had banned so far? :) Hundreds? thousands?

Not sort of info interesting for me, so I do not keep record and you can expect same from rest of moderator team. Forum without spammers is our aim.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Instead of using array where you have to know size or provide elements from which it have to be created you can use other collections like List, Vector, ArrayList that change their size as you add or remove elements

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Is there really a need for iterator? You can loop through list as

List<PersonalData> personalDataList = new ArrayList<PersonalData>();
//list populated by "add" or directly from DB results
for(PersonalData personalData : personalDataList){
  personalData.getName();
  personalData.getAddress();
}

As why no data visible on page? Difficult to say since you posted only few lines...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No need if we talking about 4 people. It would be different if we spoke of thousands or millions.
However you need to understand that at the moment you are just on local/private network. This wouldn't work if your friends try to access it remotely.

arshi9464 commented: This person has a lot of knowledge about programming. Hats off +2
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1. Next time make sure you post in correct section, in we have sub section called JSP(Java Server Pages) that holds info on Java web development
2. To call tomcat from other computer then it is installed you need to use the IP of the computer installed, port number if different then 80 followed by application name.
Example: given that Tomcat installed on 192.16.1.44 with default port number you need to call 192.16.1.44:8080/amar/arsh.html . This will be accessible if the given pc hasn't got some port restriction or if pc or Tomcat is off

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I was replying to the post immediately before my last one, so in that sense I think it was on topic, if not specific to the original posting of this thread.

Still of topic as question was asked why it is running slower on Windows. Down voting my re-primal that you are going off topic is just lame...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@rubberman better read properly before you reply.

@1ML no idea why emulator is running so slow for you I have no problem on my pc (dual boot win 7 / ubuntu 10.10). However I do use IntelliJ instead of Eclipse. PS: You sure that partition was deleted? Windows normally moves boot-loader to it self, but it wouldn't wipe existing partition unless you told it to do. To recover boot-loader check this document

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Quick google search for "jme get imei" and you would have found this article with references for nokia, sony ericsson, motorola, samsung and siemens

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

So why not share your solution? You may help somebody in future with same/similar problem

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

OK that is fine, now go to File >> Import >> Import Existing project and then navigate to the location of the project. Once this done you should see it in Eclipse

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Did you place it into your workplace on laptop for Eclipse to easily recognise?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes original problem description was badly written.

I hope you have Android SDK setup on your laptop and relevant profiles available for Eclipse.
You have to make sure you copy whole project folder from the pc to laptop, not just files and folders you created as each IDE add its own file that are created behind scene. If not sure make a zip file and post it here so somebody can check it for you

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No, because you failed to mention for the computer from which you want to connect what sort of user rights you have, or if you able install any applications on this computer...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

A) Setup proper network with access privileges
B) Use share directory provided by 3rd party something like Dropbox

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You almost there

for (int counter=0; counter<20; counter++)	
		{

			int x = 1+ randomNumber.nextInt(10);
			if(even.evenNumber(x))
			  System.out.println("Number is even");
			else
			  System.out.println("Number is odd");
			
		}
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1. getQuestion is part of your constructor GameScreen, it should be outside
2. getQuestion is missing round barckets

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@ZeroCul you are just 2 years behind with your reply. Congratz on reopening old dusted record...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

James was faster...

BTW why you messing with drap and drop if you do not know basics? Your teacher will easily discover you used IDE to create application and you may loose marks because of it...