Pls Help :JTable Double Value Editing Problem

hi friends
as i am new to swings and Jtable pls help me if u can.
in the code copied below when i start putting value into the Double column of JTable
a ( .0 ) is appended at the end which is undesirable it should be like that only when the value is
something like 22.99 and also i want to limit the double value's fractional part to be limited to 2 digits only.
if this can be done in my Table model itself so that it will work everywhere i use this model
Pls tell me what exactly do i need, a custom Cell Editor or Cell Renderer. and whether can i do it in the
Table Model Defination class or whether i can only do it on the Jtable only.
guys its so confusing.pls help
if anyone can send a sample code for achieving this it would be of great help
import java.awt.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
import java.text.*;
public class TableProcessing extends JFrame implements TableModelListener
    JTable table;
    public TableProcessing()
        String[] columnNames = {"Item", "Quantity", "Price", "Cost"};
        Object[][] data =
            {"Bread", new Integer(1), new Double(1.11), new Double(1.11)},
            {"Milk", new Integer(1), new Double(2.22), new Double(2.22)},
            {"Tea", new Integer(1), new Double(3.33), new Double(3.33)},
            {"Cofee", new Integer(1), new Double(4.44), new Double(4.44)}
        DefaultTableModel model = new DefaultTableModel(data, columnNames);
        model.addTableModelListener( this );
        table = new JTable( model )
            //  Returning the Class of each column will allow different
            //  renderers to be used based on Class
            public Class getColumnClass(int column)
                return getValueAt(0, column).getClass();
            //  The Cost is not editable
            public boolean isCellEditable(int row, int column)
                if (column == 3)
                    return false;
                else
                    return true;
        table.setPreferredScrollableViewportSize(table.getPreferredSize());
        JScrollPane scrollPane = new JScrollPane( table );
        getContentPane().add( scrollPane );
     *  The cost is recalculated whenever the quantity or price is changed
    public void tableChanged(TableModelEvent e)
        if (e.getType() == TableModelEvent.UPDATE)
            int row = e.getFirstRow();
            int column = e.getColumn();
            if (column == 1 || column == 2)
                int    quantity = ((Integer)table.getValueAt(row, 1)).intValue();
                double price = ((Double)table.getValueAt(row, 2)).doubleValue();
                Double value = new Double(quantity * price);
                table.setValueAt(value, row, 3);
    public static void main(String[] args)
        TableProcessing frame = new TableProcessing();
        frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
        frame.pack();
        frame.setLocationRelativeTo( null );
        frame.setVisible(true);
}thank in advance
jags

No.
But further to this try:
public class MyCustomRenderer  extends javax.swing.table.DefaultTableCellRenderer
          private java.text.DecimalFormat FORMAT_DOUBLE;
          public MyCustomRenderer()
                  FORMAT_DOUBLE = new java.text.DecimalFormat("#, ##0.00");
          public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
                    //NB! you could also set foreground/background here to indicate positive/negative values...
                    if(value.getClass().equals(Double.class))//is this a double?
                            double d = ((Double)value).doubleValue();
                            d = (Double.isNaN(d)||Double.isInfinity(d))?0:d;
                            this.setText(FORMAT_DOUBLE.format(d));
                    else//not a double so let's toString() it...
                           this.setText(""+value);
}then, using code pasted above, specify a new instance of this class as the default renderer in your
table.....
:)

Similar Messages

  • Pls Help! Drag and Drop problem, identical symbols acting differently - same code! WHY?

    In the attached file, I have a series of symbols that have a drag and drop command to change colour at different sections of a bullseye, and that are also text editable (html).
    However, some of the symbols get stuck and will not be moved after moving once or at all, and some get stuck once their text has been edited.
    I have poured over the code and it appears to be the same for each symbol - can anyone explain as to why this is happening?
    I also cannot now edit the text properly on the ipad (it is really fiddly to change between different symbols to edit their text -- is there maybe a better way to do this? A button to change between symbols to then edit their text, can you help with this too?)
    THANK YOU SO MUCH!!!
    File here:
    https://www.dropbox.com/s/g71gnfichjgyehn/NEW%20RISK%20RADAR.zip

    Hi, I think I undertsand what you mean now, so the code is as below, btu I am not sure what a handler is? but some of my risks still get stuck once the text has been changed on them:
    // Use for loop for attr
    // deleted  yepnope since you load with scropt loading
    // added pos for each symbol so we can replace them there.
    document.ontouchmove = function(e) {
            e.preventDefault();
    var risk = ;
    var Pos = [
    {'x':-9,'y':806},
    {'x':27,'y':854},
    {'x':72,'y':894},
    {'x':71,'y':934},
    {'x':231,'y':811},
    {'x':231,'y':853},
    {'x':231,'y':894},
    {'x':231,'y':934},
    {'x':388,'y':811},
    {'x':388,'y':852},
    {'x':388,'y':893},
    {'x':388,'y':934},
    {'x':543,'y':811},
    {'x':543,'y':853},
    {'x':543,'y':893},
    {'x':543,'y':934}
    var myText = ; 
    for (i=0;i<risk.length;i++){
    sym.getSymbol(risk[i]).$(risk[i]).attr("contenteditable",true);
    sym.$('Quadrant_text').attr("contenteditable",true);
    sym.$('Quadrant1_text').attr("contenteditable",true);
    sym.$('Quadrant2_text').attr("contenteditable",true);
    sym.$('Quadrant3_text').attr("contenteditable",true);
    // apply the draggable JQuery UI plugin to the MyDraggableSymbol symbol on your stage
    sym.$('Risk1').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk1").stop("Initial");
      sym.setVariable("symName","Risk1");
    //adding for risk3_orange similarly add for other symbols
    sym.$('Risk1').draggable();
    sym.getSymbol('Risk1').$("Risk1").bind('click tap',function(ev) {
         sym.$('Risk1').draggable('disable');
    }).unbind('dblclick tap',function(ev) {
         sym.$('Risk1').draggable('enable');
    sym.$('Risk2').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk2").stop("Initial");
      sym.setVariable("symName","Risk2");
    //adding for Risk2 similarly add for other symbols
    sym.$('Risk2').draggable();
    sym.getSymbol('Risk2').$("Risk2").bind('click tap',function(ev) {
         sym.$('Risk2').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk2').draggable('enable');
    sym.$('Risk3').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk3").stop("Initial");
      sym.setVariable("symName","Risk3");
    //adding for Risk3 similarly add for other symbols
    sym.$('Risk3').draggable();
    sym.getSymbol('Risk3').$("Risk3").bind('click tap',function(ev) {
         sym.$('Risk3').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk3').draggable('enable');
    sym.$('Risk4').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk4").stop("Initial");
      sym.setVariable("symName","Risk4");
    //adding for Risk4 similarly add for other symbols
    sym.$('Risk4').draggable();
    sym.getSymbol('Risk4').$("Risk4").bind('click tap',function(ev) {
         sym.$('Risk4').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk4').draggable('enable');
    sym.$('Risk5').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk5").stop("Initial");
      sym.setVariable("symName","Risk5");
    //adding for Risk5 similarly add for other symbols
    sym.$('Risk5').draggable();
    sym.getSymbol('Risk5').$("Risk5").bind('click tap',function(ev) {
         sym.$('Risk5').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk5').draggable('enable');
    sym.$('Risk6').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk6").stop("Initial");
      sym.setVariable("symName","Risk6");
    //adding for Risk6 similarly add for other symbols
    sym.$('Risk6').draggable();
    sym.getSymbol('Risk6').$("Risk6").bind('click tap',function(ev) {
         sym.$('Risk6').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk6').draggable('enable');
    sym.$('Risk7').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk7").stop("Initial");
      sym.setVariable("symName","Risk7");
    //adding for Risk7 similarly add for other symbols
    sym.$('Risk7').draggable();
    sym.getSymbol('Risk7').$("Risk7").bind('click tap',function(ev) {
         sym.$('Risk7').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk7').draggable('enable');
    sym.$('Risk8').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk8").stop("Initial");
      sym.setVariable("symName","Risk8");
    //adding for Risk8 similarly add for other symbols
    sym.$('Risk8').draggable();
    sym.getSymbol('Risk8').$("Risk8").bind('click tap',function(ev) {
         sym.$('Risk8').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk8').draggable('enable');
    sym.$('Risk9').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk9").stop("Initial");
      sym.setVariable("symName","Risk9");
    //adding for Risk9 similarly add for other symbols
    sym.$('Risk9').draggable();
    sym.getSymbol('Risk9').$("Risk9").bind('click tap',function(ev) {
         sym.$('Risk9').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk9').draggable('enable');
    sym.$('Risk10').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk10").stop("Initial");
      sym.setVariable("symName","Risk10");
    //adding for Risk10 similarly add for other symbols
    sym.$('Risk10').draggable();
    sym.getSymbol('Risk10').$("Risk10").bind('click tap',function(ev) {
         sym.$('Risk10').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk10').draggable('enable');
    sym.$('Risk11').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk11").stop("Initial");
      sym.setVariable("symName","Risk11");
    //adding for Risk11 similarly add for other symbols
    sym.$('Risk11').draggable();
    sym.getSymbol('Risk11').$("Risk11").bind('click tap',function(ev) {
         sym.$('Risk11').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk11').draggable('enable');
    sym.$('Risk12').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk12").stop("Initial");
      sym.setVariable("symName","Risk12");
    //adding for Risk12 similarly add for other symbols
    sym.$('Risk12').draggable();
    sym.getSymbol('Risk12').$("Risk12").bind('click tap',function(ev) {
         sym.$('Risk12').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk12').draggable('enable');
    sym.$('Risk13').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk13").stop("Initial");
      sym.setVariable("symName","Risk13");
    //adding for Risk13 similarly add for other symbols
    sym.$('Risk13').draggable();
    sym.getSymbol('Risk13').$("Risk13").bind('click tap',function(ev) {
         sym.$('Risk13').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk13').draggable('enable');
    sym.$('Risk14').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk14").stop("Initial");
      sym.setVariable("symName","Risk14");
    //adding for Risk14 similarly add for other symbols
    sym.$('Risk14').draggable();
    sym.getSymbol('Risk14').$("Risk14").bind('click tap',function(ev) {
         sym.$('Risk14').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk14').draggable('enable');
    sym.$('Risk15').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk15").stop("Initial");
      sym.setVariable("symName","Risk15");
    //adding for Risk15 similarly add for other symbols
    sym.$('Risk15').draggable();
    sym.getSymbol('Risk15').$("Risk15").bind('click tap',function(ev) {
         sym.$('Risk15').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk15').draggable('enable');
    sym.$('Risk16').draggable(,
    drag: function(e,ui)
      sym.getSymbol("Risk16").stop("Initial");
      sym.setVariable("symName","Risk16");
    //adding for Risk16 similarly add for other symbols
    sym.$('Risk16').draggable();
    sym.getSymbol('Risk16').$("Risk16").bind('click tap',function(ev) {
         sym.$('Risk16').draggable('disable');
    }).bind('dblclick tap',function(ev) {
         sym.$('Risk16').draggable('enable');
    sym.getSymbol("Drop").$('Outer').droppable(
    sym.getSymbol("Drop").$('Middle').droppable(
    sym.getSymbol("Drop").$('Target').droppable(
    sym.$('resetBtn').click(function(){
      sym.$('Quadrant_text').html('Quadrant');
      sym.$('Quadrant1_text').html('Quadrant');
      sym.$('Quadrant2_text').html('Quadrant');
      sym.$('Quadrant3_text').html('Quadrant');
    for (i=0;i<risk.length;i++){
      sym.$(risk[i]).css({"left":Pos[i].x,"top":Pos[i].y,"position":"absolute"})
      sym.getSymbol(risk[i]).stop(0);
      sym.getSymbol(risk[i]).$(risk[i]).html("Challenge");
    But is still doesn't work,
    Subject: Re:  Pls Help! Drag and Drop problem, identical symbols acting differently - same code! WHY?

  • Pls help me our for date problem.

    There are two tables a header and a detail
    In the details is having start_time and end_time
    I put a format mask that I want to show only hh24: mi.
    The problem is if, I changed the hh24: mi values the date bounds back to the first day of the current month. Why it's so?
    I used another field st,et(start_time & end_time) these are non-database items of number type and here also I put the format mask hh24: mi. So the data goes in the database in the form of seconds.
    I want in start_time and end time (sysdate +the hh24: mi value I given)
    How to do this??????.Any idea .Pls help me out ....
    [email protected]

    machan nuwan,
    there are two way
    client side genaration(flex)
    server side genaration(java,php,crystal report...)
    client side
    My openion is before u print.
    create pdf in your server and save (then client can access it by usinf URL)
    keep the saved location(URL) in DB and then
    pass the URL to client (when you are doing reporting this process is happenning machan)
    see this link for more(me link1 balapan tawa.mage 1k newei)hope this will help u. http://amthekkel.blogspot.com/2010/09/flex-web-app-generating-pdf-reports.html
    otherwise u can genarate reports using crystal report or what ever tool and put into server then pass the URL to client then client can access the pdf and print it.
    hope this will help you machan.thnx

  • Back up problem. Pls help me to solve the problem.

    Dear Apple support team,
    When I connect ipod to Itunes, the process of verifying and backing up is too long. And Itunes makes all programs such as firefox, yahoo messenger... run slowly. After syncing, the notice is appeared as below:
    Therefor, I do not know whether the Itunes create backup or not
    Pls help to check and solve this problem.
    Thanks for your support
    Lolly

    I can't give you the adequate support, but maybe the iTunes forume can: https://discussions.apple.com/community/itunes/itunes_for_windows / https://discussions.apple.com/community/itunes/itunes_for_mac

  • HT4060 my i pad show the charging green light .it works properly .however it was 37% battery charged and i tried to charge it .but it refused to charge .pls help .i had the same problem a while ago and then suddenly it charged on its on .pls help

    my i pad is not charging ,however it shows the green light and charging signs
    .before i had this problem, then it started charging on its own . now i was abroad it was 37% charged .was going to charge it for the journey and it stopped charging again .but it works excellent except for the charging .it still works but i am not using it now .just left it on the charger .the green light and the battery sign shows its charging ,but the i pad now is 35% the battery power .pls help .i cant aford another pad .i am broke and i am so much used to it

    It may just be giving you false battery info. Unless it actually dies prematurely, Its just a software error. I would recommend restoring. http://support.apple.com/kb/ht1414

  • Why can i not open my iphoto library??can somebody pls help me resolve my this problem..

    its my 1st time to have a macbook pro..why cant i pen my iphoto library??can somebody pls help me on how to resolve this problem..asap

    Open iPhoto and all your photos will appear, if you are looking for the folder of iPhoto is on the sidebar of a finder window called "Pictures" and there's a file called "iPhoto Library", press control and click on the file and choose "show package contents" and look for the photos...

  • Pls help me with this installation problem. Your advice is highly needed.

    I am installing oracle 11.1.6.0 on windows xp professional everything was going fine untill there was a pop up that reads below
    INFO: exit-tool: Launch browser
    INFO: saving exit only tools ...
    INFO: no detached only tools in this session
    INFO: exit-only tools are created in single installation
    INFO: no. of sets of tools to be run: 1
    INFO: ca page to be shown: true
    INFO: exitonly tools to be excuted passed: 1
    INFO: Starting to execute configuration assistants
    INFO: Command = C:\WINDOWS\system32\cmd /c call c:\app\doN H\home/bin/netca.bat /orahome c:\app\doN H\home /orahnam OraDb11g_home1 /instype typical /inscomp client,oraclenet,javavm,server,ano /insprtcl tcp,nmp /cfg local /authadp NO_VALUE /nodeinfo NO_VALUE /responseFile c:\app\doN H\home\network\install\netca_typ.rsp
    Command = C:\WINDOWS\system32\cmd /c call c:\app\doN H\home/bin/netca.bat has failed
    Execution Error : 'c:\app\doN' is not recognized as an internal or external command,
    operable program or batch file.
    INFO: Configuration assistant "Oracle Net Configuration Assistant" failed
    *** Starting OUICA ***
    Oracle Home set to c:\app\doN H\home
    Configuration directory is set to c:\app\doN H\home\cfgtoollogs. All xml files under the directory will be processed
    INFO: The "c:\app\doN H\home\cfgtoollogs\configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.
    INFO:
    The Runconfig command constructed is C:\app\doN H\home\oui\bin\runConfig.bat ORACLE_HOME=C:\app\doN H\home MODE=perform ACTION=configure RERUN=false $*
    INFO: Since there is an Internal Plugin Invocation or a Java Plugin Invocation tool in the Oracle Home C:\app\doN H\home we use the runConfig Command instead of the plugin's command
    INFO: Created a new file C:\app\doN H\home\cfgtoollogs\configToolFailedCommands
    INFO: Since the option is to overwrite the existing C:\app\doN H\home\cfgtoollogs\configToolFailedCommands file, backing it up
    INFO: The backed up file name is C:\app\doN H\home\cfgtoollogs\configToolFailedCommands.bak
    SEVERE: OUI-25031:Some of the configuration assistants failed/cancelled. It is strongly recommended that you retry the configuration assistants at this time. Not successfully running any "Recommended" assistants means your system will not be correctly configured.
    1. Check the Details panel on the Configuration Assistant Screen to see the errors resulting in the failures.
    2. Fix the errors causing these failures.
    3. Select the failed assistants and click the 'Retry' button to retry them.
    INFO: User Selected: Yes/OK
    INFO: Starting to execute configuration assistants
    INFO: Command = C:\WINDOWS\system32\cmd /c call c:\app\doN H\home/bin/netca.bat /orahome c:\app\doN H\home /orahnam OraDb11g_home1 /instype typical /inscomp client,oraclenet,javavm,server,ano /insprtcl tcp,nmp /cfg local /authadp NO_VALUE /nodeinfo NO_VALUE /responseFile c:\app\doN H\home\network\install\netca_typ.rsp
    Command = C:\WINDOWS\system32\cmd /c call c:\app\doN H\home/bin/netca.bat has failed
    Execution Error : 'c:\app\doN' is not recognized as an internal or external command,
    operable program or batch file.
    INFO: Configuration assistant "Oracle Net Configuration Assistant" failed
    *** Starting OUICA ***
    Oracle Home set to c:\app\doN H\home
    Configuration directory is set to c:\app\doN H\home\cfgtoollogs. All xml files under the directory will be processed
    INFO: The "c:\app\doN H\home\cfgtoollogs\configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.
    INFO:
    The Runconfig command constructed is C:\app\doN H\home\oui\bin\runConfig.bat ORACLE_HOME=C:\app\doN H\home MODE=perform ACTION=configure RERUN=false $*
    INFO: Since there is an Internal Plugin Invocation or a Java Plugin Invocation tool in the Oracle Home C:\app\doN H\home we use the runConfig Command instead of the plugin's command
    INFO: Since the option is to overwrite the existing C:\app\doN H\home\cfgtoollogs\configToolFailedCommands file, backing it up
    INFO: The backed up file name is C:\app\doN H\home\cfgtoollogs\configToolFailedCommands.bak.1
    SEVERE: OUI-25031:Some of the configuration assistants failed/cancelled. It is strongly recommended that you retry the configuration assistants at this time. Not successfully running any "Recommended" assistants means your system will not be correctly configured.
    1. Check the Details panel on the Configuration Assistant Screen to see the errors resulting in the failures.
    2. Fix the errors causing these failures.
    3. Select the failed assistants and click the 'Retry' button to retry them.
    INFO: User Selected: No
    1...The Netmgr and the ODCA was not properly configured and they are not opening on the windows enviroment.
    2...The sqlplus, whenever called up, aooears and disappears in 1 second
    3...I can not connet to the database. Says adapter error
    4...Will 1 start the listner before i can connect and how?
    Ur contribution is highly needed. TNX

    I am installing oracle 11g on windows xp, everything installed suceessfully except the enterprise control. the error reads
    Jan 14, 2011 5:32:30 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleorcl1' to fully start
    Jan 14, 2011 5:32:40 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleorcl1' to fully start
    Jan 14, 2011 5:32:51 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleorcl1' to fully start
    Jan 14, 2011 5:33:01 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleorcl1' to fully start
    Jan 14, 2011 5:33:11 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleorcl1' to fully start
    Jan 14, 2011 5:33:21 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleorcl1' to fully start
    Jan 14, 2011 5:33:31 PM oracle.sysman.emcp.util.PlatformInterface serviceCommand
    CONFIG: Waiting for service 'OracleDBConsoleorcl1' to fully start
    Jan 14, 2011 5:33:41 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error starting Database Control
    Refer to the log file at G:\app\doN_H\cfgtoollogs\dbca\orcl1\emConfig.log for more details.
    Jan 14, 2011 5:33:41 PM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error starting Database Control
    at oracle.sysman.emcp.EMDBPostConfig.performConfiguration(EMDBPostConfig.java:869)
    at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:250)
    at oracle.sysman.emcp.EMDBPostConfig.invoke(EMDBPostConfig.java:213)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:235)
    at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:460)
    at java.lang.Thread.run(Thread.java:595)
    Jan 14, 2011 5:33:41 PM oracle.sysman.emcp.EMConfig restoreOuiLoc
    CONFIG: Restoring oracle.installer.oui_loc to G:\app\doN_H\product\11.1.0\db_1\oui
    It also told me that i can configure it later by running G:\app\doN_H\product\11.1.0\db_1\BIN\emca.script
    Pls help me. I appreciate ur help so far.

  • The Keyboard clicks are not working despite the Keyboard click in settings are ON. Am using IOS 6.1.3.Pls Help me to rech this problem.

    The Keyboard clicks are not working despite the Keyboard click in settings are ON. Am using IOS 6.1.3.Pls Help me to rech this problem

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • Jtable's tablecell editing problem

    there are some jcomponets in a jframe(jtable, jtextfield, jbutton, eg.), i edit in a tablecell in the jtable first, then i click another tablecell , when the first tablecell's value i just edited has committed; but when i click on jtextfield (another jcomponent different from jtable ) instead of another tablecell , the editted value in the first tablecell isn't commited.
    how can i do if i want to commit the value in the first tablecell when i click on a jtextfield?

    i have found the answer ,
    table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);

  • Help - Rounding Double Value to 1d.p

    Hi there, I have a value which is going to be entered via keyboard it will be something like $309.99 or $856.87 and I need it to be rounded to the nearest 10C. E.g $309.99 would become $310.00 and $856.87 -> $856.90
    It doesn't even need to be at 1d.p but just round up to nearest 10C...
    Any help will be greatly appreciated..
    Thanks..

    I need it to be rounded to the nearest 10C.It's not quite clear what you mean by this. Should the number itself change to
    the nearest 0.1 of a dollar? Or should string used to display the number
    be made to resemble the examples you give ($310.00 etc)? The two
    things are very different, although both could be described as "rounding".
    public class RoundEg {
         public static void main(String[] args) {
              double d = 12.345;
                   // creates the string "$12.30"
              String s = String.format("$%.1f0", d);
              System.out.println(d + " --> " + s);
                   // changes d to 12.3
              d = Math.round(d * 10) / 10.0;
              System.out.println(d);
    }String.format() is 1.5, you might also have a look at the DecimalFormat class.

  • Urgent , Pls help me in solving this problem

    Hi
    Pls let me know how do I present the following code using decode or case when. I need to select a column value based on the following condition. How do I put this condition while querying data using select statement.
    if optpremccy='usd' then historic_rates.rate_mid=1
    else if
    select rate_mid from historic_rates
    where table1.TYPE_KEY=HISTORIC_RATE_TYPES.TYPE_KEY )
    AND ( table1.RATE_DATE=VALUATION_CONTROL.BUSINESS_DATE )
    AND ( table2.RATE_TYPE=1 )
    AND ( table2.TENOR=1 )
    AND ( table2.RATE_SOURCE=9 )
    AND ( table2.FIRST_CCY='USD' )
    AND ( table2.SECOND_CCY=optionpremccy.CCY )
    else
    select rate_mid from table1
    where table1.TYPE_KEY=table2.TYPE_KEY )
    AND ( table1.RATE_DATE=VALUATION_CONTROL.BUSINESS_DATE )
    AND ( table2.RATE_TYPE=1 )
    AND ( table2.TENOR=1 )
    AND ( table2.RATE_SOURCE=9 )
    AND ( table2.FIRST_CCY='USD' )
    AND ( table2.SECOND_CCY=optionpremccy.CCY )
    and also change the value of rate_mid as follows rate_mid = 1/rate_mid

    Hi,
    You have not got any reply yet because your question is not complete.
    1. What should be the query for if condistion??
    2. What is your elsif condition??
    3. You are using more than one tables in both of the queries you wrote but in from you only used 1 table.???
    Regards
    Ghulam

  • Pls help me with smart card problem

    Hi,
    currently, i'm developing a system for my final year project. i've developed a webpage in PHP for clinic management. i also implement smart card in my system. the point of it is to make it easier for both parties - doctor and patient. each time patient comes to receive treatment, doc will check patient's smart card on previous drugs prescription. so then, doc will update it based on the treatment given on that day.
    the problem is, how i want to transmit the data from smart card to be displayed in the php page? maybe i should use applet but i don't know how.
    does anybody has applet source code on transmitting data from smart card to php page?
    i wud b really appreciate it...... thanks in advance.

    Have you checked the Schlumberger web site?
    What do you mean by "parsing from applet to php"? Parsing really isn't a data transfer method except maybe in a very tenuous sense.
    And do you really mean an applet (a small program run on the client and embedded in a web page) or are you using it as shorthand for any java program?
    If an applet, I suppose you could:
    1) use javascript to connect the applet to the web page, which would just happen to be created using PHP. So it would be all client-side operation.
    2) use HttpURLConnection (or, God help you, direct socket connections) to connect to a web server and interact with PHP to give/get data. In this case it would be client/server behavior, but the applet would have minimal interaction with the PHP page it's embedded in.
    3) Make it really fun (i.e.: complicated) by using javascript to connect to the page, and then use AJAX to connect to the server. I have no idea whether that's even possible using PHP.
    Maybe there are other options I haven't thought of.

  • Pls help me to solve printing problem

    My recent project is a financial application developed by using Adobe Flex. Here I want to print the customer's passbook from my flex application. Actually Flex application is running on a server. This will be used by Bank Cashiers (clients)  and the printouts should be taken out from the client printer. 
    My problem is I don't have a idea to how to solve this problem. ( Generating printouts are send it to client printers  )
    Can any one help me?

    machan nuwan,
    there are two way
    client side genaration(flex)
    server side genaration(java,php,crystal report...)
    client side
    My openion is before u print.
    create pdf in your server and save (then client can access it by usinf URL)
    keep the saved location(URL) in DB and then
    pass the URL to client (when you are doing reporting this process is happenning machan)
    see this link for more(me link1 balapan tawa.mage 1k newei)hope this will help u. http://amthekkel.blogspot.com/2010/09/flex-web-app-generating-pdf-reports.html
    otherwise u can genarate reports using crystal report or what ever tool and put into server then pass the URL to client then client can access the pdf and print it.
    hope this will help you machan.thnx

  • My imac stops(freezes) everytime when I try to extract ipod nano. So if I quit the connection by force, it stops again. Have no choice but to shut down the imac pushing power supply button. Pls help me solve out this problems.

    My imac stops everytime when I try to extract ipod nano. So if I do it by force it freezes agian. Have no choice but to shut down the computer
    by pushing power button. Pleas help me solve this out!!!
    It's not good to shut off the power forcibly, right? (I dun know what else I can do...)

    Hi Min! I'm having exactly the same issue - have been putting up with it now for months but have finally had enough! Every single time i eject either my iphone, ipad or ipod nano, itunes freezes up, the computer becomes unresponsive. Usually i can use the mouse to highlight icons but the system doesn't respond, the keyboard doesn't work and I have to do a hard reset.
    Arrrrrggggggh!!!!!!! lol
    Someone please help!!!

  • I have downloaded latest firefox browser and flash player. But when playing video in youtube, I could only hear sound not the video. Upon checking the plugins, the flash player is installed.........pls help me to solve this problem

    couldn't do anything to the video toolbar, only black screen

    This is the most reported problem this week. Here's an entire thread of solutions that may or may not work:
    https://support.mozilla.com/en-US/questions/776670
    Looking through the thread, it seems like several different problems all manifesting themselves in the same way. Some people had to disable hardware acceleration in Flash, others had to delete their profile, and others yet just had to clear their cache... makes no sense.

Maybe you are looking for

  • Problem execution web service which display a table

    Hi everybody, I create a web dynpro appication which calls an Adaptative Web Service. The associated RFC ZTEST_ROD takes 2 inputs parameters and delivers a table like this:      - Field Import: MATNR type MATNR     WERKS type WERKS_D      - Field Tab

  • Photo resolution with iCloud photo-library bèta.

    You guys probably know about the new iCloud photo-library beta version. This is what Apple says: " iCloud Photo Library helps you make the most of the space available on your iOS device by automatically storing the original high-resolution photos and

  • Mac App Store re-installation

    I did system restore for OSX 10.9.5 using Time Machine. Unfortunately, I did not back up the application, which end up no application was installed after restoration including the MAC App Store. I try to get it installed online, however, I cannot vie

  • HP Pavilion M9100t will not power on

    The other night there was a thunderstorm with a large amount of lightning, so as a precaution I turned off my computer and powered down the power strip it was plugged into. We did not lose power from the storm, or experience any surges that I'm aware

  • CRM 2013 - Internal query related to fetching top 51 emails

    Hello All, We have recently upgraded from CRM 4 to CRM 2013. We are monitoring database server performance through one of the tool. We find that following internal query getting executed more frequently during initial business hours. (@ModifiedOn0 da