Request for java code

can any one tell me how to execute unix command in windows platform using java code? (please also send code or related websitename)

when you have that feature OOTB in OIM, why you want it to write java code for that.,??

Similar Messages

  • JDEV 11G TP3: exception when setting preferences for java code style

    I got this exception when calling the panel in the preferences settings for java code style.
    How to restore it ?
    java.lang.NullPointerException
         at oracle.jdevimpl.style.profile.ProfileModel$ProfileComparator.compare(ProfileModel.java:409)
         at java.util.Arrays.mergeSort(Arrays.java:1284)
         at java.util.Arrays.sort(Arrays.java:1223)
         at java.util.Collections.sort(Collections.java:159)
         at oracle.jdevimpl.style.profile.ProfileModel.<init>(ProfileModel.java:72)
         at oracle.jdevimpl.style.preferences.CodingStylePreferencesPanel.<init>(CodingStylePreferencesPanel.java:144)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at oracle.ide.panels.MetaTraversable.newTraversable(MetaTraversable.java:315)
         at oracle.ide.panels.MetaTraversable.newTraversable(MetaTraversable.java:219)
         at oracle.ide.panels.MDDPanel.getTraversable(MDDPanel.java:1243)
         at oracle.ide.panels.MDDPanel.mav$getTraversable(MDDPanel.java:116)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1506)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1414)
         at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1408)
         at javax.swing.Timer.fireActionPerformed(Timer.java:271)
         at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
         at java.awt.Dialog$1.run(Dialog.java:525)
         at java.awt.Dialog$2.run(Dialog.java:553)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Dialog.show(Dialog.java:551)
         at java.awt.Component.show(Component.java:1300)
         at java.awt.Component.setVisible(Component.java:1253)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
         at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:225)
         at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:808)
         at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:593)
         at oracle.ide.cmd.IdeSettingsCommand.doit(IdeSettingsCommand.java:45)
         at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:309)
         at oracle.jdevimpl.vcs.cvs.CVSPreferencesCommand.doit(CVSPreferencesCommand.java:46)
         at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:309)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:531)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:784)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:481)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5501)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
         at java.awt.Component.processEvent(Component.java:5266)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3968)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1778)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    I got this exception for menu tools\preference\extensions.
    I erased folder C:\JDeveloper\myDirectory\system11.1.1.0.22.49.49 and the error appeared.
    Jun 12, 2008 11:20:55 PM oracle.ide.panels.MDDPanel exitTraversable
    SEVERE: Exception exiting traversable oracle.ideimpl.extension.preference.ExtensionOptionsPanel[,0,0,485x391,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=]
    java.lang.NullPointerException
         at oracle.ideimpl.extension.preference.ExtensionOptionsPanel.disabledIdsHaveChanged(ExtensionOptionsPanel.java:191)
         at oracle.ideimpl.extension.preference.ExtensionOptionsPanel.onExit(ExtensionOptionsPanel.java:182)
         at oracle.ide.panels.MDDPanel.exitTraversable(MDDPanel.java:1160)
         at oracle.ide.panels.MDDPanel.mav$exitTraversable(MDDPanel.java:116)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1470)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1414)
         at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1408)
         at javax.swing.Timer.fireActionPerformed(Timer.java:271)
         at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
         at java.awt.Dialog$1.run(Dialog.java:525)
         at java.awt.Dialog$2.run(Dialog.java:553)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Dialog.show(Dialog.java:551)
         at java.awt.Component.show(Component.java:1300)
         at java.awt.Component.setVisible(Component.java:1253)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
         at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:225)
         at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:808)
         at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:593)
         at oracle.ide.cmd.IdeSettingsCommand.doit(IdeSettingsCommand.java:45)
         at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:309)
         at oracle.jdevimpl.vcs.cvs.CVSPreferencesCommand.doit(CVSPreferencesCommand.java:46)
         at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:309)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:536)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:843)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:486)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5501)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
         at java.awt.Component.processEvent(Component.java:5266)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3968)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1778)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Message was edited by:
    ericardezp

  • HT5570 I tried to reset setting due to my phone speaker are not functioning except if i plug in earphone.after i key in my phone code,it promp a request for restriction code which i totally cant recall.

    I tried to reset setting due to my phone speaker are not functioning except if i plug in earphone.after i key in my phone code,it promp a request for restriction code which i totally cant recall.how can i resolve this issue.

    Hello Ridhuan,
    Thanks for using Apple Support Communities.
    If you forgot your restrictions passcode you will need to restore your iPhone to its factory settings.
    i forgot my passcode
    https://discussions.apple.com/thread/5196099
    Take care,
    Alex H.

  • OIM should send spmlv2 requests via java code to service provider

    Hi,
    We have the situation in which OIM acts as Requesting authority,Spml provider acts as service provider.
    Oim should send spml requests from custom java code.Spml2Client is used.We are not using genericc technology connector.
    Require sample java code for Search operation.
    I had done for modify request.
    The request and response is as follows
    PSO ID returned after searching: org.openspml.v2.msg.spml.PSOIdentifier@5c32a864
    <deleteRequest xmlns='urn:oasis:names:tc:SPML:2:0' recursive='false'/>
    <deleteResponse xmlns='urn:oasis:names:tc:SPML:2:0' status='success'/>
    <modifyRequest xmlns='urn:oasis:names:tc:SPML:2:0' returnData='identifier'>
    <psoID ID='cn=TPS User8,ou=TPS,dc=fosterstechodc,dc=com'/>
    <modification modificationMode='replace'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='otherHomePhone' operation='replace'>
    <dsml:value>999999</dsml:value>
    </dsml:modification>
    </data>
    </modification>
    <modification modificationMode='delete'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='description' operation='delete'>
    </dsml:modification>
    </data>
    </modification>
    <modification modificationMode='add'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='firstname' operation='add'>
    <dsml:value>Barbara</dsml:value>
    </dsml:modification>
    </data>
    </modification>
    </modifyRequest>
    SpmlClient: sending to http://10.101.151.209/ARServerSPML/SPMLProvider.asmx
    <modifyRequest xmlns='urn:oasis:names:tc:SPML:2:0' returnData='identifier'>
    <psoID ID='cn=TPS User8,ou=TPS,dc=fosterstechodc,dc=com'/>
    <modification modificationMode='replace'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='otherHomePhone' operation='replace'>
    <dsml:value>999999</dsml:value>
    </dsml:modification>
    </data>
    </modification>
    <modification modificationMode='delete'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='description' operation='delete'>
    </dsml:modification>
    </data>
    </modification>
    <modification modificationMode='add'>
    <data>
    <dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='firstname' operation='add'>
    <dsml:value>Barbara</dsml:value>
    </dsml:modification>
    </data>
    </modification>
    </modifyRequest>
    SpmlClient: received
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><modifyResponse status="failure" xmlns="urn:oasis:names:tc:SPML:2:0"><error>malformedRequest</error><errorMessage>At least one &lt;modification&gt; element must be specified.</errorMessage></modifyResponse></soap:Body></soap:Envelope>
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><modifyResponse status="failure" xmlns="urn:oasis:names:tc:SPML:2:0"><error>malformedRequest</error><errorMessage>At least one &lt;modification&gt; element must be specified.</errorMessage></modifyResponse></soap:Body></soap:Envelope>
    org.openspml.v2.util.Spml2ExceptionWithResponse: At least one <modification
    The response says the modifaction tag is not present.
    The code for this request is
    Modification[] modifications =
                   { newModWithDSMLMod("otherHomePhone", "999999", ModificationMode.REPLACE),
                             newModWithDSMLMod("description", null, ModificationMode.DELETE),
                             newModWithDSMLMod("cn", "Barbara", ModificationMode.REPLACE)};
                   modifyResp = customSPMLClient.modifyUser(client,searchPSOId,modifications);
    method:
    public ModifyResponse modifyUser(Spml2Client client,PSOIdentifier psoId,Modification[] modifications) throws Exception {
              client.setTrace(true);
              ReflectiveXMLMarshaller marshaller = new ReflectiveXMLMarshaller();
              ModifyRequest modReq = new ModifyRequest(null, // String requestId,
                        null, // ExecutionMode executionMode,
                        psoId, // PSOIdentifier psoID
                        modifications, // Modification[] modifications
                        ReturnData.IDENTIFIER // ReturnData returnData
              System.out.println(modReq.toXML(marshaller));
              ModifyResponse modResp = (ModifyResponse) client.send(modReq);
              System.out.println(modResp.toXML(marshaller));
              return modResp;
    private static Modification newModWithDSMLMod(String modName, String modValue, ModificationMode modMode)
         throws DSMLProfileException
              /*DSMLModification dsmlMod = null;
              dsmlMod = new DSMLModification(modName, modValue, modMode);
              Extensible data = new Extensible();
              data.addOpenContentElement(dsmlMod);
              Selection component = null;
              return new Modification(component, data, null, modMode);
    Please help me out.
    I need sample java code for search operation tooo.
    regards,
    Sindhu.M

    the sample JAVA codes are provided for sending SPML requests, HTTPClient and one more (i dont remember rite now) within the OIM installation folders itself. It's in the 'SampleHttpClient' folder. Check it once. WSDL, sample XML's and the JAVA codes all are there. You just need to set the classpath and run it.
    - oidm.

  • Use one store account for two I pads. Get request for security code

    Trying to use one store account for two I pads. One works fine, the other is unable to download a free app, window asks for security code.?.......
    What security code?

    Probably the security code on your credit card

  • Checling the exception for Java code

    Hi,
      I am using SAP EP 6.0 WAS 6.20
        I have a java code which tries to get initial context
      try
          //try{
                     Properties p = new Properties();
                   p.put(Context.INITIAL_CONTEXT_FACTORY, "com.inqmy.services.jndi.InitialContextFactoryImpl");
                   //p.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.InitialContextFactoryImpl");
                     p.put(Context.PROVIDER_URL, "137.72.229.238:50004");
                     p.put(Context.SECURITY_PRINCIPAL, "Administrator");
                     p.put(Context.SECURITY_CREDENTIALS, "password");
                     Context ctx = (Context) new InitialContext(p);
                              Object objRef = ctx.lookup("SAPEPUMEBean");
                   UMEEJBHome ejbHome =  (UMEEJBHome)objRef ;
                   objUMEBean = ejbHome.create();
    }catch(NamingException namingEx)
    This code throws a naming exception.
    I wanted to know in which file this exception stacktrace will be present .
    Regards
    Manoj

    Hi,
    On the filesystem look in folder:
    C:\usr\sap\XXX\XXX\j2ee\cluster\server\log
    In Visual Administrator:
    Open server node, services, Log viewer.
    In the right panel open Server node, select path (C:\usr\sap\XXX\XXX\j2ee\cluster\server\log).
    Good luck,
    Roelof

  • How to find the Execution Time for Java Code?

    * Hi everyone , i want to calculate the execution time for my process in java
    * The following was the ouput for my coding,
    O/P:-
    This run took 0 Hours ;1.31 Minutes ;78.36 Seconds
    *** In the above output , the output should come exactly what hours , minutes and seconds for my process,
    but in my code the minutes are converted into seconds(It should not)...
    * Here is my coding,
        static long start_time;
        public static void startTime()
            start_time = System.currentTimeMillis();
        public static void endTime()
            DecimalFormat df = new DecimalFormat("##.##");
            long end_time = System.currentTimeMillis();
            float t = end_time - start_time;
            float sec = t / 1000;
            float min = 0, hr = 0;
            if (sec > 60) {
                min = sec / 60;
            if (min > 60) {
                hr = min / 60;
            System.out.println("This run took " + df.format(hr) + " Hours ;"+ df.format(min) + " Minutes ;" + df.format(sec) + " Seconds");
        }* How to Calcualte exact timing for my process....
    * Thanks

    * Hi flounder, Is following code will wotk perfectly?
         public static void endTime()
              DecimalFormat df = new DecimalFormat("##.##");
              long end_time = System.currentTimeMillis();
              float t = end_time - start_time;
              float sec = t / 1000;
              float min = 0, hr = 0;
              while(sec >= 60){
         min++;
         sec = sec -60;
         if (min >= 60){
         min = 0; //or min = min -60;
         hr++;
              System.out.println("This run took " + df.format(hr) + " Hours ;"+ df.format(min) + " Minutes ;" + df.format(sec) + " Seconds");
         }

  • Feature requests for Edge Code (Was: Needed some options...)

    I am a photo retoucher & I am new to web designing & started to learn....
    I am very happy to have Edge code CC as a code editor really good program. Thanks to Adobe Team...
    It would be better if you provide some more options :-
    1. If I type <bl in the Edge code CC it shows me blockquote its fine, but if I press spacebar after <bl accidentally then I press backspace to erase the space but after that it does not shows the code hint....
    2. I wrote code <h5> This is a headline </h5> and if I want to change h5 to h3, I have to change in both starting tag and end tag is there any option if I change the start tag it would automatically change in the end tag too....
    3.It would be nice if the Edge code CC giving dummy text to add. for ex: lorem impsum like....
    Thanks

    Thanks for your feedback.
    1. This should be fixed in the next Edge Code CC build. For now, use Ctrl-Space to re-invoke the hit list.
    2. That feature has been requested. It should be easy to implement once Edge Code CC has multiple cursor support, which should be coming soon. Stay tuned.
    3. There is an extension for this. Use File > Extension Manager, then click Install from URL... and paste in this URL:
    https://s3.amazonaws.com/extend.brackets/brackets-lorem-ipsum/brackets-lorem-ipsum-1.0.1.z ip
    You can browse the Brackets Extension Registry for more extensions.
    Randy

  • Help request for newbie code

    So I've been trying to learn java and practicing with simple stuff first. I'm trying to create an application to calculate the price of a pizza. I've been having to problem with it, but I can't figure out why.
    The first is that I am doing something wrong with GridBagLayout - the objects in the window aren't set up the way I think they should be. I've been experimenting with removing objects separately and I think the problem might lay with one of my borders. But I'm not sure. The border gets created like this:
    //Border for Toppings
              toppingsPanel = new JPanel();
              toppingsBorder = BorderFactory.createEtchedBorder();
              toppingsBorder = BorderFactory.createTitledBorder(toppingsBorder, "Toppings");
              toppingsPanel.setBorder(toppingsBorder);
              toppingsPanel.add(sausageCheckBox, getConstraints(0,1,3,1,GridBagConstraints.WEST));
              toppingsPanel.add(olivesCheckBox, getConstraints(3,1,3,1,GridBagConstraints.WEST));
              toppingsPanel.add(pepparoniCheckBox, getConstraints(0,2,3,1,GridBagConstraints.WEST));
              toppingsPanel.add(mushroomsCheckBox, getConstraints(3,2,3,1,GridBagConstraints.WEST));
              toppingsPanel.add(salamiCheckBox, getConstraints(0,3,3,1,GridBagConstraints.WEST));
              toppingsPanel.add(anchoviesCheckBox, getConstraints(3,3,3,1,GridBagConstraints.WEST));
              add(toppingsPanel, getConstraints(0,1,6,3,GridBagConstraints.CENTER));The GridBagConstraints are set up like this:
    public GridBagConstraints getConstraints(int gridx, int gridy, int gridwidth, int gridheight, int anchor)
              GridBagConstraints c = new GridBagConstraints();
              c.insets = new Insets(5, 5, 5, 5);
              c.ipadx = 0;
              c.ipady = 0;
              c.gridx = gridx;
              c.gridy = gridy;
              c.gridwidth = gridwidth;
              c.gridheight = gridheight;
              c.anchor = anchor;
              return c;
         }The second problem I suspect is bigger because it feels like I've missed some major java concept. I've tried to set it up so that there is a JTextField in the window and when the user clicks the "Calculate" button, the price shows up in the text field. The way it is right now, when the user clicks the Calculate button, absolutely nothing happens. The code for what the buttons do is:
    public void actionPerformed(ActionEvent e)
              Object source = e.getSource();
              if (source == exitButton)
                   System.exit(0);
              else if (source == calculateButton)
                   new UserImput();
         }UserImput calculates a price and then edits the textfield. Is this the best way to even being going about this? I have three major worries about the UserImput class. The first is that I'm unsure if it should be extending the class that sets up the panel and buttons. I have it extending that class, right now. The second worry is with the double price, which I use to calculate the price based the size and toppings that are selected. To modify the textfield, my compiler tells me I can only use Strings, so I have converted the double to a string using the following code:
    String givePrice;
    public String toString(double price) {
              return givePrice;
         }The third worry I have is with the modification to the text field. I actually think this is all correct but the text field doesn't display the price so maybe I'm using this incorrectly?
    public void modifyFields(){
              textFieldWithPrice.setText(givePrice);
              textFieldWithPrice.setColumns(10);
              textFieldWithPrice.setEditable(false);
         }Thanks for bearing with me on this. I've been trying to figure out what I've been doing wrong the last few days by messing around and googling but mostly I just find intros telling me how to set things up in different situations. Apologies for what I am sure is badly-done code.

    I didn't try out your gridbag code snippet but it looks like you might be trying to use the
    gridwidth constraint to control the display size of the checkBoxes. It doesn't work that
    way.
    Here's one way to put this (what it seems you are trying to do) together.
    import java.awt.*;
    import java.awt.event.*;
    import java.text.NumberFormat;
    import javax.swing.*;
    public class PizzaPanel implements ActionListener {
        JCheckBox[] checkBoxes;
        JLabel label;
        NumberFormat nf = NumberFormat.getCurrencyInstance();
        public void actionPerformed(ActionEvent e) {
            String ac = e.getActionCommand();
            if(ac.equals("CALCULATE"))
                showPrice();
            if(ac.equals("EXIT"))
                System.exit(0);
        private void showPrice() {
            double basicPrice = 5.00;
            double pricePerTopping = 0.75;
            int numberOfToppings = 0;
            for(int j = 0; j < checkBoxes.length; j++) {
                if(checkBoxes[j].isSelected())
                    numberOfToppings++;
            double price = basicPrice +
                           numberOfToppings * pricePerTopping;
            label.setText(nf.format(price));
        private JPanel getWestPanel() {
            String[] ids = {
                "sausage",   "olives", "pepperoni",
                "mushrooms", "salami", "anchovies"
            checkBoxes = new JCheckBox[ids.length];
            JPanel panel = new JPanel(new GridBagLayout());
            panel.setBorder(BorderFactory.createTitledBorder(
                                BorderFactory.createEtchedBorder(),
                                "Toppings"));
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.insets = new Insets(2,15,2,0);
            gbc.weightx = 1.0;
            gbc.weighty = 1.0;
            gbc.anchor = GridBagConstraints.WEST;
            gbc.gridwidth = GridBagConstraints.REMAINDER;
            for(int j = 0; j < checkBoxes.length; j++) {
                checkBoxes[j] = new JCheckBox(ids[j]);
                panel.add(checkBoxes[j], gbc);
            return panel;
        private JLabel getCenter() {
            label = new JLabel(" ");
            label.setHorizontalAlignment(JLabel.CENTER);
            label.setBorder(BorderFactory.createEtchedBorder());
            Dimension d = label.getPreferredSize();
            d.width = 150;
            label.setPreferredSize(d);
            return label;
        private JPanel getButtonPanel() {
            String[] ids = { "calculate", "exit" };
            JPanel panel = new JPanel();
            for(int j = 0; j < ids.length; j++) {
                JButton button = new JButton(ids[j]);
                button.setActionCommand(ids[j].toUpperCase());
                button.addActionListener(this);
                panel.add(button);
            return panel;
        public static void main(String[] args) {
            PizzaPanel test = new PizzaPanel();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(test.getWestPanel(), "Before");
            f.getContentPane().add(test.getCenter());
            f.getContentPane().add(test.getButtonPanel(), "Last");
            f.pack();
            f.setLocation(200,200);
            f.setVisible(true);
    }

  • Can't install beyond request for product code

    I am sure it has been covered before but I do not find the answer.  I am trying to load WinTen from .iso.  Although instructions say we do not need a product code, I can not progress beyond the screen asking for one.  If I leave it blank
    I can not effect the <Next> key.  If I insert anything, including the key for recovery, I am informed that the key does match.  What now?

    I am sure it has been covered before but I do not find the answer.  I am trying to load WinTen from .iso.  Although instructions say we do not need a product code, I can not progress beyond the screen asking for one.  If I leave it
    blank I can not effect the <Next> key.  If I insert anything, including the key for recovery, I am informed that the key does match.  What now?
    My reply is lengthy, I am afraid. Please bear with me.......
    1. MS is holding a big event to day at 9a.m Pacific time. It is possible that a new build of Windows 10 TP is going to be released, or even a Consumer Preview.
    So, you might want to find out what is being said in the event first.
    2. You are right. product key is not needed when one installs the Windows 10 TP.
    That said, here are the generic product keys for Enterprise version and non-Enterprise version.......
    Enterprise version : PBHCJ-Q2NYD-2PX34-T2TD6-233PK
    Non-Enterprise version : NKJFK-GPHP7-G8C3J-P6JXR-HQRJR
    3. Permit me to start from scratch regarding installing Win 10 TP.
    It is strongly suggested that you either install it in a virtual machine or dual booting with your existing OS.
    Please use the following download links to download the ISO file > then burn it to a bootable DVD and use the DVD to do a clean install.
    Enterprise direct download link:
    Windows
    10 Enterprise build 9879 64-bit ISO image
    Windows
    10 Enterprise build 9879 32-bit ISO image
    Non-enterprise download link :
    http://windows.microsoft.com/en-us/windows/preview-iso-update?os=win10
    How to burn iso to a bootable dvd:
    There are more than one program doing the same job. I personally use Windows USB/DVD Download Tool. It is easiest.
    http://www.microsoft.com/en-us/download/windows-usb-dvd-download-tool

  • Request for Trnxn code

    Hi
    Please let me know the transaction code used to configure timeout settings (eg: 10mins,15mins,.....) for a particular client.
    Thanks and Regards
    Vidya

    Hi,
    welcome.
    try SICF.
    You want to configure the timeout settings of the Internet Communication Manager (ICM) or the SAP Web Dispatcher. The SAP Web Application Server may issue HTTP timeout error messages. The error message displayed is "500 Connection timed out" if you have not defined your own dynamic ICM error pages. If the error occurs, you can use the note to help you with troubleshooting.
    Other terms
    keepalive, 402, 500, ICM_HTTP_TIMEOUT, ICM_HTTP_CONNECTION_FAILED
    Reason and Prerequisites
    You are using ICM Release 6.40 or higher for HTTP connections of the SAP Web AS. In other words, your kernel release is 6.40 or higher.
    Up to and including Release 7.00, ICM is only used in systems which also have an ABAP stack, and not in J2EE-only systems.
    You may also be using the SAP Web Dispatcher.
    Solution
    The note describes the following:
    Client and server roles of the ICM
    List of the various ICM timeout parameters
    Short description of the icm/conn_timeout parameter
    Description of "Processing timeout" and "Keepalive timeout"
    Configuration of the ICM parameters for the processing timeout and the keepalive timeout
    Timeout parameters in the SAP Web Dispatcher
    ICM kernel patches that affect timeouts
    There is detailed ICM documentation in the SAP Knowledge Warehouse.
    thanks
    karthik
    Edited by: KARTHIK on Jun 30, 2008 11:49 AM

  • Request for sample code of hr_ex_employee_api.actual_termination_emp

    Hi,
    I need sample code for hr_ex_employee_api.actual_termination_emp . anyone who worked on this api or who have knowledge of this api,Please send the sample code
    Thanks and Regards
    Dixit

    I do not have sample code but it is not a difficult API to call. I have worked on it before, so if you have a specific question on it, happy to help out if I can.

  • Request for sample code, Validating XML Schema

    Does anyone have some sample code to validate
    an XML Schema with the Oracle parser?
    Also, the classgen code seems to have more XML Schema classes in it. There is an xschema.jar full of XML Schema related code. Would it be possible to use this code?
    I've tried DOMSample.java with the v2 parser. It seems to happily echo Schema based XML files that are obviously wrong. (I use Tibco's XML Authority to verify the XML file and XML Schema).

    I do not have sample code but it is not a difficult API to call. I have worked on it before, so if you have a specific question on it, happy to help out if I can.

  • Request for unlocking code

    please i just received a sprint blackberry Q10 from my sister in US and is not unlocked. can you help me with the unlock code?

    allaineem wrote:
    for the unlock code that is being purchased on the service provider. On what country do you wish to use this device?
    See my link below to the Guide to Unlocking.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Component for Java Code in  ECM & EPM

    Hello All,
    We are implementing Enterprise Compensation Management and Performance management(EHP4) . We need to customize some of the screens on ESS/MSS tabs. What is the Java component that I can extract the code from and put it on NWDI? I know some of them are in ABAP WebDynpro and some are in Java WebDynpro. I am interested in Java Webdynpro  screens
    Please advise,
    Any kind of help appreciated.
    Thanks,
    Dileep

    Hi,
    Below mentioned are the required set of components.
    SAP ESS 603 SP6
    SAP MSS 600 SP17
    SAPPCUI_GP 603 SP6
    Current Base components are :
    sap.com_EP_BUILDT 7.01 SP6
    sap.com_EPBC 7.01 SP6
    sap.com_EPBC2 7.01 SP6
    sap.com_EP_PSERV 7.01 SP6
    sap.com_EP_WDC 7.01 SP6
    sap.com_SAP_BUILDT 7.01 SP6
    sap.com_SAP_JTECHS 7.01 SP6
    sap.com_SAP-EU 7.01 SP6
    sap.com_SAP-JEE 7.01 SP6
    If you are planning to do modification to standard ESS and MSS, I would suggest to create two tracks . On one track have standard ESS, MSS components and do not connect it to runtime system. This track can be used to lookup sap standard code at any point. And on the second track have you ESS. MSS components with modification and connect it to runtimes.

Maybe you are looking for