Use of generics programmiing in J2ME

Where can I find out when Netbeans will support generics programming for mobile J2ME applications?

Post it in the J2ME forum to get better response

Similar Messages

  • When I create a New Folder (on the desktop or in Finder), the system uses the Generic Document Icon instead of the Generic Folder Icon. How can I change this back?

    When I create a New Folder (on the desktop or in Finder), the system uses the Generic Document Icon instead of the Generic Folder Icon. How can I change this back?
    All of a sudden I noticed that most of the folders on my computer were no longer using the folder icon, but the generic document icon. I had to manually change back the icon being used by opening Get Info for each folder and copying and pasting the generic folder icon from some folders that remained unchanged. Now whenever I create a New Folder (right click -> "New Folder"), the icon that shows up is the generic document icon (white page with top right corner turned down). And I have to manually change it so it shows up as a folder in Finder or on my desktop. I don't know why or how this switch happened. All of the folders now on my computer look ok, but I need to change the default so when I create a New Folder it uses the correct icon.
    I have also Forced Relaunch of my Finder and rebooted the system. I downloaded Candybar but am not sure what will fix anything, so I haven't proceeded.
    Anyone know how I can do this? Thanks.

    Anyone?

  • Is it possible for multiple users to use a "generic" account simultaneously without screen sharing?

    Hey and thanks for checking out the thread.
    I am wondering if it is possible to have users use a generic account at the same time without any sort of screen sharing.
    I have set up a generic user account (for example useraccount, password 1234) for users to use in the time before I can set up a custom user name for them. However, I have run into some issues with this.
    When multiple users log on using this generic account, their applications seem to be shared on each screen. In the room with multiple Mac workstations, if someone starts working on Photoshop, Photoshop will open on every one elses screen who is logged on under that generic account.
    Is it possible for users to log on using a generic network account and have their own isolated work environment or is this sort of sharing a feature? I am new to Mac servers and am not sure.
    Thanks for reading the thread.

    That shared-account approach seems impractical for the various reasons you've identified, as well as the inevitable issue of cleaning up the detritus that'll inevitably build up in a shared account, and for the lack of accountability for activities occuring under the shared account for both auditing and security, and sharing directories would tend to introduce obscure conflicts around which-file-version-wins file updates when the same file is used in several places, and would probably be contrary to any per-user application software licensing agreements that might be involved.
    Put another way, get unique accounts created for folks, and work toward the ability to create accounts for arriving folks, and — if it's applicable here — talk to management about getting any per-user software licensing issues sorted out, whether that's having spare copies purchased and ahead or some advanced notice on accounts, or establishing group software licensing where that's available.
    AFAIK, there are tools around which can automate account creation, too.  Either generic, a tool such as Passenger, or it's certainly feasible to script the account creation sequence.
    Trying this shared-access generic-account approach just looks like it can create more work and more hassles and more effort to me...

  • How can I just use a generic Realtek audio driver without "Beats Audio" interfering!?

    Beats audio is terrible! I just want to have a flat EQ with no stupid sound effects enabled. The only way I've been able to do this so far, is to uninstall the audio driver, and just use the generic windows one instead. But what I would like to do is use a generic Realtek audio driver, and completely remove Beats Audio from my computer.
    After uninstalling the audio driver that comes with my laptop, I tried getting a standard Realtek driver from their website. But when I install that, Beats Audio reappears! This is so frustrating! How can I uninstall Beats Audio? I want it gone forever! I can see from searching these forums that this is a common problem. But none of the solutions have shown how to just use a standard Realtek driver without this Beats Audio rubbish.
    Can anyone tell me how this is possible? I'll stick to the generic windows driver if I have to. But it would be nice if I could just use the Realtek drivers as they were meant to be.
    Thanks

    Thanks for the reply. But you've misunderstood the question. I know how to uninstall the sound driver and just use a generic Windows one instead. But what I'm actually looking to do, is install the Realtek audio driver without Beats Audio. Thanks.

  • Use of Generics in ArrayList now mandatory?

    Hi,
    I'm writing a little Applet involving the population of ArrayList (my Java compiler is version 1.6.0_22).
    My code is similar to
    ArrayList vertexPoints = new ArrayList();
    - it compiles OK, but when I try and run the applet, it falls out saying that there is a NullPointerException in the above line. I was under the impression that the use of generics in ArrayLists is not compulsory? Or will I have to
    change the code to something like
    ArrayList<3DPoint> vertexPoints = new ArrayList<3DPoint>():
    Some websites with tutorials give the impression that providing a type is optional, hence my confusion.

    799615 wrote:
    but accessing a method of an array of objects. I'll soldier on....Since you have not provided any more information we can only make educated guesses. Perhaps you are doing something like:
    Foo[] fooList = new Foo[5];
    fooList[0].doStuff(); // NullPointerExceptionWhy? The first line only creates an array. It does not automagically create any Foo objects for you. Therefore the array is full of the deafult value and for Objects (reference types) it is null. So effectively the second line is null.doStuff().

  • What is the use of Generic class in java

    hi everyone,
    i want to know that
    what is the use of Generic class in java ?
    regards,
    dhruvang

    Simplistically...
    A method is a block of code that makes some Objects in the block of code abstract (those abstract Objects are the parameters of the method). This allows us to reuse the method passing in different Objects (arguments) each time.
    In a similar way, Generics allows us to take a Class and make some of the types in the class abstract. (These types are the type parameters of the class). This allows us to reuse the class, passing in different types each time we use it.
    We write type parameters (when we declare) and type arguments (when we use) inside < >.
    For example the List class has a Type Parameter which makes the type of the things in the list become abstract.
    A List<String> is a list of Strings, it has a method "void add(String)" and a method "String get(int)".
    A List<File> is a list of Files, it has a method "void add(File)" and a method "File get(int)".
    List is just one class (interface actually but don't worry about that), but we can specify different type arguments which means the methods use this abstract type rather than a fixed concrete type in their declarations.
    Why?
    You spend a little more effort describing your types (List<String> instead of just List), and as a benefit, you, and anyone else who reads your code, and the compiler (which also reads your code) know more accurately the types of things. Because more detail is known, the compiler is able to tell you when you screw up (as opposed to finding out at runtime). And people understand your code better.
    Once you get used to them, its a bit like the difference between black and white TV, and colour TV. When you see code that doesn't specify the type parameters, you just get the feeling that you are missing out on something. When I see an API with List as a return type or argument type, I think "List of what?". When I see List<String>, I know much more about that parameter or return type.
    Bruce

  • Use HS Generic Connectivity in Oracle Express (XE)

    Can I use HS Generic Connectivity in Oracle Express (XE) or do I need a "full" database?

    I see you've managed to get HS working on Oracle XE. I am trying to do the same, but am hitting a wall when trying to set the hs_fds_connect_info parameter in that Oracle does not seem to recognise it:-
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    ORA-32003: error occured processing parameter 'hs_fds_connect_info'
    LRM-00101: unknown parameter name 'hs_fds_connect_info'
    SQL> show parameter hs
    NAME TYPE VALUE
    hs_autoregister boolean TRUE
    Is there anything I need to set elsewhere to enable this? Any help would be appreciated.

  • Raw use of Generics

    Something which makes me wonder: When I use own generic classes in a raw manner, I usually get the following warning:
    Type safety: The method myMethod() belongs to the raw type Generic. References to generic type Generic<T> should be parameterizedWhen using generic classes from the JDK, e.g. List or Map, I do not get any warning. Where is the trick? :)
    Is it possible to define or annotate methods of a class to not warn on raw usage? For example, when having a method in Generic<T>, that does not operate on T.
    Thanks,
    Stefan

    Well, I did not think, that code would be necessary to understand my question. And after some testing in order to reply here, I think, I may have fallen for an eclipse bug. If so, please let me know :)
    The following example might be semantically useless, but I wanted to point out my issue.
    Say we have the following custom class:
    public class Generic<T> {
         public int size() {
              return 0;
    }And a testing class:
    public class Test {
         public void testList(ArrayList aList) {
              aList.size();
         public void testGeneric(Generic aGeneric) {
              aGeneric.size();
    }Now, in eclipse I get a warning for "aGeneric.size()" but none for "aList.size()". Although, in my opinion, each call operates on a raw type. Using javac from shell does not produce any warning, so it might be eclipse.
    As a note: I know and appreciate warnings been thrown for generics. But in some cases, there is no need for warnings. For example, if a method's signature is independent of the generic's parametrization, hence the method is not "raw".
    If Java 5 already does that, I have to blame eclipse and myself for not thoroughly testing out before posting. :)
    Thanks,
    Stefan

  • When I try to print using Windows 2008 print server I have to use the generic print drivers supplied. If I use the OEM driver the printer locks up. I have tried a HP 4 plus and a Canon Copier.

    When I try to print using Windows 2008 print server I have to use the generic print drivers supplied. If I use the OEM driver the printer locks up. I have tried a HP 4 plus and a Canon Copier.

    A number of vendor drivers written for OS X cannot be used when connecting via SMB to a printer that is shared by Windows. This is due to limitations of the driver.
    In some cases, if you were to enable the LPD Print Service in Windows, you can connect to the share using the same syntax as SMB but on the Mac you would use the LPD as the protocol.
    If you can reply with the brand and model of printer you have then we may be able to provide more information.

  • Can I use a generic leather holster with IPhone?

    Can I use a generic leather holster with IPhone?

    I had the Piel Frama from Cases.com and it is great, a horizontal case with belt clip and magnet closure. I have one on the way, just shipped, for the new iPhone 5:
    http://www.cases.com/piel-frama-602-black-leather-horizontal-pouch-for-apple-iph one-5.html

  • Photos does not display generic title of image (ex: IMG_2234) as actual title. Is there a way to batch rename all photos using the generic title?

    Photos does not display generic title of image (ex: IMG_2234) as actual title. Is there a way to batch rename all photos using the generic title?

    If you launch Script Editor and open the Help menu, you will see the APpleScript Help and a Language Guide:
    To see, which commands an application understands, open the File menu in Script editor and select Open Dictionary.  In the list locate "Photos".
    You will see examples how o script Photos.

  • How to provision an account on OUD LDAP using LDAP generic connector?

    I'm almost a newbie regarding OIM (R2 11.1.2.0.0) and I'm trying to learn it, so I think this is definitely a newbie question (please forgive me).
    At present I'm trying to provision an user from OIM to an Application Instance of Oracle Unified Directory 11gR2 (11.1.2.0.0).
    I've carefully followed the path to install generic LDAP connector (ODSEE/OUD/LDAPV3 Connector 11.1.1.5.0), to create IT Resource and Application Instance and to run Lookup reconciliation jobs.
    No error messages here.
    Then, using OIM Self Service GUI, I've created an user and asked for "Request Accounts".
    After Add to Cart and Checkout, on Cart Details in Catalog I tried to define "Container DN" as pointing to "ou=people,dc=example,dc=com" (using ODSM interface I've previously created ou "people" under the base container "dc=example,dc=com").
    I've seen an Oracle example suggesting to search for "MYOUD~people", where MYOUD is the Application Instance name, but in my case the search doesn't return anything.
    Same thing if I try to write "ou=people,dc=example,dc=com" into "Container DN" field.
    So I've left that field blank and started provisioning anyway but on the Account tab the Status for that operation is since then stuck to "Provisioning" (that doesn't surprises me ...).
    Any hints?
    Which mistakes I've made? Had I forgot something?
    How could I check if OUD server is correctly integrated with OIM?
    I tried to check it using Design Console, too, but I'm not skilled enough with the tool.
    Thanks.

    After reconciliations, Lookup.LDAP.Organization displays the correct value (Code="25~ou=people,dc=example,dc=com") but for Lookup.LDAP.Group the expected value ("cn=grouptest1,dc=example,dc=com") is missing (empty list, that one is the only group I've created so far in my test environment).
    By the way, after having created OU and group I didn't restarted neither OUD server nor OIM server but I don't think it's mandatory to do that and, anyway, at least the OU value is shown.
    Edited by: Torun on Feb 12, 2013 8:14 PM

  • How can I use a generic indifferently in one of the generic's member functions?

    I'm curious about the following situation:
    I'd like to access another generic's private member in a constructor. How can I do that irrespective of the generic's actual type?
    Here's a sample of what I'm trying to accomplish:
    public class C<T>
    private int _hdc;
    // private T _someMember;
    public C()
    this._hdc = CreateHdc();
    public C(C src) // what would be the correct signature here to be able to run the assignment in ::f() below?
    this._hdc = src.hdc;
    function f()
    C<int> a = new C();
    C<string> b = new C(a); // how can I get this to work?
    Do I need to create a non-generic base class to be able to use a differently typed object in the construtor? Or is there some C# construct that will allow me to define an untyped generic parameter and only use the untyped members from that parameter?
    Still people out there alive using the keyboard?
    Working with SQL Server/Office/Windows and their poor keyboard support they seem extinct...

    >>I'd like to access another generic's private member in a constructor.
    You cannot access a class' private member from any other class directly. You could expose a private field through a property or define a public method (or constructor) that sets the private field though.
    >>How can I do that irrespective of the generic's actual type?
    You cannot assign a string field to an int value or the other way around without converting the value to a string/int first.
    A C<int> object always has an int field - the generic class is not really a type of its own but rather a "blue-print" or a template for a type - and you cannot assign this one to a string value.
    Since the C<string> class Always has a string field you need to convert the int value of the C<int> object to a string before you can ever assign the string field to this value:
    C<int> a = new C();
    C<string> b = new C(a.ToString());
    C<int> and C<string> are two completely different types. They are not related to each other and as mentioned you cannot assing a string field to an int value.
    >>Or is there some C# construct that will allow me to define an untyped generic parameter and only use the untyped members from that parameter?
    There is no such thing as "an unyped generic parameter" in C#. T always refers to a type and you must specify the type when you create an instance of the generic type.
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question.

  • Use of generics in the Map interface

    After using Java 1.5 for a while, I've gotten pretty comfortable using generics and the collections framework. Very often, I depend on the new generics-related compiler warnings to guide me when I've made changes to my code. Recently, I missed a fairly subtle bug because of the following issue. Why isn't the get() method in the java.util.Map interface declared as:
    V get(K key);Is there some subtle reason why this method isn't declared to enforce the generic type K for the key value? Likewise for containsKey() and remove() as well.
    Thanks!

    So where is the problem to use K in the first
    place??The cast to K is removed during complilation. It's
    not going to do anything at runtime.
    Just because a reference is of type Object doesn't
    mean it's not a K.
    If I get an Object of unknown type, why should I have
    to down-cast it just so that I can check to see
    whether it is in the Map?
    To state the point I wrote this simple code:
            Map<String,Integer> testMap = new TreeMap<String,Integer>();
            testMap.put("test", Integer.valueOf(100));
            // test the get method
            Integer value = testMap.get("test");
            System.out.println("First value: " + value);
            // test the method with differing parameter
            value = testMap.get(Float.valueOf(2));
            System.out.println("Second value: " + value);The code compiles without any error (so far so good) but the execution of this code results in Exception in thread "main" java.lang.ClassCastException: java.lang.String
         at java.lang.Float.compareTo(Unknown Source)
         at java.util.TreeMap.compare(Unknown Source)
         at java.util.TreeMap.getEntry(Unknown Source)
         at java.util.TreeMap.get(Unknown Source)
         at MapTest.main(MapTest.java:27)So when the Object parameter is allowed (I'm okay with that) why the ClassCastException. A similar approach to the implementations of Lists would be necessary. The current implementation is not satisfactory.

  • What are the runtime advantages of using Java generics?

    I have downloaded Build 31 (courtesy of JavaLobby) and compiled the following program.
    Both methods (main and main2) are compiled to the exact same bytecodes (use javap -c to dump the bytecodes). I believe that the generics version (main) is clearer and cleaner (I regularly use templates in my C++ programs), but for the JVM they are exactly the same thing.
    Why did not the JVM was slightly modified to support without using erasure (the checkcast opcode that is used in compiling (String) it.next() could be eliminated in for (String v : s) )?
    // Compile with: javac -source 1.5 Test15.java
    import java.util.*;
    public class Test15 {
         public static void main2(String[] args) {
              Set s = new TreeSet();
              s.add("one");
              s.add("two");
              s.add("three");
              for (Iterator it = s.iterator(); it.hasNext(); ) {
                   String v = (String)it.next();
                   System.out.println (v);
         public static void main(String[] args) {
              Set<String> s = new TreeSet<String>();
              s.add("one");
              s.add("two");
              s.add("three");
              for (String v : s) {
                   System.out.println (v);

    It is not meant to be faster than the normal approach, it is meant to be easier to implement and more secure.
    Why did not the JVM was slightly modified to support without using erasure
    (the checkcast opcode that is used in compiling (String) it.next() could be
    eliminated in for (String v : s) )?I agree, and more do, that the erasure is somewhat the wrong approach, however, the JSR proposal wants it that way.

Maybe you are looking for

  • My Macbook Pro seems to be having problems updating software or connecting to apples servers for updates.

    Hi, I am having an issue at the moment with my MacBook Pro updating anything! Here is a list of the problems I'm getting. - App store is not loading correctly and cannot navigate or select updates for my programs/apps installed on my computer (see ph

  • Cost status Vs. G/L account number

    Hello, May I know what is the relationship between the cost status (PA0001-ANSVH) and the G/L account number? Or is that depends on configuration only. Thanks a lot! Regards, Anyi

  • How can I tell what songs have been purchased?

    So, I've been going through some guilt and have been replacing copied songs with Apple Store purchases. However, some songs I am clueless about. Is there a way to tell what songs have NOT been purchases through the Apple Store (or, Amazon, for that m

  • How to migrate an ODI scenario from DEV to PROD env

    I have a PROD and DEV environments which are same, however I have now developed a new package/scenario on the DEV and would like to merge it with PROD. One way I generally do is to drop the PROD ODI repositories and then Export , Import from the DEV

  • Change Plant EINE-WERKS field in ME11 to Required

    Hi Gurus, I want to change the Plant field in ME11 from Optional to Required. I changed the settings in OMF1 field selection settings for PIR to Required. But everytime I create ME11 it still does not require me to enter the Plant. Did i miss somethi