Problem using different Map key types in one class

I'm running Kodo 2.3.3. It seems I can only have one Map key types for all
maps in a class. For example, if I have two maps in a class, their keys
must be of the same type.
Is there a plan to remove this limitation soon?
Thanks,

Abe White wrote:
Kodo should generate a separate table for each Map. We have internal tests
that use classes with Map fields using a lot of different key/value type
combinations, so there shouldn\'t be a problem.It looks like two maps (keyValues and versions) are sharing the same
table. Here is the table generated by schematool (db: Oracle 8.1.7):
desc persistentmotiveresourcebean_x;
Name Null? Type
ID_JDOIDX VARCHAR2(255)
JDOKEYX NUMBER
KEYVALUESX VARCHAR2(255)
VERSIONSX VARCHAR2(255)
==========================================================================
Following is the simplified code I run:
-----------internal.jdo--------------------------------------
<?xml version=\"1.0\"?>
<jdo>
<package
name=\"com.motive.services.resourceManagementService.internal\">
<class name=\"PersistentMotiveResourceBean\"
identity-type=\"application\"
objectid-class=\"com.motive.model.PrimaryKey\">
<field name=\"id\" primary-key=\"true\"/>
<field name=\"versions\">
<map key-type=\"java.lang.Float\"
embedded-key=\"true\" value-type=\"java.lang.String\"
embedded-value=\"true\"/>
</field>
<field name=\"keyValues\">
<map key-type=\"java.lang.String\"
embedded-key=\"true\" value-type=\"java.lang.String\"
embedded-value=\"true\"/>
</field>
</class>
</package>
</jdo>
Java source:
-----------PersistentMotiveResourceBean.java---------
package com.motive.services.resourceManagementService.internal;
import java.util.HashMap;
public class PersistentMotiveResourceBean
private String id;
private String name;
private HashMap versions;
private HashMap keyValues;
public PersistentMotiveResourceBean()
public String getId() { return id; }
public void setId(String id) { this.id = id; }
public String getName() { return name; }
public void setName(String name) { this.name = name; }
public HashMap getVersions() { return versions; }
public void setVersions(HashMap versions) { this.versions = versions; }
public HashMap getKeyValues() { return keyValues; }
public void setKeyValues(HashMap keyValues) { this.keyValues =
keyValues; }
----------------PrimaryKey.java-------------------------------------
package com.motive.model;
import java.io.Serializable;
public class PrimaryKey implements Serializable
public String id;
public PrimaryKey ()
public PrimaryKey (String id)
this.id = id;
public boolean equals (Object ob)
if (this == ob) return true;
if (!(ob instanceof PrimaryKey)) return false;
PrimaryKey o = (PrimaryKey) ob;
return (this.id == o.id);
public int hashCode ()
return id.hashCode();
public String toString ()
return id;

Similar Messages

  • Is it possible to do message mapping using different namespace message type

    Hi all,
    Is it possible to do message mapping using different namespaces message types
    Example :
    i am having message type MT_1 in namespace http://sap.com/abc
    and second message type MT_2 in namespace http://partner.com/xyz
    so MT_1 can be mapped with MT_2 or not having different namespace.
    Thanks

    Read through my reply in this thread for Defining Software component dependencies.
    Though it explains this for Improted Archives, it also holds true for Message Types to be used in message mappings.
    Re: Payload Extraction
    Regards
    Bhavesh

  • Senarious for using different internal table types

    please give scenarios for  using different internal table types?

    Refer to the following.
    Internal table types
    This section describes how to define internal tables locally in a program. You can also define internal tables globally as data types in the ABAP Dictionary.
    Like all local data types in programs , you define internal tables using the TYPES statement. If you do not refer to an existing table type using the TYPE or LIKE addition, you can use the TYPES statement to construct a new local internal table in your program.
    TYPES <t> TYPE|LIKE <tabkind> OF <linetype> [WITH <key>]
    [INITIAL SIZE <n>].
    After TYPE or LIKE, there is no reference to an existing data type. Instead, the type constructor occurs:
    <tabkind> OF <linetype> [WITH <key>]
    The type constructor defines the table type <tabkind>, the line type <linetype>, and the key <key> of the internal table <t>.
    You can, if you wish, allocate an initial amount of memory to the internal table using the INITIAL SIZE addition.
    Table type
    You can specify the table type <tabkind> as follows:
    Generic table types
    INDEX TABLE
    For creating a generic table type with index access.
    ANY TABLE
    For creating a fully-generic table type.
    Data types defined using generic types can currently only be used for field symbols and for interface parameters in procedures . The generic type INDEX TABLE includes standard tables and sorted tables. These are the two table types for which index access is allowed. You cannot pass hashed tables to field symbols or interface parameters defined in this way. The generic type ANY TABLE can represent any table. You can pass tables of all three types to field symbols and interface parameters defined in this way. However, these field symbols and parameters will then only allow operations that are possible for all tables, that is, index operations are not allowed.
    Fully-Specified Table Types
    STANDARD TABLE or TABLE
    For creating standard tables.
    SORTED TABLE
    For creating sorted tables.
    HASHED TABLE
    For creating hashed tables.
    Fully-specified table types determine how the system will access the entries in the table in key operations. It uses a linear search for standard tables, a binary search for sorted tables, and a search using a hash algorithm for hashed tables.
    Line type
    For the line type <linetype>, you can specify:
    Any data type if you are using the TYPE addition. This can be a predefined ABAP type, a local type in the program, or a data type from the ABAP Dictionary. If you specify any of the generic elementary types C, N, P, or X, any attributes that you fail to specify (field length, number of decimal places) are automatically filled with the default values. You cannot specify any other generic types.
    Any data object recognized within the program at that point if you are using the LIKE addition. The line type adopts the fully-specified data type of the data object to which you refer. Except for within classes, you can still use the LIKE addition to refer to database tables and structures in the ABAP Dictionary (for compatibility reasons).
    All of the lines in the internal table have the fully-specified technical attributes of the specified data type.
    Key
    You can specify the key <key> of an internal table as follows:
    [UNIQUE|NON-UNIQUE] KEY <col1> ... <col n>
    In tables with a structured line type, all of the components <coli> belong to the key as long as they are not internal tables or references, and do not contain internal tables or references. Key fields can be nested structures. The substructures are expanded component by component when you access the table using the key. The system follows the sequence of the key fields.
    [UNIQUE|NON-UNIQUE] KEY TABLE LINE
    If a table has an elementary line type (C, D, F, I, N, P, T, X), you can define the entire line as the key. If you try this for a table whose line type is itself a table, a syntax error occurs. If a table has a structured line type, it is possible to specify the entire line as the key. However, you should remember that this is often not suitable.
    [UNIQUE|NON-UNIQUE] DEFAULT KEY
    This declares the fields of the default key as the key fields. If the table has a structured line type, the default key contains all non-numeric columns of the internal table that are not and do not contain references or internal tables. If the table has an elementary line type, the default key is the entire line. The default key of an internal table whose line type is an internal table, the default key is empty.
    Specifying a key is optional. If you do not specify a key, the system defines a table type with an arbitrary key. You can only use this to define the types of field symbols and the interface parameters of procedures . For exceptions, refer to Special Features of Standard Tables.
    The optional additions UNIQUE or NON-UNIQUE determine whether the key is to be unique or non-unique, that is, whether the table can accept duplicate entries. If you do not specify UNIQUE or NON-UNIQUE for the key, the table type is generic in this respect. As such, it can only be used for specifying types. When you specify the table type simultaneously, you must note the following restrictions:
    You cannot use the UNIQUE addition for standard tables. The system always generates the NON-UNIQUE addition automatically.
    You must always specify the UNIQUE option when you create a hashed table.
    Initial Memory Requirement
    You can specify the initial amount of main memory assigned to an internal table object when you define the data type using the following addition:
    INITIAL SIZE <n>
    This size does not belong to the data type of the internal table, and does not affect the type check. You can use the above addition to reserve memory space for <n> table lines when you declare the table object.
    When this initial area is full, the system makes twice as much extra space available up to a limit of 8KB. Further memory areas of 12KB each are then allocated.
    You can usually leave it to the system to work out the initial memory requirement. The first time you fill the table, little memory is used. The space occupied, depending on the line width, is 16 <= <n> <= 100.
    It only makes sense to specify a concrete value of <n> if you can specify a precise number of table entries when you create the table and need to allocate exactly that amount of memory (exception: Appending table lines to ranked lists). This can be particularly important for deep-structured internal tables where the inner table only has a few entries (less than 5, for example).
    To avoid excessive requests for memory, large values of <n> are treated as follows: The largest possible value of <n> is 8KB divided by the length of the line. If you specify a larger value of <n>, the system calculates a new value so that n times the line width is around 12KB.
    Examples
    TYPES: BEGIN OF LINE,
    COLUMN1 TYPE I,
    COLUMN2 TYPE I,
    COLUMN3 TYPE I,
    END OF LINE.
    TYPES ITAB TYPE SORTED TABLE OF LINE WITH UNIQUE KEY COLUMN1.
    The program defines a table type ITAB. It is a sorted table, with line type of the structure LINE and a unique key of the component COLUMN1.
    TYPES VECTOR TYPE HASHED TABLE OF I WITH UNIQUE KEY TABLE LINE.
    TYPES: BEGIN OF LINE,
    COLUMN1 TYPE I,
    COLUMN2 TYPE I,
    COLUMN3 TYPE I,
    END OF LINE.
    TYPES ITAB TYPE SORTED TABLE OF LINE WITH UNIQUE KEY COLUMN1.
    TYPES: BEGIN OF DEEPLINE,
    FIELD TYPE C,
    TABLE1 TYPE VECTOR,
    TABLE2 TYPE ITAB,
    END OF DEEPLINE.
    TYPES DEEPTABLE TYPE STANDARD TABLE OF DEEPLINE
    WITH DEFAULT KEY.
    The program defines a table type VECTOR with type hashed table, the elementary line type I and a unique key of the entire table line. The second table type is the same as in the previous example. The structure DEEPLINE contains the internal table as a component. The table type DEEPTABLE has the line type DEEPLINE. Therefore, the elements of this internal table are themselves internal tables. The key is the default key - in this case the column FIELD. The key is non-unique, since the table is a standard table.
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm

  • Problems using different tables for base class and derived class

    I have a class named SuperProject and another class Project derived from
    it. If I let SchemaTool generate the tables without specifying a "table"
    extension, I get a single TABLE with all the columns from both classes and
    everything works fine. But if I specify a "table" for the derived class,
    SchemaTool generates the derived class with just one column (corresponds
    to the attribute in derived class). Also it causes problems in using the
    Project class in collection attributes.
    JDO file:
    <jdo>
    <package name="jdo">
    <class name="Project" identity-type="application"
    persistence-capable-superclass="SuperProject">
    <extension vendor-name="kodo" key="table" value="PROJECT"/>
    </class>
    <class name="SuperProject" identity-type="application"
    objectid-class="ProjectId">
    <field name="id" primary-key="true"/>
    </class>
    </package>
    </jdo>
    java classes:
    public class Project extends SuperProject
    String projectSpecific
    public class SuperProject
    BigDecimal id;
    String name;
    tables generated by SchemaTool:
    TABLE SUPERPROJECTSX (IDX, JDOCLASSX, JDOLOCKX, NAMEX);
    TABLE PROJECT(PROJECTSPECIFICX)
    Thanks,
    Justine Thomas

    Justine,
    This will be resolved in 2.3.4, to be released later this evening.
    -Patrick
    In article <aofo2q$mih$[email protected]>, Justine Thomas wrote:
    I have a class named SuperProject and another class Project derived from
    it. If I let SchemaTool generate the tables without specifying a "table"
    extension, I get a single TABLE with all the columns from both classes and
    everything works fine. But if I specify a "table" for the derived class,
    SchemaTool generates the derived class with just one column (corresponds
    to the attribute in derived class). Also it causes problems in using the
    Project class in collection attributes.
    JDO file:
    <jdo>
    <package name="jdo">
    <class name="Project" identity-type="application"
    persistence-capable-superclass="SuperProject">
    <extension vendor-name="kodo" key="table" value="PROJECT"/>
    </class>
    <class name="SuperProject" identity-type="application"
    objectid-class="ProjectId">
    <field name="id" primary-key="true"/>
    </class>
    </package>
    </jdo>
    java classes:
    public class Project extends SuperProject
    String projectSpecific
    public class SuperProject
    BigDecimal id;
    String name;
    tables generated by SchemaTool:
    TABLE SUPERPROJECTSX (IDX, JDOCLASSX, JDOLOCKX, NAMEX);
    TABLE PROJECT(PROJECTSPECIFICX)
    Thanks,
    Justine Thomas
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Anyconnect profiles using by using different extended key attributes

    Hi,
    I have an anyconnect VPN with workstations located in the same OU in Active Directory.  The current anyconnect deployment uses seperate OUs to determine what profile is applied to the client.
    I'm looking for a solutiuon to enable machines to be located in a single OU & still have the ability to apply different profiles to machines.
    The only way I can think of doing this is using machine certificates in Active Directory & configuring different extended key attributes.
    Any advice/suggestions or information on the best way of doing this would be greatly appreciated

    Resolved my own issue today. The error does nothing to describe the actual cause. The user's private key was corrupted (uncertain as to how). The certificate GUI in Windows showed it was okay, but running "certutil -store -user my" showed the error "Missing stored keyset" on the certificate in question.
    The resolution was to delete the certificate and enroll for a new one, with a new key pair.

  • How to use different Web Dynpro Applicat. in one view?

    hello all,
    i want to call at least 3 different Web Dynpro Applicat as main view in one component configuration (or as subtables in one page in portal).
    can anyone please show me how to resolve this?
    thank you
    SR

    in one Portal page, i have several subtables that they are mapped to the same webdynpro application, and i want add an other subtables to the others, but that one has/mapped to a different webdynpro application..
    exampl :
    one portal page containes a subtables that have at the moment only one Web Dynpro Application( HRTMC_01) and  Web Dynpro configuration(ZHRTMC_01)  so, i want to add another subtables that have another Web Dynpro Applicat(HRTMC_02) and a different Web Dynpro configuration(ZHRTMC_02).
    please show me how can I do this?
    thank you all

  • Problem in different mapping according to XPATH in Inteface determination

    Hi Gurus of XI,
    I have an input and according to a flag in it I need to execute 2 mappings (if flag is 1 -> mapping A else mapping B) and hence post an IDOC [mapping A / B uses the same IDOC].
    I have a single sender and a single receiver, hence during my interface determination i am trying to specify the condition in the XPATH condition editor and hence assigning the specific mapping.
    But an error pops up saying "occurs more than once as inbound interface".
    Is there any work around for the same ?
    I am trying to avoid a BPM here.
    Regards,
    ShabZ

    Hi Shabz,
      You cannot have more than One idoc, but you can handle this in the mapping.
      if you use XSLT mapping, make a complete copy of the Node and apply the condtion (for flag A or B).
      this way you can go ahead without any routing or interface selection in Int Dir.
    Regards
    Vishnu

  • Problems using different scope with useBean

    Hi all,
    I've been trying over and over to place the data from my inputForm.jsp in request, session or even application scope and then try to retrieve the data from my process.jsp.
    I can't understand why not the request object (emp) is available in my second jsp file. I'm having the same problem using sessionScope and applicationScope.
    inputForm.jsp
    <jsp:userBean id="emp" class="Employee" scope="request">
    <jsp:setProperty name="emp" property="*" />
    </jsp:userBean>
    <form method="POST" action="process.jsp>
    <input type="text" name="firstName">
    <input type="text" name="lastName">
    </form>process.jsp
    <c ut value="${requestScope.emp.firstName}" />

    The useBean tag has to be on the page WHERE THE BEAN IS BEING used.
    The jsp:setProperty tag works from request parameters. So it has to be on the page that is RECEIVING the parameters - ie your second page.
    You misspelled jsp:useBean.
    Also your Employee bean must be in a package, and the useBean tag should use its fully qualified package name.
    I will presume that your Employee class has appropriate get/set methods for firstName and lastName - ie getFirstName() and setFirstName()...
    Try this:
    inputForm.jsp
    <form method="POST" action="process.jsp>
    <input type="text" name="firstName">
    <input type="text" name="lastName">
    </form>process.jsp
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    <jsp:useBean id="emp" class="com.mypackage.Employee" scope="request">
      <jsp:setProperty name="emp" property="*" />
    </jsp:useBean>
    <c:out value="${requestScope.emp.firstName}" />

  • Problem using different Adobe accounts for CC and Typekit

    I've had a Typekit account for some time and just recently signed up for CC. Both my Typekit and CC accounts use different Adobe IDs. I then linked my Typekit account to my CC account to enable font syncing, only to discover afterwards that apparently this is a thing you should not do.
    Now when I log in to Typekit, all of my previous sets are gone and it acts like I'm a brand new Typekit user. Is it possible to unlink my accounts and get all of my sets back like I had before?

    Hi Eric,
    I'm sorry that you ran into trouble with this.  Would you please email us at [email protected] with your Adobe ID and the email address that you use for Typekit?
    Most likely you have set up a new account as part of your Creative Cloud subscription, and the kits are still there under you previous email.  We will take a look and let you know what needs to happen to get this sorted out!
    Thank you,
    -- liz

  • Implement Maps keyed by a Persistent Class

    Hi,
    You would probably agree that JDO Maps keyed by a primitive/primitive
    wrapper are not nearly as usefull as the ones mapped by a PC.
    I wonder if it is in your plans to provide this functionality? Kodo 2.4? or
    2.5
    If I am not mistaken somebody (may be me) already entered this enhancement
    request into your bugzilla as a part of overall collection handling
    improvements but I am going to create a new request just in case and put
    some of my votes onto it :-)
    If you want me to come up with use cases to explain why I think this feature
    is very much needed I can certainly do so.
    Anyway if any other folks around here are interested in this feature please
    wote for it http://bugzilla.solarmetric.com:8080/showvotes.cgi?voteon=437

    This is on our project plan, but will not be in 2.4.
    -Patrick
    In article <apmh0t$a3r$[email protected]>, Alex Roytman wrote:
    Hi,
    You would probably agree that JDO Maps keyed by a primitive/primitive
    wrapper are not nearly as usefull as the ones mapped by a PC.
    I wonder if it is in your plans to provide this functionality? Kodo 2.4? or
    2.5
    If I am not mistaken somebody (may be me) already entered this enhancement
    request into your bugzilla as a part of overall collection handling
    improvements but I am going to create a new request just in case and put
    some of my votes onto it :-)
    If you want me to come up with use cases to explain why I think this feature
    is very much needed I can certainly do so.
    Anyway if any other folks around here are interested in this feature please
    wote for it http://bugzilla.solarmetric.com:8080/showvotes.cgi?voteon=437
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Using variables in 5 instances of one Class in a seperate Class

    I have 5 instances of the one Class all returning different values. These values are parameteres for a final calculation. I am using Sliders as my data validation and I want my final calculation to react to the individual sliders being moved. I need to know the name of the slider and its value or do I?
    I would like to Calculate Tractive effort in Extra Panel, I know that all this has something to do with Event Handling but what?
    Any and help vastly appreciated otherwise I am goint to eat this computer cables and all.
    By the way I Hate Computers!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Code as follows:
    import java.awt.GridLayout;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public class TractiveEffortCalculator extends JFrame
         private static final long serialVersionUID = 1L;
         public ConstructParametersPanel Instance = new ConstructParametersPanel();
         public ExtraPanel Sample = new ExtraPanel();
         public JPanel thisPanel;
         public TractiveEffortCalculator()
              thisPanel = new JPanel();
              //super ("N Generation Steam"+"           "+"Tractive Effort Calculator");
              BackGroundColour myColor = new BackGroundColour();
              //ConstructParametersPanel Instance = new ConstructParametersPanel();
              GridLayout grid = new GridLayout();
              grid.setColumns(2);
              grid.setHgap(10);
              grid.setRows(1);
              grid.setVgap(5);
              thisPanel.setLayout(grid);
              thisPanel.add(Instance.ConstructParametersPanelMethod());
              thisPanel.add(Sample.ExtraPanelMethod());
              setBackground(myColor.NewBackGroundColour());
              getContentPane().add(thisPanel);
              pack();
              setVisible(true);
              setLocation(40,50);
              setSize(800,600);
              //setResizable(false);
         public static void main(final String[]args)
              final TractiveEffortCalculator app = new TractiveEffortCalculator();
    import java.awt.GridLayout;
    import javax.swing.BorderFactory;
    import javax.swing.JPanel;
    public class ConstructParametersPanel extends JPanel
         private static final long serialVersionUID = 1L;
         private JPanel sidePanel;
         TheSliderClass Instance1 = new TheSliderClass();
         TheSliderClass Instance2 = new TheSliderClass();
         TheSliderClass Instance3 = new TheSliderClass();
         TheSliderClass Instance4 = new TheSliderClass();
         TheSliderClass Instance5 = new TheSliderClass();
         public JPanel ConstructParametersPanelMethod()
              sidePanel = new JPanel();
              BackGroundColour myColor = new BackGroundColour();
              GreenColour myColor2 = new GreenColour();
              BlackShadowColour myColor3 = new BlackShadowColour();
              sidePanel.setBorder(BorderFactory.createBevelBorder(1
                                                                          ,myColor2.NewGreenColour()
                                                                          ,myColor3.NewBlackShadowColour()
                                                                          ,myColor2.NewGreenColour()
                                                                          ,myColor3.NewBlackShadowColour()));
              GridLayout grid = new GridLayout();
              grid.setColumns(1);
              grid.setHgap(10);
              grid.setRows(6);
              grid.setVgap(5);
              sidePanel.setLayout(grid);
              sidePanel.setBackground(myColor.NewBackGroundColour());
              sidePanel.add(Instance1.TheSliderClassMethod("Boiler Pressure",200,320));
              sidePanel.add(Instance2.TheSliderClassMethod("Wheel Diameter",60,80));
              sidePanel.add(Instance3.TheSliderClassMethod("Stroke",10,20));
              sidePanel.add(Instance4.TheSliderClassMethod("Piston Rod",2,4));
              sidePanel.add(Instance5.TheSliderClassMethod("Tail Rod",1,3));
              return sidePanel;          
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Font;
    import java.awt.GridLayout;
    import javax.swing.BorderFactory;
    import javax.swing.JFormattedTextField;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JSlider;
    import javax.swing.event.ChangeEvent;
    import javax.swing.event.ChangeListener;
    import javax.swing.text.NumberFormatter;
    public class TheSliderClass extends JPanel implements ChangeListener
         private static final long serialVersionUID = 1L;
         //Add a formatted text field to supplement the slider.
         public JFormattedTextField textField,textField2;
         public String publicSliderName = "";
         public int fps;
         //And here's the slider.
         public JSlider sliderParameterValue;
         JPanel labelAndTextField,allTogether;
         int TractiveEffort = 0;
         public JPanel TheSliderClassMethod(String sliderName, int minimumValue, int maximumValue)
              JPanel allTogether = new JPanel();
              Font font = new Font("palatino linotype regular", Font.BOLD, 12);
              int initialValue = ((minimumValue+maximumValue)/2);
              int tickMarkValue = (maximumValue-minimumValue);
              publicSliderName = sliderName;
              //Create the label.
              JLabel sliderLabel = new JLabel(sliderName,JLabel.CENTER);
              sliderLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
              sliderLabel.setFont(font);
              sliderLabel.setForeground(Color.BLUE);
              //Create the formatted text field and its formatter.
              java.text.NumberFormat numberFormat =
                   java.text.NumberFormat.getIntegerInstance();
              NumberFormatter formatter = new NumberFormatter(numberFormat);
              formatter.setMinimum(new Integer(minimumValue));
              formatter.setMaximum(new Integer(maximumValue));
              textField = new JFormattedTextField(formatter);
              textField.setValue(new Integer(initialValue));
              textField.setColumns(3); //get some space
              textField.setEditable(false);
              textField.setForeground(Color.red);
              textField2 = new JFormattedTextField(formatter);
              textField2.setValue(new Integer(initialValue));
              textField2.setColumns(3); //get some space
              textField2.setEditable(false);
              textField2.setForeground(Color.red);
              //Create the slider.
              sliderParameterValue = new JSlider(JSlider.HORIZONTAL,
              minimumValue, maximumValue, initialValue);
              sliderParameterValue.addChangeListener(this);
              //Turn on labels at major tick marks.
              sliderParameterValue.setMajorTickSpacing(tickMarkValue);
              sliderParameterValue.setMinorTickSpacing(10);
              sliderParameterValue.setPaintTicks(true);
              sliderParameterValue.setPaintLabels(true);
              sliderParameterValue.setBorder(
              BorderFactory.createEmptyBorder(0,0,0,0));
                                                      sliderParameterValue.setBackground(Color.cyan);
              //Create a subpanel for the label and text field.
              JPanel labelAndTextField = new JPanel(); //use FlowLayout
              labelAndTextField.setBackground(Color.cyan);      
              labelAndTextField.add(sliderLabel);
              labelAndTextField.add(textField);
              //Put everything together.
              GridLayout gridThis = new GridLayout();
              gridThis.setColumns(1);
              gridThis.setRows(2);
              allTogether.setLayout(gridThis);
              allTogether.add(labelAndTextField);
              allTogether.add(sliderParameterValue);
              allTogether.setBorder(BorderFactory.createBevelBorder(1,Color.red,
                                                                                    Color.red));
              return allTogether;
         /** Listen to the slider. */
         public void stateChanged(ChangeEvent e)
              JSlider source = (JSlider)e.getSource();
              fps = (int)source.getValue();
              textField.setText(String.valueOf(fps));
              textField2.setText(String.valueOf(fps));
    import java.awt.GridLayout;
    import javax.swing.JPanel;
    public class ExtraPanel extends JPanel
         private static final long serialVersionUID = 1L;
         public JPanel thisPanel;
         public ConstructParametersPanel aPointer;
         public JPanel ExtraPanelMethod()
              thisPanel = new JPanel();
              aPointer = new ConstructParametersPanel();
              GridLayout grid = new GridLayout();
              grid.setColumns(1);
              grid.setHgap(10);
              grid.setRows(6);
              grid.setVgap(5);
              thisPanel.setLayout(grid);
              return thisPanel;

    I don't know if anyone's going to go through all that code...but here's a hint.
    if you have 5 sliders and each one represents a separate variable you're going to use in your calculation...you will need to be able to read the change in THAT PARTICULAR slider to update that particular variable and recalculate.
    So you have a change state listener: The ChangeEvent passed to the
    public void stateChanged(ChangeEvent e) method will have a method called getSource() which you use. However, you aren't figuring out which slider it came from, you're just updating the text areas with info that comes from ANY slider.
    You can use e.getSource() to identify which slider it came from.
    Say you had the following JSlider sl1, sl2, sl3, sl4.
    And each one represents int int1, int2, int3, int4;
    what you do in your stateChanged code say
    if (e.getSource()==sl1){
    int1 = sl1.getValue();
    } else if (e.getSource()==sl2){
      int2 = sl2.getValue();
    } now you have identified which slider was activated. Hope this helps!

  • After latest security update, cannot type capital "s" nor "w" using right shift key. Left one works fine...

    I'm running Snow Leopard with the last week's update...
    I see now cannot type several characters using the right shift key..
    I tried to reboot - bad habit from windows era still no improvement...
    how can I rollback to previous version of software?
    or/ is there a solution to this problem

    Is it all applications that these keys don't work?
    Also is it a wired keyboard or bluetooth keyboard, either keyboard i'd suggest starting with resetting SMC (helps USB) and PRAM (helps Bluetooth)
    Reset SMC
    Intel-based Macs: Resetting the System Management Controller (SMC)
    Reset PRAM
    Resetting your Mac's PRAM and NVRAM
    If it's a USB keyboard i'd suggest trying a different USB port and restarting the computer, for a bluetooth keyboard i'd suggest removing the keyboard from Bluetooth Preferences and repairing the keyboard.

  • Problem using different plugins via OBJECT tag

    Hi all,
    before installing JRE 1.5.0_06 everything was well. I had 3 different JREs (1.3.1_02, 1.3.1_08, 1.4.2_06) installed on one Windows system which could be invoked in Internet Explorer 6 for an applet as described in http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/version.html
    example:
    <HTML>
    <HEAD>
    <TITLE>Java Plugin 1.3.1_08</TITLE>
    </HEAD>
    <BODY>
    Java Plugin 1.3.1_08:�
    <OBJECT classid="clsid:CAFEEFAC-0013-0001-0008-ABCDEFFEDCBA" width="150" height="25">
    Plugin missing
    <PARAM name="code" value="HelloWorld.class">
    </OBJECT>
    </BODY>
    </HTML>
    (Note: The output of my HelloWorld class is the VM's version number.)
    After installing 1.5.0_06 it doesn't work anymore. The new 1.5.0_6 is always used. Does anybody have a clue?
    Thanks in advance
    Peter

    I've seen a similar problem that didn't seem to exist with JRE 1.5.0_05 but does with 1.5.0_06. On the JRE 1.5.0_06 workstation the Windows registry contains CAFEEFAC-... entries for what looks to be all 1.3/1.4/1.5 JREs and points them all to the 1.5.0_06 JRE plugin dll, even though there is still a 1.4 JRE on the workstation. So even when you specify an OBJECT tag with a classid such as classid="clsid:CAFEEFAC-0014-0001-0010-ABCDEFFEDCBA" that should load the 1.4 plugin by design, the 1.5 plugin is loaded. This seems to defeat the multi-version JRE support. The JRE 1.5.0_05 workstation on the other hand didn't overwrite CAFEEFAC-... Windows registry entries for previous JREs, and properly loads a specfic JRE's plugin when specified by a CAFEEFAC-... classid in the OBJECT tag.

  • Problem using pre-mapping process operator in owb 9i

    Hi,
    I was trying to use the pre-mapping process operator in owb 9i. Problem is that the manual does not specify how the inputs need to be connected to this operator. Following is what I went through -
    I created a mapping table operator and a mapping dimension operator and connected these two. Then i created a pre-mapping process operator selecting the LTRIM function. Further I connected one of the table attributes to this pre-mapping operator as input and connected the output of this pre-mapping operator to the appropriate dimension operator attribute. On performing Validate, following error message was flashed -
    VLD-2451 : Illegal connection to pre-mapping process operator
    I am trying to learn how to use OWB 9i from the manual. So my interpretation of the use of the pre-mapping process operator may be wrong.
    In any case kindly help,
    Thanks
    Saju

    Pre-mapping process is use to perform some operations preceding to mapping operation itself.
    For example, if your mapping is designed to incrementally append data to table for the definite time interval (witch is a parameter of the map operation) you might want to perform the table data cleanup for that period. That will allow for reload data number of time.
    In this case you have to define the procedure witch perform cleanup and than include the call to that procedure as a pre-mapping process.
    Other examples of pre- and post mapping process is disabling referential integrity before loading and re-enabling them after loading.
    Anyway, OWB documentation has clear definition for pre- and post-mapping processes.

  • How to use different video formats in the one timeline?

    Hi everyone,
    So I am in the middle of stringing together a rough cut for a surf flick/documentary shot in some remote Indonesian islands…
    Things so far are going well, but I am slightly confused regarding the best way to tackle a slight issue (hopefully slight!) of video format compatibility.
    The main shooting for the film was done with .mov video format and this has been imported/captured into final cut pro 7 using the correct settings, which has now formed the basis for my rough cut.
    However, I did a lot of filming with some other cameras (underwater, POV etc) and so also have some crucial footage in different formats that to my knowledge will not be compatible with the timeline that I have already created in FCP.
    The files are as following:
    AVI
    MOD
    MP4
    I am assuming the best way to go about things is convert all these different files into a compatible form that I can then drop straight into my existing timeline.
    Unfortunately, I am just beginning to learn the more techy aspects of editing and I don’t have the first idea of how to go about doing this…?
    Any helpful feedback would be greatly appreciated…
    Thanks in advance,
    m

    Although there are kinds of standard workflows for best quality in final product, it helps to know a bit more about your setup... what is your primary format? Without knowing that, the best way forward is to convert all of your footage to Apple ProRes. Especially the MP4 stuff. There are different ways about doing that, but I personally recommend Compressor. This can take some time depending on the amount and lengths of your shots, but it is well worth the process.
    Make sure you choose 48k / 16bit AIF for all of your shots that have audio. If some of your footage is 1080p and some is 720p, I personally leave that alone because when you have this type of a difference in footage, I like to set my sequence to 720p giving me the option to move or pan the 1080p clips inside of the 720p sequence. Final Cut Pro is very good at handling that difference.
    Hope the edit goes well; sounds like a nice project!

Maybe you are looking for

  • More Digital Signatures Stuff

    So were trying to implement a PDF document that has a bunch of fields in it, and then after a someone signs it, it then get sent to an Informix DB as a BLOB. It then needs to be approved by a supervisor, so then the supervisor sees that it needs to b

  • Strange behavior attempting to Restrore selective files

    I've been using Time Machine on my Mac Mini now since October of 2009. I generally do monthly backups (manually) and they are all successful backups (no errors to report). The Time Machine backup drive is attached to the computer via USB (directly co

  • Oracle Advanced Queuing - Propagation problem - 11g

    Hi, I have a problem when propagation messages between queues. When the message is propagated, it stays on the source queue with READY state. I have created two queues on 11g with a propagation rule that any message from queue A are sent to queue B.

  • Encounter "500 Unexpected Error" when admin account access to ECP

    Symptom:  In Exchange 2013, when using admin account to access ECP, you will get an error “500 Unexpected” as below. However, when using the same account to access OWA, everything is ok, and other normal accounts can access OWA also. At the same time

  • [SOLVED] Module load errors

    I've installed the base following the beginner's guide.  Grep EE /var/log/Xorg.0.log shows the following errors: (EE) Failed to loan module "intel" (module does not exist, 0) (EE) Failed to load module "fbdev" (module does not exist, 0) (EE) KB Multi