How to make a simple polynomial calculating component

Hi all,
I am looking for a component which could calculate a polynomial formula like shown in the attached picture. I think I must make my own component but I don't know how to do that.
Best,
Antoine
Attachments:
component.jpg ‏23 KB

In Multisim, you can use ABM components. "ABM_CURRENT" or "ABM_VOLTAGE" works in the form of current or voltage, respectively.

Similar Messages

  • JDialog Problem: How to make a simple "About" dialog box?

    Hi, anyone can try me out the problem, how to make a simple "About" dialog box? I try to click on the MenuBar item, then request it display a JDialog, how? Following is my example code, what wrong code inside?
    ** Main.java**
    ============================
    publc class Main extends JFrame{
    public Main() {
              super();
              setJMenuBar();
              initialize();
    public void setJMenuBar()
         JMenuBar menubar = new JMenuBar();
            setJMenuBar(menubar);
            JMenu menu1 = new JMenu("File");      
            JMenuItem item = new JMenuItem("About");      
            item.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ae) {
                  // About about = new About(this);
               // about.show();
            menu1.add(item);
         menubar.add(menu1);
    public static void main(String args[]){
         Main main = new Main();
    }** About.java**
    =============================
    import java.awt.*;
    import javax.swing.*;
    public class About extends JDialog{
         JPanel jp_top, jp_center, jp_bottom;
         public About(JFrame owner){
              super(owner);
              setDefaultCloseOperation( DISPOSE_ON_CLOSE );
              Image img = Toolkit.getDefaultToolkit().getImage(DateChooser.class.getResource("Duke.gif"));          
              setIconImage( img );
              setSize(500,800);
              Container contentPane = getContentPane();
             contentPane.setLayout(new BorderLayout());           
             contentPane.add(getTop(), BorderLayout.NORTH);
              contentPane.add(getCenter(), BorderLayout.CENTER);
              contentPane.add(getBottom(), BorderLayout.SOUTH);
              setResizable(false);
               pack();            
               setVisible(true);
         public JPanel getTop(){
              jp_top = new JPanel();
              return jp_top;
         public JPanel getCenter(){
              jp_center = new JPanel();
              return jp_center;
         public JPanel getBottom(){
              jp_bottom = new JPanel();
              jp_bottom.setLayout(new BoxLayout(jp_bottom, BoxLayout.X_AXIS));
              JButton jb = new JButton("OK");
              jp_bottom.add(jb);
              return jp_bottom;
    }

    Code looks reasonable except
    a) the code in the actionPerformed is commment out
    b) the owner of the dialog should be the frame
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",
    see http://homepage1.nifty.com/algafield/sscce.html,
    that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.

  • How to make a simple Quiz?

    Could anyone help me with some hints and maybe sample code (or tutorial :)) how to make a simple quiz, with multiple
    answers choices, and a score function.
    //D

    You could for example do it like this:
    import java.io.*;
    class Quiz
    public static void main (String [] args)
    BufferedReader in = new BufferedReader (new InputStreamReader(System.in));
    System.out.println("SUPERQUIZ");
    System.out.println("How many legs does a horse have?");
    System.out.println();
    System.out.println("1");
    System.out.println("2");
    System.out.println("3");
    System.out.println("4");
    int answer = Integer.parseInt(in.readLine());
    if (answer == 4)
    System.out.println("The answer is correct");
    else
    System.out.println("The answer is incorrect");
    This is just a basic program, hope you understand it (hopefully it works).
    �sbj�rn

  • How to make Javascript access standard JSF component

    Hello all,
    I'm in need of a proper javascript code that access standard jsf component.
    Like we do for html tags;
    if( el.tagName.toLowerCase() != 'select')
    I need to do the same thing for a jsf tag i.e; <h:selectOneMenu>. How to make javascript access <h:selectOneMenu> like it does with <select> tag ? Please let me know asap. Extremely sorry if the question is kind of stupid....cause I'm a beginner for JSF environment.
    Any sort of help, suggestion or advice would highly be appreciated.
    Thanks in advance.

    Ummmm, I may be off the beaten path, but by the time your javascript is called the h:selectOneMenu would be a select tag within the dom. You should be able to reference that tag as you normally would.

  • How to make a simple Pc Speaker sound output?

    Hello,
    how can a make a simple PC Speaker sound output like the standard beep for errormessages?
    Can anybody help me?
    Thanks,
    Alex

    Use this:Toolkit.getDefaultToolkit().beep(); or this: System.out.print("\0007");
    System.out.flush();

  • How to make a Simple NIO Scalable Server?

    I want to learn NIO for a project, but first want to start out simple. I want to figure out how to send a string across from clients to a server using NIO. I tried looking up stuff, but got caught in the terminology and such. How can I make a simple scalable server (agh tripple S) to send strings across? (like a chat server or something). All I know is I need to use a Selector and some Threaded loops to do stuff.
    I found http://gee.cs.oswego.edu/dl/cpjslides/nio.pdf and tweaked the code to make (what I thought was) a simple server, but I do not know how to make client code or even whether or not my Server code works.
    This is what I have so far:
    import java.io.*;
    import java.nio.*;
    import java.nio.channels.*;
    import java.nio.channels.spi.*;
    import java.net.*;
    import java.util.*;
    import static java.lang.System.*;
    public class NIOTest {
    public static void main(String args[]) throws Throwable
    try {
    new Thread(new NIOTestServer()).start();
    } catch(Exception e) {
    e.printStackTrace();       
    class NIOTestServer implements Runnable
    final Selector selector;
    final ServerSocketChannel serverSocket;
    int chatPort=9990;
    public NIOTestServer() throws Exception
    selector=Selector.open();
    serverSocket = ServerSocketChannel.open();
    serverSocket.socket().bind(
    new InetSocketAddress(chatPort));
    serverSocket.configureBlocking(false);
    SelectionKey sk =
    serverSocket.register(selector,
    SelectionKey.OP_ACCEPT);
    sk.attach(new Acceptor());
    public void run()
    try
    while(!Thread.interrupted())
    selector.select(); //Blocks until atleast one I/O event has occured
    Iterator<SelectionKey> it=selector.selectedKeys().iterator();
    while(it.hasNext())
    dispatch(it.next());
    catch(Throwable lol)
    lol.printStackTrace();
    void dispatch(SelectionKey k)
    Runnable r = (Runnable)(k.attachment());
    if (r != null)
    r.run();
    class Acceptor implements Runnable
    { // inner class to accept the event
    public void run()
    try
    SocketChannel c = serverSocket.accept();
    if (c != null)
    new Handler(selector, c);
    catch(IOException ex) {ex.printStackTrace();}
    import java.io.*;
    import java.nio.*;
    import java.nio.channels.*;
    import java.nio.channels.spi.*;
    import java.net.*;
    import java.util.*;
    import static java.lang.System.*;
    final class Handler implements Runnable {
    final SocketChannel socket;
    final SelectionKey sk;
    ByteBuffer input = ByteBuffer.allocate(1024);
    ByteBuffer output = ByteBuffer.allocate(1024);
    static final byte READING = 0, SENDING = 1;
    byte state = READING;
    Handler(Selector sel, SocketChannel c) throws IOException
    socket = c; c.configureBlocking(false); //makes it non blocking
    // Optionally try first read now
    sk = socket.register(sel, 0);
    sk.attach(this);
    sk.interestOps(SelectionKey.OP_READ);
    sel.wakeup();
    boolean inputIsComplete()
    return input.hasRemaining();
    boolean outputIsComplete()
    return output.hasRemaining();
    void process()
    CharBuffer buf=input.asCharBuffer();
    buf.flip();
    out.println(buf);
    public void run()
    try {
    if (state == READING) read();
    else if (state == SENDING) send();
    catch (IOException ex) { ex.printStackTrace(); }
    void read() throws IOException
    socket.read(input);
    if (inputIsComplete())
    process();
    state = SENDING;
    // Normally also do first write now
    sk.interestOps(SelectionKey.OP_WRITE);
    void send() throws IOException
    socket.write(output);
    if (outputIsComplete()) sk.cancel();
    }again this is a rough incomplete code test.

    See http://forum.java.sun.com/thread.jspa?forumID=536&threadID=5277053. You can use Telnet as a test client. When you come to write your own client, use java.net, not java.nio.

  • How to make a simple C program universal from the command line???

    Hi all,
    I've developed widgets that use a simple C program. I had no clue how to make it universal. Apple documentation is all about big projects to be developed inside Xcode and so on, but I don't understand even the introductory remarks...
    As far as I've read, I have to make a binary for PPC and a binary for i386, and then merge it with lipo. Fine. I get my PPC binary from:
    gcc-4.0 prog.c -o prog_ppc -lm -arch ppc -arch ppc64
    Now, it seems that I have to use:
    gcc-4.0 prog.c -o prog_i386 -lm -arch i386
    The latter command didn't work until I added -L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/ at the end. With this, it creates a binary file, but with the following message:
    /usr/bin/ld: warning fat file: /usr/lib/system/libmathCommon.A.dylib does not contain an architecture that matches the specified -arch flag: i386 (file ignored)
    and I guess this is quite an issue if I don't have the common math functions, no?...
    Can somebody help me? I googled a lot on this, and found nothing helpful.
    Cédric

    Thanks, it helped me. I googled a bit to build up my Makefile, and this is what I got.
    CC= gcc-4.0
    CFLAGS= -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386
    LDFLAGS= -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -lm
    TARGETS= skycalc.fixed.c
    all: $(TARGETS)
    $(CC) $(TARGETS) $(CFLAGS) $(LDFLAGS) -o skycalc_universal
    Thanks again.

  • How to make a simple control value comparison a user event?

    Hey everyone,
    I am trying (with no luck) to figure out how to make an event out of a simple control comparison without having to put the controls inside a while loop to be polled or in the event structure.
    For example; how do I make an event when 'numerical control 1' equals 'numerical control 2'?
    I know that I could have these inside a while loop with the event structure and then wire the comparison to a boolean, then reference the boolean's value change event.  But rather, I would like to create an event for the comparison without the boolean and outside the while loop such that the loop doesn't have to run through the comparison each time, and doesn't have to poll the controls and bool.
    Thanks for the help

    Attached is a simple user event structure that I was thinking about.  Using this you can decouple the control from the comparison, it just works on valye comparisons.  Since it uses the event structure there is no polling and is very CPU friendly.  I have allowedfor the comparison to be linked to the "Value 1:value change event" and the compare button true event.  I hope this is what you were looking at.  Also since it is a user event which is dynamically registered you can register/unregister it at will durring execution making it a flexable event handler.  It might be alittle buggy because I have spent about 3 minutes developing it (particularry when passing values into the event structure there might be a state issue from the data flow so local variables are a better choice)
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA
    Attachments:
    CompareEventvi.vi ‏49 KB

  • How to make a simple poll

    hi,all
    I would like to make a simple poll in a page of an application,it only concludes two choices: yes and no.when i press the submit button I can see the percentage displayed as pie chart.how to do this ?any suggestions?

    Hi,
    Step 1: Create Table structure and trigger for Sequence. I have not give code to create Sequence. That you can create with DEMO_POLL_SEQ name
    CREATE TABLE "DEMO_POLL"
    (     "ID_PK" NUMBER,
         "RESULT" NUMBER,
         CONSTRAINT "DEMO_POLL_PK" PRIMARY KEY ("ID_PK") ENABLE
    CREATE OR REPLACE TRIGGER "BI_DEMO_POLL"
    before insert on "DEMO_POLL"
    for each row
    begin
    if :NEW."ID_PK" is null then
    select "DEMO_POLL_SEQ".nextval into :NEW."ID_PK" from dual;
    end if;
    end;
    ALTER TRIGGER "BI_DEMO_POLL" ENABLE;
    Step 2:
    Create a new region on apex type Form with table and select "Result" column and make its type Radiogroup and create static lov
    make sure after you create a region go to branch and put clear cache to the same page. so it clears the page item value.
    Step 3:
    Create another region with chart and paste following SQL query
    SELECT NULL LINK,
    REPLACE(REPLACE(RESULT,1,'YES'),0,'NO') LABEL,
    COUNT(RESULT) VALUE
    FROM DEMO_POLL
    GROUP BY RESULT
    ORDER BY RESULT
    Hope this would workout for you.
    And yes you can add me as in your friend list.
    Thanks,
    Jaydip Bosamiya,
    +91 - 76000 23053
    [http://jbosamiya.blogspot.com|http://jbosamiya.blogspot.com]

  • How to make a simple JPEG flash light to dark on PDF?

    Hello all. Thank you for reading this.
    Please have a look at this online magazine:
    http://viewer.zmags.com/publication/1d272263#/1d272263/1
    Notice how the "Click Here To Read" is flashing?
    Well I'm wondering how do I create that effect? I'm sure it can't be as confusing as I'm trying to learn. Basically I'm creating a online magazine, and I want a JPG/PNG File to flash from dark to light. Is this an effect I add on Adobe InDesign before I convert my (rather large 1,500 page) magazine to a PDF? Or do I open this in Adobe Acrobat X as a PDF and tweak some setting there?
    Or does this file have to be converted to a Shock-wave Flash file? Because I have NO EXPERIENCE in flash files, they seem so confusing.
    Please help if you can!

    Salah Fadlabi wrote:
    Yes that correct
    just export the page logo flashing to (SWF) than place again on indesign document to export with remaining pages to PDF.
    Hello, thank you for your help. When I place the swf file onto the correct InDesign page, I upload it onto the page viewer online, but I see that rather large Flash icon. If you click on the image below you'll be able to see it. I've print screened it.
    ?1
    Am I exporting it incorrectly? I've exported it as a interactive PDF.
    EDIT: I may be confusing you, but this is my general process. I create a magazine. Export it as a PDF, and upload it on a pdf internet viewer called FlipViewer.
    But now, some clients want certain pages/logos etc flashing. So now I need to figure out (for the next magazine that will be uploaded soon), how to make certain logos/badges etc flash. So when I follow your instructions, I upload it as a PDF, then when I open that PDF, I get that flash icon that says "...click to activate", when I click that, then the SWF effects appear over the document. But when I upload that PDF document to FlipViewer, it just appears as a unclickable link. And other magazines that have been uploaded on flipviwer has flashing logos, automatically when you open up the document. What am I doing incorrectly?
    Thank you so much for your help!

  • How to make a simple animation within text area ?

    Hi guys ,I am getting familiar with the Flash animations so I would appreciate a bit of help.
    I am trying to make a simple animation within the text input area i.e.
    1.FAN BASE
    2.FA   NBASE
    What I want is the letter N to move slowly towards letter B.I have done motion tweening but it doesn't work - either the whole text is moving left right  or the letter N is simply skipping to the second position without smooth animation.( there's no error on motion tween by the way) any ideas ?
    Thanks.

    best would be you would create your sentence "fanbase" and break down the single letters into objects by selecting the whole textfield and pressing CTRL+B, convert everyone of them into single movieclips or graphics and tween them accordingly.

  • How to make a simple form layout without ad RAD tool

    I'm trying to make a simple form, but I'm not finding the right layout manager to make the components goes in Y axis. The BoxLayout could solve my problem, if it does not fill all the panel with the components.
    My SCCEE:
    public class TestSimpleForm extends JPanel {
        JLabel nameLbl = new JLabel("Name:");
        JTextField nameField = new JTextField();
        JButton okBtn = new JButton("OK");
        JButton cancelBtn = new JButton("Cancel");
        public TestSimpleForm() {
         add(nameLbl);
         add(nameField);
         add(okBtn);
         add(cancelBtn);
        public static void main(String[] args) {
         JPanel panel = new TestSimpleForm();
         // if i make it a boxlayout panel, the text field size goes huge
    //     panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
         JFrame f = new JFrame();
         f.setContentPane(panel);
         f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         f.setSize(400, 600);
         f.setLocationRelativeTo(null);
         f.setVisible(true);
    }

    wellington7 wrote:
    ..My SCCEE:While I don't know what an SCCEE is, I am very familiar with the SSCCE, and..
    public class TestSimpleForm extends JPanel {
    .....this code is surely not an SSCCE.
    Running tool: Java Compile
    /media/disk/projects/numbered/all/TestSimpleForm.java:1: cannot find symbol
    symbol: class JPanel
    public class TestSimpleForm extends JPanel {
                                        ^
    /media/disk/projects/numbered/all/TestSimpleForm.java:3: cannot find symbol
    symbol  : class JLabel
    location: class TestSimpleForm
        JLabel nameLbl = new JLabel("Name:");
        ^
    /media/disk/projects/numbered/all/TestSimpleForm.java:4: cannot find symbol
    symbol  : class JTextField
    location: class TestSimpleForm
        JTextField nameField = new JTextField();
        ^
    /media/disk/projects/numbered/all/TestSimpleForm.java:6: cannot find symbol
    symbol  : class JButton
    location: class TestSimpleForm
        JButton okBtn = new JButton("OK");
        ^
    /media/disk/projects/numbered/all/TestSimpleForm.java:7: cannot find symbol
    symbol  : class JButton
    location: class TestSimpleForm
        JButton cancelBtn = new JButton("Cancel");
        ^
    /media/disk/projects/numbered/all/TestSimpleForm.java:3: cannot find symbol
    symbol  : class JLabel
    location: class TestSimpleForm
        JLabel nameLbl = new JLabel("Name:");
                             ^
    /media/disk/projects/numbered/all/TestSimpleForm.java:4: cannot find symbol
    symbol  : class JTextField
    location: class TestSimpleForm
        JTextField nameField = new JTextField();
                                   ^
    /media/disk/projects/numbered/all/TestSimpleForm.java:6: cannot find symbol
    symbol  : class JButton
    location: class TestSimpleForm
        JButton okBtn = new JButton("OK");
                            ^
    /media/disk/projects/numbered/all/TestSimpleForm.java:7: cannot find symbol
    symbol  : class JButton
    location: class TestSimpleForm
        JButton cancelBtn = new JButton("Cancel");
                                ^
    /media/disk/projects/numbered/all/TestSimpleForm.java:17: cannot find symbol
    symbol  : class JPanel
    location: class TestSimpleForm
         JPanel panel = new TestSimpleForm();
         ^
    /media/disk/projects/numbered/all/TestSimpleForm.java:22: cannot find symbol
    symbol  : class JFrame
    location: class TestSimpleForm
         JFrame f = new JFrame();
         ^
    /media/disk/projects/numbered/all/TestSimpleForm.java:22: cannot find symbol
    symbol  : class JFrame
    location: class TestSimpleForm
         JFrame f = new JFrame();
                        ^
    /media/disk/projects/numbered/all/TestSimpleForm.java:24: cannot find symbol
    symbol  : variable JFrame
    location: class TestSimpleForm
         f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                                    ^
    13 errors
    Exited: 256

  • How to make a simple 'press  any key...'?

    I need to make a simple statement that will pause the screen, until you hit any key or click the mouse? 'press any key to continue...'
    is there a way to do it without any popup boxes?
    thanks

    System.in.read() will block until a key is hit (unfortunately the enter key counts produces 2 chars on windows...)
    So my suggestion is:
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    System.out.println("Press a key to continue....");
    br.readLine();HTH,
    Radish21

  • How to make a simple sound component

    Hi
    I'm creating component that takes this parameter:
    - Source: (the linkage name of the sound file imported into
    the library) Of Type String, and the variable name is V_Source.
    (the value is S1(Linkage name of the Sound)).
    - Button: (the button name that will play that sound) Of Type
    String, and the variable name is V_Button.
    (the value is B1(instance name of the Button)).
    and in the
    first frame of the component I put this code:
    var MySound = new S1();
    MovieClip(parent)["this.V_Button"].addEventListener(MouseEvent.CLICK,PlaySound);
    function PlaySound(event:MouseEvent) {
    MySound.play(0,0);
    1) I have this Bug:
    TypeError: Error #1010: A term is undefined and has no
    properties.
    at Untitled_fla::Symbol1_1/frame1()
    2) I want to remove the class S1() from the definistion and
    but the this.V_Source so that I can use it with any class name I
    put in the parameter of the component and not only for S1
    so the code
    will be something like this:
    var MySound = new this.V_Source
    MovieClip(parent)["this.V_Button"].addEventListener(MouseEvent.CLICK,PlaySound);
    function PlaySound(event:MouseEvent) {
    MySound.play(0,0);
    But I have this Bug:
    TypeError: Error #1007: Instantiation attempted on a
    non-constructor.
    at Untitled_fla::Symbol1_1/frame1()
    Note: I tried to change the Parameter Type in the component
    definition window for the (V_Source parameter) to Class but it
    keeps returning to String type I do not know why.
    can any body help me create this component.
    thanks.

    Use this:Toolkit.getDefaultToolkit().beep(); or this: System.out.print("\0007");
    System.out.flush();

  • How to make a simple Plugin system?

    hey guys, first let me say I see very much hostility here, and I'm not here to annoy anyone, so if you don't feel like answering then simply don't.
    I want to design a simple Plugin System for my application. I think what I need is a bit of reassurance and redirection if I'm making wrong assumptions.
    here is the stages I see:
    1. the system has a HashMap<String,PluginTypeData> that holds types of plugins, and the folder of the application that hold the libraries files for the plugins among other details.
    (this would be saved in the application configuration file)
    2. once the application starts/on request the system would load the libraries into the memory.
    3. in each library there should be a file that holds the textual fully qualified name of the classes that this plugin would require to operate properly.
    4. the objects in the library would have to be familiar to the application, therefore they must implement or extend a known base object from the application, and once loaded a reference to that known base object is assigned to the new object.
    5. and then if I want to load a GUI component from the plugin I just get it from the reference.
    lets start with how does that sound? I would like to get a feed back, just a serious one please, that may help me understand any mistakes I might be doing, and not just to understand that I'm wrong....
    Thanks in advance,
    Adam Zehavi.
    Edited by: Adam-Z. on Dec 19, 2009 12:34 AM

    well, English is not my native, so I find it hard to describe, sometimes I feel the lack of words to describe what I want, and I have to take a break, and use a dictionary to find the right word to use, and sometimes these are basic words that I miss so I'm sorry if I'm not clear.
    And this will be required for every single plugin in exactly the same way? If not then each plugin should include a factory.Yes, they are all saved the save way, every plugin has a method that create an instance of a basic class J2MeDataChunk.
    The types of the data chunks are defined on the J2Me platform and only there.
    The reason that they are defined on the J2Me platform is because of the first limitation of the J2Me platform.
    1. I cannot import into the build path of the project any external libraries.Therefore in the future when I would like to add more chunk types, I would have to add them into the J2Me project as classes, and not as a jar in the build path, but the plugin would have to refer to the J2Me project and to know which chunk type it is going to edit.
    Each plugin knows how to edit a different type of J2MeDataChunk, the data chunks saves them selfs into a data output stream using a serialize method in each of them, and the serialize method is invoked from the plugin itself when the user (me) press the save button.
    "produce"? You mean a factory?No, I meant that the object I posted earlier (J2MeDataChunkType) is an object that represent the type of the data chunk for each of the data chunk types, and that there can only be one instance of the object that represent the type of the data chunk, and that single instance of the object that represent the type of the data chunk is the one that can create new instances of that data chunk type, it can create an empty data chunk,or to deserialize the data chunk type using a DataInputStream, and it has an abstract method, that returns Swing component only on the J2Se platform (a class that extends the J2MeDataChunkType object on the J2Se platform that overrides the abstract method for the editing Frame/Panel).
    What do you mean "external" libraries? Your code doesn't count right?I mean that a J2Me project cannot import other jar files into its build path, only the classes files that are in the project are known to the complier.
    The other two limitations are not limitations at all as far as I can see.well the third one might not be a limitation but it is a pain in the .. S since I have to implement every object I want to serialize myself
    but the second one, well, if you don't use the full strength of the 1.5 then you might not miss it, but there are so many elements I miss when programming on J2Me platform... like this one, I don't know how it is called:
    class A {
    class B  extends A {
    class C {
          A getA() {
    //  return instance of A
    class D extends C{
          B getA() {    // this is not implementable on J2Me, and I miss this for better implementation of things since I try to integrate my J2Me platform I'm building with J2Se application.
    //  return instance of B
    }moreover I miss enumeration, god I love using the
    for(Object o: objectList)very useful very efficient to use...
    and how could I leave generics out... wow no generics... terrible oh, and enums, no enums... hell if there were enums on J2Me... life would have been less gray.
    so yes I see all this as limitations, it slows me down allot, and it makes my code less readable.
    well since I try to build a bridge between the J2Me and J2Se platforms, and since there are some limitation to the J2Me platform* I needed to
    define a few things in a few objects, it was possible to make all the data to fit into one object, but it would make that object too heavy for the
    J2Me platform (besides I rather having two objects it felt more OOD right way to do), where one is a type definer that can produce only one
    instance of this object although it is inheritable,
    Memory in terms of the class or the instance? If the instance then it doesn't have much to do with this discussion. If the class then that impacts >your design because with a limited memory size and large impact then unloading might come up - and that requires a class loader.well this design actually adds an extra class for each type I decide to add to my platform although at the end I intend to join all the objects that represent the type of the data chunk into one object only on the J2Me platform which would actually add only one class to the memory on the phone, it is just easier for me to see things clearer now as I design this bridge application between the platforms, besides it allows maximum flexibility to create new types of chunks, and that was my main aim, to make as many types to be saved on files that I can transfer via a wireless onto the phone and the platform on the phone would know exactly what to use them the data chunks for with out any user intervention.
    as for instances, this way I reduce the memory each of the chunks would use and in the total calculation it would improve memory usage while creating objects from these chunks.
    Presumably you are managing the data items because the base class is going to provide functionality relevant to them.Right, the base class is the most common ground I could find for all the chunks together.
    Presuming that each "type" really is a type (say you have 4 interfaces any of which might be implemented) then you would need the following in
    a configuration file for each entry.
    1. Type of the implemented class.
    2. Full name of the implemented class
    3. Full name of the GUI dialog object.
    4. Optional Name of this entry. I suggest this as it allows you to report errors using this name rather than plugin class names
    Per your requirements there is no path nor jar is needed nor can be specified.well I hope that by now you did get that I generalized all the data chunk types that I created into one basic object which I posted earlier, this object handles everything, and the plugin main object would be design on the J2Se platform and would extend that J2MeDataChunkType class and it would return the Swing frame/panel when the J2Se application calls the getPanel method and an empty chunk on the getDataChunk() method.
    well, in my case it would extend an abstract class from the J2Me platform, maybe two object I'm still thinking about a better implementation >> so the plugin would be more simple, consist of only one object, that needs to be loaded.It shouldn't matter to you how the class is implemented.But of course it does, I want to make my life as simple as possible when I implement new plugins, having one object with abstract method, that when I extend it Eclipse would automatically add the abstract method for me to implement, and just a short glimpse at another implementation of the plugin would let me design another plugin in seconds.(with out making the GUI for the data chunk editing obviously).
    I think I got my head around this, especially now that it feels like I could explain what I'm making better in words.
    Thank you for taking the time to respond to my posts, I see you currently have 37k post so I guess you are a very quick typer, yet you take the time to try and understand my design. Thank you.
    Adam Zehavi.

Maybe you are looking for

  • How can i convert exchange edb to pst?

    EDB to PST Converter has been proved as an excellent utility which recovers all types of data on Exchange Server such as attachments, messages, calendars, contacts, drafts, tasks, notes, journals, distribution lists, appointments, sent items, complet

  • EMac Fails to complete startup after security update install

    I was running software update and My daughter used the emac to update her Ipod, putting software update in the background. after that i tried opening the system preferences but it did not open , I shut down the computer whick usually fixes problems!!

  • Adobe reader 9 - Updater Plug-in has been removed

    Prior to installing the recent version of Adobe reader, I was able to populate an Adobe reader form. When I now try and populate the same form, I receive an error message "Updater plug-in has been removed. Please re-install Acrobat to continue viewin

  • Can't open eBook on iPad: get E_ADEPT_INTERNAL error.

    I am trying to download to my iPad an Axis360 book i borrowed from my library. I have been able to download it to my Windows 8 PC, but i'm having trouble getting on the iPad. I have Axis 360 reader installed on my iPad. If i log in to the library, i

  • Motion not importing full file

    I have a .mov that is 00:14;29 long but Motion only imports 00:10;19 What happened to my last 4 seconds, 10 frames? Any ideas? I've tried re-rendering the .mov twice in the software I created it in with no luck. Other media from this software and oth