Click ComboBox in JTable to times before editing ?

Hi,
I have a JComboBox in a JTable.
Now I want to open the ComboBox when
you click the cell to times.
There is a method in DefaultCellEditor called
setClickCountToStart(int).
But how can I get the reference to the DefaultCellEditor
from my JTable. There is only a method theTable.getDefaultEditor
which returns TableCellEditor ?
Thanx Stephan

I made it run right in jdk1.3.1 throgh chage the setSelectedItem Method, code is follow:
public void setSelectedItem(Object item) {
    this.insertItemAt(item, 0);
    if(getItemCount() > 1) {
      this.removeItemAt(1);
    super.setSelectedItem(item);
}

Similar Messages

  • When I try to play a flash video (like youtube) i have to click a flash button several times before it works. Why do flash videos not recogonize any clicks without several tries first?

    When I try to go to a flash video, the video player never seems to recognize my mouse clicks without several tries.
    It's hard to explain but if I'm at a youtube video and i place my cursor over the button that lets you skip around the video, the cursor will alternate being a cursor (like its not recognized) and a hand like its supposed to. It's sort of keeps flickering between the two if I move the mouse around on that little skip button.
    I tried uninstalling firefox but it didn't make a difference. I noticed it after updating to the newer firefoxe updates. This does not happen under IE.
    thank you for your help.

    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Press the '''Alt''' or '''F10''' key to bring up the tool bar.
    Followed by;
    Windows; '''Tools > Options'''
    Linux; '''Edit > Preferences'''
    Mac; ''application name'' '''> Preferences'''
    Then '''Advanced > General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites and see if there is still a problem. Then restart.

  • Problem of selecting combobox in JTable!!

    I click comboBox in jtable and choose one item
    then move mouse away
    and then click the comboBox again
    It turns out to be strange:
    the selectedItem of the comboBox changes the first item at once
    I refered to the demo "TableRenderDemo.java" in http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/TableRenderDemo.java
    I just wanna do things like that
    but for some unknown reasons,I fail
    I compared two codes but found nothing

    here I'm giving a simple sample code. Refer this..
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import java.awt.*;
    public class Class1 extends JFrame {
    JScrollPane jScrollPane1 = new JScrollPane();
    JTable editableTable1 = new JTable(3, 3);     
    public Class1() {
    try {          
    JComboBox c = new JComboBox();
    c.setEditable(true);
    c.addItem("a");
    c.addItem("b");
    DefaultCellEditor cellEditor = new DefaultCellEditor(c);
    TableColumn tc = editableTable1.getColumnModel().getColumn(0);
    tc.setCellEditor(cellEditor);
    this.getContentPane().setLayout(null);
    jScrollPane1.setBounds(new Rectangle(25, 19, 330, 180));
    this.getContentPane().add(jScrollPane1, null);
    jScrollPane1.getViewport().add(editableTable1, null);
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent we) {
    System.exit(0);
    } catch(Exception e) {
    System.out.println("Exception in Class1:"+e);
    public static void main(String[] args) {
    Class1 class1 = new Class1();
    class1.setSize(400, 400);
    class1.setVisible(true);

  • At times when dragging the vertical scroll bar my computer screen oscillates up and down for some time before going blank or not responding to any clicks requiring a forced system restart. What is wrong?

    Hi,
    Suddenly while working with Firefox if I happen to drag the vertical scroll bar, a very abnormal behavior occurs. My screen dances up and down for a short time before either going black or getting restored but with no clicks working. The only way to resume is to force a restart of the system.
    Any help would be deeply appreciated.
    Thanks and Regards
    Deepak

    That didn't work. On trying to install a new driver I got the error the graphics driver could not find compatible graphics hardware. Is there anything else that can be done to at least prevent the hanging of the computer even if it means less features from Firefox being available?

  • Having trouble with the touch pad responding when I click it on the macbook pro I have to click it about 3 to 4 times before it works

    has anyone had trouble with the touch pad on the macbook pro not working properly. I have to click it 3 or 4 times befre it responds. Can these be replaced?

    Your MacBook Pro has enough compute power to do airframe stress analysis modeling or weather forecasting. This is not a computational issue.
    Most USB printers do the imaging on the Mac, then send the stream of bits to the printer. The speed of doing this depends on the Printer driver.
    Some drivers will image the page in "slices", and then pause to image the next slice after the first one completes. This may also depend on whether you have enough RAM memory available to do the imaging for a whole page at a time.
    You have not mentioned what Printer, or whether this is indeed the latest driver for it.

  • Hello  Simple problem - don,t know how to solve it.  With Premiere CC when I try to do a selection (click... drag... release the click) very often it stop way before the end of the move I'm swinging the Magic Mouse. I taught that the mouse clicking was de

    Hello
    Simple problem - don,t know how to solve it.
    With Premiere CC when I try to do a selection (click... drag... release the click) very often it stop way before the end of the move I'm swinging the Magic Mouse. I taught that the mouse clicking was defective and went to get a new Magic Mouse after lots of frustration. Today, I have an edit to do it it does the SAME thing !!
    I was like ????#$%?&*(???
    Opened all the lights and taught I've trow the new mouse to the garbage and was using the defective mouse again... no !! - ??
    Actually, the bran new mouse is doing the same thing. What I understand after investigating on the motion and watching carefully my fingers !! -  is that when I click I have to keep my finger at the EXACT same place on the mouse... drag and release and it's fine. If I click by pushing on the mouse and my finder is moving of a 1/32th of a millimeter, it will release and my selection will be to redo. You can understand my frustration ! - 75$ later... same problem, but I know that if I click with about 5 pounds of pressure and trying to pass my finger through the plastic of the mouse, it you stay steady and make it !
    The problem is that scrolling is enable while clicking and it bugs.
    How to disable it ??
    Simple question - can't find the answer !

    Helllooo !?
    sorry but the Magic Mouse is just useless with the new Adobe Premiere CC and since I'm not the only one but can't find answer this is really disappointing. This mouse is just fantastic and now I have to swap from a USB mouse to the Magic Mouse every times I do some editing. My USB mouse if hurting my hand somehow and I want to got back to the Magic Mouse asap. Please - for sure there is a simple solution !
    Thanks !!

  • I Have to type login data two times befor forwarding

    Hello
    I have a problem, if I start my application I am on the page 101 (login).
    If I type my name and password, and click OK, then I dont go to my first page.
    Instead of that I go to my login in page again.
    If I type my login data a second time and click OK, then I go to my first application page.
    OK?
    I repeat, I have to type login data two times, befor I go away from my login page.
    Can anybody tell me why?

    ok I found out following:
    If I go to my login page and look into my application elements I see following:
    FSP_AFTER_LOGIN_URL with value: -
    I type in my login data and press enter, and I keep on my loginpage.
    If I look into my application element again I see following:
    FSP_AFTER_LOGIN_URL with value: f?p=31370|1|1|2690545713467739
    thats the right value,
    But why is that element not set on my fist login???
    Can anybody say it me?
    I tryed to set the FSP_AFTER_LOGIN_URL element manul.. now its set since the begin..
    but I have to login twice times anymore..
    Edited by: Markus Taubek on 26.09.2008 12:08

  • Ipad2 gives me ""accessory is not supported" message w/ VGA adapter that I used lots of times before. Now it's not working. Why? and how do I get it back to normal functioning?

    Ipad2 gives me ""accessory is not supported" message w/ VGA adapter that I used lots of times before. Now it's not working. Why? and how do I get it back to normal functioning?
    I used the (Apple branded) VGA adapter lots of times last year. Now I got back to one place I used it many times and it does not work. When I restart iPad with the adapter connected, I get the "accessory is not supported"message. But that same accessory WAS supported before.
    This is very annoying as I planned a whole bunch of presentations starting this week to do with my iPad2 and that adapter.

    I received the same error message, "Accessory Not Supported"  from both the VGA and DV video adapters I purchased, both were boxed direct from Apple. However, to bypass this problem I  simply clicked on Photos icon on iPad2 and flipped through photos until it displayed on my projector.  I then exited the Photos app and my home screen displayed fine on the projection screen.
    Some logic issue with the video adapters, but launching Apple Photo app initializes the video adapters then they work fine for mirroring after that.
    Platform: iPad2
    IOS: 5.1.1
    Best regards!

  • PE9 crashes all the time while editing on Mac OS X

    Maybe I have wrong system settings in the editing program, because every time I make the smallest change, eg. add text, the PE9 crashes. I have to render the work area after each text addition and sometimes the program crashes 5 or more times before it finishes rendering. I'm spending more time restarting the program than actually editing and we're not talking about anything fancy, special effects, layers or such, but just adding a little title here and there... :-(
    Could you please help, this is driving me mad and my editing is not proceding anywhere...
    The computer I'm working with is:
    MacBookPro6,2
    Prosessor: Intel Core i5
    Prosessor speed: 2,53 GHz
    Memory: 4 Gt
    The material I'm editing has been recorded with a Full HD-videocamera Canon Legria HFS200 1920 x 1080, but with SD quality.
    The project setting I have at the moment are HDV 1080i. Something must be off because the Mac Book Pro should have enough power to run the PE9-program.
    I'm so grateful, if someone here can help me with this!
    Katia

    Hi Steve,
    There are no red lines when editing just footage. But as soon as I add a
    title or a transition the problems begin.
    I've been fighting with this issue now while waiting for help from you guys
    and I noticed that if I only render one little area at the time PE doesn't
    crash as often...
    Thanks a lot for the tips what settings to use in the videocam. I will check
    them before shooting more material.
    However, the material I'm working with now I can't affect anymore, unless I
    can change some settings in the PE project? This is work related stuff, the
    material can't be shot again and the DVD is expected to be ready as soon as
    possible... So do you have an advice for the problem at hand?
    2011/1/19 Steve Grisetti <[email protected]>
    Katia, the reason you need to render all of the time is because you are
    using the wrong project settings.
    >
    You do not have an HDV camcorder. You have an AVCHD camcorder that shoots
    in a variety of modes.
    >
    You should shoot your video only in MXP or FXP mode and then using a
    Premiere Elements project using the AVCHD 1920x1080 project settings. (The
    camcorder also shoots in stereo or 5.1 audio, so you must also make sure
    you've selected the correct audio preset also.)
    >
    If you've selected the correct project settings and you've used Get
    Media/From AVCHD or Hard Drive Camcorder to download the video from your
    camcorder to your computer, there should NOT be any red lines above your
    clips when you add them to your timeline until you add effects or
    transitions to them.
    >
    If you are seeing red lines above your clips when you add them to your
    timeline, you are using the wrong project setting.
    >
    Using the right project setting is key to using the program effectively and
    efficiently.
    >

  • Monitor cycles on and off many times before settling and staying on

    When I turn my mac mini on or revive it from sleep, the monitor wakes up for a short time, then goes black for 30 seconds then revives itself for about 23 seconds in a cycle (on, off, on, off) that lasts about 30 minutes, maybe longer.  After which, the monitor stays on indefinitely.
    ...until the computer goes back to sleep or is turned off...  then the whole cycle starts over.
    I do not have to touch anything for the cycles to happen.
    The computer is running fine, in fact I can continue to type... I just cant see what I am doing.
    This problem is a recent development and was not triggered by anything I am aware of.
    After 6-8 times of going through this, I have not yet noticed any change in duration of cycles or of the length of time before it settles out.
    I have a Mac Mini (Mid 2011)
    External DELL monitor connected via Thunderbolt port mini display port to VGA.
    I have tried reseting the SMC and PRAM with no correction to the problem.

    Hello slodave,
    Since you are not hearing the hard drives or anything kick on for a while it sounds like the issue may be with your power supply.
    You may want to look at the power supply there should be a light on it. See if it shows it is starting properly before the computer actually turns on (so this is during the 6+ times it is turning on and off).
    If the power supply is going then you may just need to replace it to continue normal operation.
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • Presently using iMac: OS X 10.9.4 (13E28)  1. Open website; click drop-down and this appears:  Before viewing PDF documents in this browser you must launch Adobe reader and accept the end-user license agreement, then quit and relaunch the browser.  2. Usi

    Presently using iMac: OS X 10.9.4 (13E28)
    1. Open website; click drop-down and this appears:
    Before viewing PDF documents in this browser you must launch Adobe reader and accept the end-user license agreement, then quit and relaunch the browser.
    2. Using an iMac, open founder and click downloads
    3. Click AdbeRdr1013_en_US-1.dmg         Apr. 4 2012, 7:11 AM 73 MB Disk Image  Feb 27, 2013, 10:00 AM
    4. Screen indicates it is opening Adobe reader X installer.package
    5. Click this icon
    6. Open Adobe installer; double-click install Adobe reader; putting password to access; click next; Note: Application is already installed; click finish.
    Screen indicates: thank you and enjoy Adobe reader. Click Return to Prior Website. Click install now: total size 99.1 MB
    Initializing arises with the following information: to proceed, open your download folder and locate the Adobe reader installer file, named Adobe reader installer [ XXX].dmg
    It takes me back to steps that have already taken of locating down load file double-click to mount the disk image; double-click install Adobe reader; agreed by clicking open; entering name and password and clicking okay.
    Did this several times with no success.
      11.       www.forums.adobe.com

    Sorry if I failed to mention, I have done this as well.

  • E_IO_CANNOT_OPEN error message. Get this 1-2 times before the book downloads to ADE3.0. Why?

    E_IO_CANNOT_OPEN error message. Often get this 1-2 times before the book downloads to ADE3.0. Why?

    Hi,
    So I've fixed the activation error, but when trying to get an ebook from the sample site I'm now getting "LICENSE_SIGN_ERROR." And I'm still getting the license error (CANNOT_OPEN) when trying to download library books, no matter how many times I de/reauthorize ADE, restart the computer and the program, and try to dl the book from the library website.
    Thanks for any additional advice!
    Edit, a few days later - still experiencing the problem, no matter how many times I try to download the library book I get the same error. Any ideas? Thanks @shreya

  • Timer works if I set the time before the current one

    Hi,
    I've got a block that is part of an actionListener that has 4 buttons, anyway I want the timer to execute something exactly at the time I set it.....but in the code that I have it also executes if i set the time before the current time
    Here's the segmant:
    private class ButtonResponder implements ActionListener
              public void actionPerformed(ActionEvent event) 
                    if (event.getSource() == exitButton)
                                  System.exit(0);
                   if(event.getSource() == setButton)
                        int hour = Integer.parseInt(hours[hourComboBox.getSelectedIndex()]);
                        int min = Integer.parseInt(minutes[minuteComboBox.getSelectedIndex()]);
                        Calendar calendar = Calendar.getInstance();
                        calendar.set(Calendar.HOUR_OF_DAY, hour);
                        calendar.set(Calendar.MINUTE, min);
                        calendar.set(Calendar.SECOND, 0);
                        Date time = calendar.getTime();
                    timer = new java.util.Timer();
                        timer.schedule(new TimerTask()
                             public void run()
                                  JOptionPane.showMessageDialog(null, "it is time");
                        , time, 5*1000);
                   if (event.getSource() == cancelButton)
                        timer.cancel();
              }So if I put zeros in hours and minutes it will execute immediately....how can I make execute at the exact time (so that if the time now is 2:00 and I set it to 1:00 it only executes the next day??
    Message was edited by:
    Octavian

    Bump the day if the time is less than current time.
    Kaj

  • Addiing ComboBox in JTable

    Can any one help mee how to add combobox in jtable i am using Abstracttablemodel.

    yes these the code where i am setting my editor and combobox
    import java.sql.ResultSet;
    import java.sql.*;
    import java.util.*;
    import javax.swing.JTable;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.awt.*;
    public class clsCustMast extends clsMSGen{
        String strQuery,
                 querySrch1,
                 querySrch2;
        String strTab1Rec;
        String strTableName;
        String []strTmp;
        public clsValidate val;
        public boolean flgInsrtTab1,
                           flgInsrtTab2,
                           flgErr;
        public String strCmbFrom,
                             strCmbTo;
       /* public JComboBox cmbRgn,
                              cmbCntry;*/
        int        intSlctdTab;     
        private int intCol,
                        rowCntTab1,
                        rowCntTab2;
         final static int CNS_TAB1 = 0;
         final static int CNS_TAB2 = 1;
         final static String CNS_MANDT = "1";
         final static boolean CNS_FALSE = false;
         final static boolean CNS_TRUE = true;
         final static String strUserPassword  = "manager";          
        public void disp(){
            super.disp();
            flgInsrtTab1 = CNS_FALSE;
            flgInsrtTab2 = CNS_FALSE;
            // to get all region ids from the  tble T_regionmast and populate it in the cmbReg to be displayed in the grid
            populateRegionCntryCmb();
            // to get all region ids from the  tble T_countrymast and populate it in the cmbCntry to be displayed in the grid
            //populateCntryCmb();
            intCol = 0;
            strQuery = "select a.f_custid,a.f_postcd,a.f_faxno,a.f_phoneno,a.f_regionid," +
                      " a.f_cntryid, a.f_delflag from t_custmast a,t_custtran b" +
                      " where a.f_custid = b.f_custid" +
                      " and b.f_langid = 'EN'";
            //System.out.println(strQuery);
            ResultSet Tab1Data = prcQuery(strQuery);
            try{
                 ResultSetMetaData rmdTab1Dt = Tab1Data.getMetaData();
                 intCol = rmdTab1Dt.getColumnCount();
                 ++intCol;
                 strTmp = new String[intCol+1];
                 //JButton btn1;
                 while (Tab1Data.next()){
                      String [] record = new String[intCol];
                      //Object [] record = new Object[intCol];
                      //btn1 = new JButton("C");
                      record[0] = new JButton("B").toString();
                      //record[0] = new Boolean(false);
                      for(int i=1; i<intCol; i++)
                     record= Tab1Data.getString(i);
              if (i==1)
    cmbFrom.addItem(record[i]);
    cmbTo.addItem(record[i]);
    // System.out.println(record[i]);
    model1.addRow(record);
    model1.fireTableChanged(null);      
    catch(SQLException ex)
         System.out.println("Error1");
    ex.printStackTrace();
    strQuery = "select f_langid, b.f_custname, f_city, f_address " +
              "from t_custmast a ,T_custtran b where " +
              "a.f_custid = b.f_custid" +
                        " and b.f_langid = 'EN'";
    ResultSet Tab2Data = prcQuery(strQuery);
    try{
    intCol = 0;     
    ResultSetMetaData rmdTab2Dt = Tab2Data.getMetaData();
    intCol = rmdTab2Dt.getColumnCount();
    while (Tab2Data.next()){
    String [] record = new String[intCol];
    for(int i=0; i<intCol;i++)
    record[i]=Tab2Data.getString(i+1);
    model2.addRow(record);
    model2.fireTableChanged(null);
    catch(SQLException ex)
         System.out.println("Error2");
    ex.printStackTrace();
    System.out.println(intCol);
    //Connect the database and Returns the resultset corresponding to passed query     
         public ResultSet prcQuery(String strQuery){
              ResultSet resultQuery = dbCon.doQuery(strQuery);
              return resultQuery;
         public void populateRegionCntryCmb(){
              cmbRgn = new JComboBox();
              cmbCntry = new JComboBox();
              String queryRgn = "select f_regionid,f_cntryid from t_regionmast";
              ResultSet rsRgn = prcQuery(queryRgn);
              //String[] items = { "one", "two", "three", "four" };
              try{
                   while(rsRgn.next()){
                        //cmbRgn.addItem(rsRgn.getString(1));
                        cmbCntry.addItem(rsRgn.getString(2));
                        //System.out.println(rsRgn.getString(1)+ " " + rsRgn.getString(2));
              }catch(SQLException ex)
    {             System.out.println("Error in region cd retrieve");
    ex.printStackTrace();
              System.out.println(cmbCntry.getItemAt(0));
              //cmbCntry = new JComboBox(items);
              cmbCntry.setEditable( false );
              DefaultCellEditor dceCmbCntry = new DefaultCellEditor( cmbCntry );          
              info_table.getColumnModel().getColumn(6).setCellEditor(dceCmbCntry);
              // Set the first columm to use a ComboBox as a renderer
              info_table.getColumnModel().getColumn(6).setCellRenderer(new clsComboBoxRenderer());
         public void populateCntryCmb(){
              cmbCntry = new JComboBox();
              String queryCntry = "select f_reionid,f_cntryid from t_regionmast";
              ResultSet rsCntry = prcQuery(queryCntry);
              try{
                   if(!rsCntry.next()){
                        System.out.println("No Records in Country Master Table");
                   }else{
                        while(rsCntry.next()){
                             cmbCntry.addItem(rsCntry.getString(1));
                             //System.out.println(rsCntry.getString(1));
              }catch(SQLException ex)
         System.out.println("Error in region cd retrieve");
    ex.printStackTrace();
              System.out.println(cmbCntry.getItemAt(1));
              cmbCntry.setEditable( false );
              DefaultCellEditor dceCmbCntry = new DefaultCellEditor( cmbCntry );          
              info_table.getColumnModel().getColumn(6).setCellEditor(dceCmbCntry);
              // Set the first columm to use a ComboBox as a renderer
              info_table.getColumnModel().getColumn(6).setCellRenderer(new clsComboBoxRenderer());
         class clsComboBoxRenderer extends JComboBox implements TableCellRenderer
              public Component getTableCellRendererComponent
                        JTable info_table, Object value, boolean isSelected,
                        boolean hasFocus, int row, int column){
                             removeAllItems();
                             addItem( value );
                             return this;     
         public void add()
              String strAdd1[],
                   strAdd2[];
              intSlctdTab = tabbedPane.getSelectedIndex();
              if ( intSlctdTab == CNS_TAB1){
                   if ( flgInsrtTab1 == CNS_FALSE && flgInsrtTab2 == CNS_FALSE){
                        rowCntTab1 = model1.getRowCount();
                        //add a new row for both tabs when the add button is pressed while tab1 is selected.
                        //Add a new row for the tab1
                        strAdd1 = new String[8];
                        model1.addRow(strAdd1);
                        model1.fireTableChanged(null);
                        flgInsrtTab1 = CNS_TRUE;
                        //Add a new row for the tab2
                        strAdd2 = new String[4];
                        model2.addRow(strAdd2);
                        model2.fireTableChanged(null);
                        flgInsrtTab2 = CNS_TRUE;
                   }else{
                        lblStatus.setText("Save the Records and then Add New one");
              }else if(intSlctdTab == CNS_TAB2){
                   if ( flgInsrtTab2 = CNS_FALSE){
                        rowCntTab2 = model2.getRowCount();
                        //When a add button is pressed while selecting the 2nd tab add new row only to 2nd tab
                        strAdd2 = new String[4];
                        model2.addRow(strAdd2);
                        model2.fireTableChanged(null);
                        flgInsrtTab2 = CNS_TRUE;
                   }else{
                        lblStatus.setText("Save the Records and then Add New one");
         public void save()
              // Decalrion for varaibles in the TAB1
              String strCustId,
                   strDelFlg,
                   strPostCd,
                   strFaxNo,
                   strPhNo,
                   strRgnId,
                   strCntryId;
    boolean flag;                              
              //Assigning the values of the selected row to the corresponding fields
    strCustId = model1.getValueAt(rowCntTab1,1).toString();
    strPostCd = model1.getValueAt(rowCntTab1,2).toString();
    strFaxNo = model1.getValueAt(rowCntTab1,3).toString();
    strPhNo = model1.getValueAt(rowCntTab1,4).toString();
    strRgnId = model1.getValueAt(rowCntTab1,5).toString();
    strCntryId = model1.getValueAt(rowCntTab1,6).toString();
         strDelFlg = model1.getValueAt(rowCntTab1,7).toString();
         flgErr = CNS_FALSE;
         //Validation for mandatory field F_CUSTID
         flag = clsValidate.mandt(CNS_MANDT,strCustId);
    if (flag == CNS_FALSE){
              lblStatus.setText("Please Enter Values for Cust Id Field");
              flgErr = CNS_TRUE;
    //Validation for Mandatory field F_DELFLAG
    flag = clsValidate.mandt(CNS_MANDT,strDelFlg);
    if (flag == CNS_FALSE){
              lblStatus.setText("Please Enter Values for Delete Flag Field");
              flgErr = CNS_TRUE;
    // if no error occurs process the insert process
    if (flgErr == CNS_FALSE){
              String sqlInsrtT1;
              sqlInstrtT1 = "Insert into t_custmast'" + ( "'" +
                             " f_custid,f_delflag,f_postcd,f_faxno,f_phoneno," +
                                  "f_regionid,f_cntryid '" +) "'" +
                                  "(strCustId,strDelFlg,strPostCd,strFaxNo,strPhNo,strRgnId,strCntryId)";
              strTableName = "t_custmast";
         //     sqlInsrtT1 = "insert into t_custmast*/
         /*     StringBuffer InsertSQLT1 = new StringBuffer();
              strTableName = "t_custmast";
              InsertSQLT1.append("INSERT INTO " + strTableName );
              InsertSQLT1.append(" VALUES (");
                   int colCntTab1 = model1.getColumnCount();
                   System.out.println(colCntTab1);
              // for (int i=0; i < colCntTab1-1; i++) {
                   int i = 0;
                   System.out.println("Value at 2,1 " + model1.getValueAt(2,7));
                   /* while(i < colCntTab1){
                   System.out.println(" "+ i);
                   //System.out.print( model1.getValueAt(2,i));
              //     InsertSQLT1.append(model1.getValueAt(rowCntTab1,i));
                   InsertSQLT1.append(model1.getValueAt(2,i));
                   if ( i != colCntTab1-1) {
                        InsertSQLT1.append(",");     
                   }else{
                        InsertSQLT1.append(");");
                   i++;
              //InsertSQLT1.append(");");
              // System.out.println( model1.getValueAt(rowCntTab1,7));
    System.out.println(InsertSQLT1.toString());*/
    public void delete(){}
    public void cancel(){}
    public void goTran(){}
    public void Search(){
         intSlctdTab = tabbedPane.getSelectedIndex();
         if (intSlctdTab == CNS_TAB1 ){
              System.out.println(intSlctdTab);
    querySrch1 = "select a.f_custid,a.f_postcd,a.f_faxno,a.f_phoneno,a.f_regionid,"
         + " a.f_cntryid, a.f_delflag from t_custmast a,t_custtran b"
                        + " where a.f_custid = b.f_custid"
                        + " and b.f_langid = 'EN'"
                        + " and a.f_custid between '" + strCmbFrom + "'"
                        + " and '" + strCmbTo + "'";
         searchCondnTab1(querySrch1);
         intSlctdTab = 3;
    if ( intSlctdTab == CNS_TAB2 ){      
    querySrch2 = "select f_langid, b.f_custname, f_city, f_address"
                        + " from t_custmast a ,T_custtran b "
                        + " where a.f_custid = b.f_custid"
                        + " and b.f_langid = 'EN'"
                        + " and a.f_custid between '" + strCmbFrom + "'"
                        + " and '" + strCmbTo + "'";                     
              searchCondnTab2(querySrch2);
              intSlctdTab = 3;
    public void cmbFromSrch(){
         strCmbFrom = ((String)cmbFrom.getSelectedItem()).trim();
         System.out.println("Combo1 : " + strCmbFrom);
    public void cmbToSrch(){
         strCmbTo = ((String)cmbTo.getSelectedItem()).trim();
         System.out.println("Combo2 : "+ strCmbTo);
         public void searchCondnTab1(String querySrch){
              System.out.println("Tab1 : " + querySrch);
    ResultSet rsSrchTab1 = prcQuery(querySrch);
    try{
         ResultSetMetaData rmdSrchTab1 = rsSrchTab1.getMetaData();
         intCol = rmdSrchTab1.getColumnCount();
         //increase the column count by one for the button
         ++intCol;
         //remove all datas before fetching records according to the conditions
         model1.vctData.removeAllElements();
         //adding records to the vector after fetching the records
         while (rsSrchTab1.next()){
              String [] record1 = new String[intCol];
              record1[0] = new JButton("B").toString();
              for(int i=1; i<intCol;i++)
    record1[i]= rsSrchTab1.getString(i);     
    model1.addRow(record1);
    model1.fireTableChanged(null);      
    catch(SQLException ex)
         System.out.println("Error3");
    ex.printStackTrace();
         public void searchCondnTab2(String querySrch){
              System.out.println("Tab2 : " + querySrch);
              ResultSet rsSrchTab2 = prcQuery(querySrch);
         try{
         ResultSetMetaData rmdSrchTab2 = rsSrchTab2.getMetaData();
         intCol = rmdSrchTab2.getColumnCount();
         //remove all datas before fetching records according to the conditions     
         model2.vctData.removeAllElements();
         //adding records to the vector after fetching the records
         while (rsSrchTab2.next()){
         String [] record2 = new String[intCol];
         for(int i=0; i<intCol;i++)
         record2[i]= rsSrchTab2.getString(i+1);
         model2.addRow(record2);
         model2.fireTableChanged(null);     
         catch(SQLException ex)
              System.out.println("Error4");
         ex.printStackTrace();
         public static void main(String args[]){
         clsCustMast objCust = new clsCustMast();
         objCust.strUserid = "SIVAGURU";
         objCust.strTab1Name = "Basic";
         objCust.strTab2Name = "Details";
         objCust.strTitle = "Customer Maintenance";
              objCust.Tran_code = "XD01";
              objCust.strClsId = "clsCustMast";
              objCust.strLangid = "EN";
         objCust.connectDbase();
         objCust.disp();

  • Should I convert my MTS (AVCHD) file to another file type before editing with elements 10

    I know premiere elements 10 has project settings for working with AVCHD footage but after doing a bit of reading about how AVCHD (MTS) files are a lot harder for your computer to work with I'm thinking it might be better to convert my raw video files to another video file type before editing with premiere elements 10.
    I have a reasonably good computer, but it's only a laptop with 361gb free memory, radeon graphics card, core i5 processor and 8GB ram.
    If I should convert these files first what file type should I convert them to without loosing too much video quality and where can I find a program to convert them.
    Many thanks
    Sally

    I have a reasonably good computer, but it's only a laptop with 361gb free memory, radeon graphics card, core i5 processor and 8GB ram.
    My granddaughters and I have been using one of those to edit videos taken in (two) Sony and (one) Panasonic cameras.  The computer is a mid grade Toshiba laptop that is about three years old.  The cameras were purchased after the computer.  Our computer does not have a graphics card, but the other specs are about the same. 
    I know premiere elements 10 has project settings for working with AVCHD footage but after doing a bit of reading about how AVCHD (MTS) files are a lot harder for your computer to work with I'm thinking it might be better to convert my raw video files to another video file type before editing with premiere elements 10.
    I didn't read that until after we had made videos.  The issue is the project preset that is set when you open a new project. If you guess wrong, PrE10 tells you so when you slide the first clip to the timeline. 
    There is confusion about AVCHD because there is a 1.0 and a 2.0.  The "high" setting for many cameras the last couple of years was 1080p60.  That did not become part of AVCHD until last July.  Now it is and is called 2.0.  PrE10 specs include AVCHD 1.0, so the 1080p60 is "officially" unsupported.   I didn't know that, so I tried a few presets when my files were 1080p60.  A preset of 720p60 worked best. 
    The "work harder" part primarily has to do with the preview window during editing.  If it is not going smoothly there will probably be a red line above the clip.  Pressing "Enter", getting a cup of coffee and patience will make the red line go away and the preview will be smoother.  The relationship between project presets and final output is a mystery.  My experience is that the presets have only to do with real time preview and little to do with output.  Output requires an entire re-encoding for the chosen viewing platform.  PrE10 seems to ignore the project presets, uses all the markers set in editing and builds the final products from scratch. 
    If I should convert these files first what file type should I convert them to without loosing too much video quality and where can I find a program to convert them.
    Steve and Bill invest a lot of time here helping people like you and me.  But, my experience is that they are wrong.  I see no need to convert the files.  Conversion always has the risk of loosing a little picture quality.  PrE10 seems to handle AVCHD fine.  Let it do the final render using the actual source clips.
    Sally, consider upgrading to version 11 where AVCHD 2.0 and 1080p60 is included.  I have.  Processing is a little smother.
    Bill
    PS:  Please, with all due respect to Bill and Steve who work hard here, I disagree based only on experience with 3 cameras and one computer.  User experience varies!

Maybe you are looking for

  • Jerky, laggy graphics on windows 7 on macbook pro but graphics are fine on OS X

    I installed windows 7 and all the apple support files for windows using bootcamp on my brand new macbook pro 15inch. I get very noticeable laggy, jerky graphics on videos that i play with VLC or windows media player in Windows 7.  If there is motion

  • DIFFERNCE BETWEEN ACCOUNT KEY & ACCURALS IN MM PRICING

    Hello, Please explain the difference between Account key & accruals in MM pricing procedure. In which situation account key will be used & accruals will be used & what is the impact. Thanks & regards Varun Bisaria Edited by: Csaba Szommer on Jun 22,

  • Aperture 3.2  -  MobileMe

    Hallo, can anybody please confirm, that under Aperture 3.2 (optimized for iCloud) I can still use the MobileMe-galleries!? I dno't want to "upgrade" to iCloud, but continue to use MobileMe until it ends in June next year.

  • Callable Object transport issue

    I created a callable object of WebDynpro application. It works fine. But when I transported the WebDynpro application and the GP Callable object to another server, the callable object is not able to pull the text, description and other information ab

  • Sign PDF using Acrobat.tlb ????

    Hi, I want my application automatically place a digital signature in a  pdf document corresponding to x y position which i set it manually .how  to do it using acrobat.tlb which is a COM object reference of Acrobat  pro.