SetTabSize(int size) broke for JTextArea in JDK1.4?

method setTabSize don't seem to work in JDK1.4. I will try an earlier version. In the mean time, can someone tell me how to set the tab size in a JTextArea? Thanks bunches.

Nevermind. It appears that if you instantiate JTextArea with just a text (ie. JTextArea textArea = new JTextArea("your text");), then setTabSize method does not work. However, if you use the JTextArea constructor that accepts # of columns and # of rows as arguments, the setTabSize method works. I think the API documentation needs to be a little more clear/explicit in this regard.

Similar Messages

  • Document Listener for JTextArea in JTable

    I am trying to implement a DocumentListener for JTextArea in JTable, but its not happening.
    Can someone tell me what's wrong. SSCCE below.
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.Icon;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.JTextArea;
    import javax.swing.UIManager;
    import javax.swing.event.DocumentEvent;
    import javax.swing.event.DocumentListener;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.TableColumn;
    import javax.swing.text.Document;
    public class MyTable_TextArea extends JTable {
         private DefaultTableModel defaultTableModel;
         private Object[][] dataArray;
         private Object[] columnNameArray;
         public final int TEXT_COLUMN = 0;     
         // column headers
         public static final String TEXT_COLUMN_HEADER = "Text";
         // text area
         TextFieldRenderer3 textFieldRenderer3;
          * constructor
          * @param variableNameArray
          * @param columnNameArray
         public MyTable_TextArea(Object[][] variableNameArray, Object[] columnNameArray) {
              this.dataArray = variableNameArray;
              this.columnNameArray = columnNameArray;
              defaultTableModel = new DefaultTableModel(variableNameArray, columnNameArray);
              this.setModel(defaultTableModel)     ;
              // text field
            textFieldRenderer3 = new TextFieldRenderer3();
              MyDocumentListener myListener = new MyDocumentListener();
              textFieldRenderer3.getDocument().addDocumentListener(myListener);
            TableColumn modelColumn = this.getColumnModel().getColumn(TEXT_COLUMN);
              modelColumn.setCellRenderer(textFieldRenderer3);
          * nested class
         class MyDocumentListener implements DocumentListener {
             String newline = "\n";
             public void insertUpdate(DocumentEvent e) {
                  System.out.println ("insert update");
                 updateLog(e, "inserted into");
             public void removeUpdate(DocumentEvent e) {
                  System.out.println ("remove update");
                 updateLog(e, "removed from");
             public void changedUpdate(DocumentEvent e) {
                 //Plain text components do not fire these events
             public void updateLog(DocumentEvent e, String action) {
                 Document doc = (Document)e.getDocument();
                 int changeLength = e.getLength();
                 textFieldRenderer3.append(
                     changeLength + " character" +
                     ((changeLength == 1) ? " " : "s ") +
                     action + doc.getProperty("name") + "." + newline +
                     "  Text length = " + doc.getLength() + newline);
          * @param args
         public static void main(String[] args) {
              try{
                   UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
              catch (Exception e){
                   e.printStackTrace();
             String[] columnNameArray = {
                       TEXT_COLUMN_HEADER,
                       "1",
                       "2",
              Object[][]  dataArray = {      {"", "", ""},      };
              final MyTable_TextArea panel = new MyTable_TextArea(dataArray, columnNameArray);
              final JFrame frame = new JFrame();
              frame.getContentPane().add(new JScrollPane(panel));
              frame.setTitle("My Table");
              frame.setPreferredSize(new Dimension(500, 200));
              frame.addWindowListener(new WindowAdapter(){
                   @Override
                   public void windowClosing(WindowEvent e) {
              frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              frame.setLocation(300, 200);
              frame.pack();
              frame.setVisible(true);
    class TextFieldRenderer3 extends JTextArea implements TableCellRenderer {
         Icon defaultIcon;
         boolean isChecked = false;
         public TextFieldRenderer3() {
              System.out.println ("TextFieldRenderer()");
              setToolTipText("Double click to type");
         @Override
         public Component getTableCellRendererComponent(JTable table,
                   Object value,
                   boolean isSelected,
                   boolean hasFocus,
                   int row,
                   int column) {
              System.out.println ("TextFieldRenderer.getTableCellRendererComponent() row/column: " + row + "\t"+ column);
              return this;
    }

    I've implemented in the cell editor. I don't see how to get the value being typed (and nothing appears in the text area)
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.util.EventObject;
    import javax.swing.Icon;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.JTextArea;
    import javax.swing.UIManager;
    import javax.swing.event.CellEditorListener;
    import javax.swing.event.DocumentEvent;
    import javax.swing.event.DocumentListener;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableCellEditor;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.TableColumn;
    import javax.swing.text.Document;
    public class MyTable_TextArea extends JTable {
         private DefaultTableModel defaultTableModel;
         private Object[][] dataArray;
         private Object[] columnNameArray;
         public final int TEXT_COLUMN = 0;     
         // column headers
         public static final String TEXT_COLUMN_HEADER = "Text";
         // text area
         TextAreaEditor textAreaEditor;
          * constructor
          * @param variableNameArray
          * @param columnNameArray
         public MyTable_TextArea(Object[][] variableNameArray, Object[] columnNameArray) {
              this.dataArray = variableNameArray;
              this.columnNameArray = columnNameArray;
              defaultTableModel = new DefaultTableModel(variableNameArray, columnNameArray);
              this.setModel(defaultTableModel)     ;
              // text field
            textAreaEditor = new TextAreaEditor();
              MyDocumentListener myListener = new MyDocumentListener();
              textAreaEditor.getDocument().addDocumentListener(myListener);
            TableColumn modelColumn = this.getColumnModel().getColumn(TEXT_COLUMN);
              modelColumn.setCellEditor(textAreaEditor);
          * nested class
         class MyDocumentListener implements DocumentListener {
             String newline = "\n";
             public void insertUpdate(DocumentEvent e) {
                  System.out.println ("insert update");
                 updateLog(e, "inserted into");
             public void removeUpdate(DocumentEvent e) {
                  System.out.println ("remove update");
                 updateLog(e, "removed from");
             public void changedUpdate(DocumentEvent e) {
                 //Plain text components do not fire these events
             public void updateLog(DocumentEvent e, String action) {
                 Document doc = (Document)e.getDocument();
                 int changeLength = e.getLength();
                 textAreaEditor.append(
                     changeLength + " character" +
                     ((changeLength == 1) ? " " : "s ") +
                     action + doc.getProperty("name") + "." + newline +
                     "  Text length = " + doc.getLength() + newline);
          * @param args
         public static void main(String[] args) {
              try{
                   UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
              catch (Exception e){
                   e.printStackTrace();
             String[] columnNameArray = {
                       TEXT_COLUMN_HEADER,
                       "1",
                       "2",
              Object[][]  dataArray = {      {"", "", ""},      };
              final MyTable_TextArea panel = new MyTable_TextArea(dataArray, columnNameArray);
              final JFrame frame = new JFrame();
              frame.getContentPane().add(new JScrollPane(panel));
              frame.setTitle("My Table");
              frame.setPreferredSize(new Dimension(500, 200));
              frame.addWindowListener(new WindowAdapter(){
                   @Override
                   public void windowClosing(WindowEvent e) {
              frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              frame.setLocation(300, 200);
              frame.pack();
              frame.setVisible(true);
    class TextAreaEditor extends JTextArea implements TableCellEditor {
         Icon defaultIcon;
         boolean isChecked = false;
         public TextAreaEditor() {
              System.out.println ("TextAreaEditor()");
              setToolTipText("Double click to type");
         @Override
         public Component getTableCellEditorComponent(JTable arg0,
                   Object arg1,
                   boolean arg2,
                   int arg3,
                   int arg4) {
              System.out.println ("TextAreaEditor() arg1: " + arg1 + "arg2: " + arg2  + " arg3: " + arg3  + " arg4: " + arg4  );
              return null;
         @Override
         public void addCellEditorListener(CellEditorListener arg0) {
              System.out.println ("TextAreaEditor().addCellEditorListener");
         @Override
         public void cancelCellEditing() {
              System.out.println ("TextAreaEditor().cancelCellEditing");
         @Override
         public Object getCellEditorValue() {
              System.out.println ("TextAreaEditor().getCellEditorValue");
              return null;
         @Override
         public boolean isCellEditable(EventObject arg0) {
              System.out.println ("TextAreaEditor().isCellEditable");
              return true;
         @Override
         public void removeCellEditorListener(CellEditorListener arg0) {
              System.out.println ("TextAreaEditor().removeCellEditorListener");          
         @Override
         public boolean shouldSelectCell(EventObject arg0) {
              System.out.println ("TextAreaEditor().shouldSelectCell");
              return false;
         @Override
         public boolean stopCellEditing() {
              System.out.println ("TextAreaEditor().stopCellEditing");
              return false;
    }

  • Which is better ListIterator or Simple list.size() in for loop

    Hi everybody
    I have one scenario in which, I need to delete the duplicate values from the list (Note : Duplicate values are coming in sequence).
    I tried to approaches as follows
    1) Using ListIterator
    I iterated all values and if I found any duplicate then I called remove() method of Iterator.
    2) I made another ArrrayList object, and iterated the old list using size() and for loop, and if I found unique value then I added that value to the new ArrayList.
    I also created one test java file to find out the performance in both cases. But I am not pretty sure that this test is correct or not. Please suggest me which approach is correct.
    code For Test
    public class TestReadonly {
         public static void main(String[] args) {
              List list = new ArrayList();
              long beforeHeap = 0,afterHeap = 0;
              long beforeTime = 0,afterTime = 0;
              addElementsToList(list);
              Collections.sort(list);
              callGC();
              beforeHeap = Runtime.getRuntime().freeMemory();
              beforeTime = System.currentTimeMillis();
              System.out.println(" Before "+System.currentTimeMillis()+" List Size "+list.size()+" heap Size "+beforeHeap);
              new TestReadonly().deleteDuplicated1(list);
              afterHeap = Runtime.getRuntime().freeMemory();
              afterTime = System.currentTimeMillis();
              System.out.println(" After  "+System.currentTimeMillis()+" List Size "+list.size()+" heap Size "+afterHeap);
              System.out.println(" Time Differance "+(afterTime-beforeTime)+" Heap Differance "+(afterHeap-beforeHeap));
              list.clear();
              addElementsToList(list);
              Collections.sort(list);
              callGC();
              beforeHeap = Runtime.getRuntime().freeMemory();
              beforeTime = System.currentTimeMillis();
              System.out.println(" Before "+System.currentTimeMillis()+" List Size "+list.size()+" heap Size "+beforeHeap);
              list = new TestReadonly().deleteDuplicated2(list);
              afterHeap = Runtime.getRuntime().freeMemory();
              afterTime = System.currentTimeMillis();
              System.out.println(" After  "+System.currentTimeMillis()+" List Size "+list.size()+" heap Size "+afterHeap);
              System.out.println(" Time Differance "+(afterTime-beforeTime)+" Heap Differance "+(afterHeap-beforeHeap));
          * @param list
         private static void addElementsToList(List list) {
              for(int i=0;i<1000000;i++) {
                   list.add("List Object"+i);
              for(int i=0;i<10000;i++) {
                   list.add("List Object"+i);
         private static void callGC() {
              Runtime.getRuntime().gc();
              Runtime.getRuntime().gc();
              Runtime.getRuntime().gc();
              Runtime.getRuntime().gc();
              Runtime.getRuntime().gc();
         private void deleteDuplicated1(List employeeList) {
              String BLANK = "";
              String currentEmployeeNumber = null;
              String previousEmployeeNumber = null;
              ListIterator iterator = employeeList.listIterator();
              while (iterator.hasNext()) {
                   previousEmployeeNumber = currentEmployeeNumber;
                   currentEmployeeNumber = (String) iterator.next();
                   if ((currentEmployeeNumber.equals(previousEmployeeNumber))
                             || ((BLANK.equals(currentEmployeeNumber) && BLANK
                                       .equals(previousEmployeeNumber)))) {
                        iterator.remove();
         private List deleteDuplicated2(List employeeList) {
              String BLANK = "";
              String currentEmployeeNumber = null;
              String previousEmployeeNumber = null;
              List l1 = new ArrayList(employeeList.size());
              for (int i =0;i<employeeList.size();i++) {
                   previousEmployeeNumber = currentEmployeeNumber;
                   currentEmployeeNumber = (String) employeeList.get(i);
                   if (!(currentEmployeeNumber.equals(previousEmployeeNumber))
                             || ((BLANK.equals(currentEmployeeNumber) && BLANK
                                       .equals(previousEmployeeNumber)))) {
                        l1.add(currentEmployeeNumber);
              return l1;
    Output
    Before 1179384331873 List Size 1010000 heap Size 60739664
    After 1179384365545 List Size 1000000 heap Size 60737600
    Time Differance 33672 Heap Differance -2064
    Before 1179384367545 List Size 1010000 heap Size 60739584
    After 1179384367639 List Size 1000000 heap Size 56697504
    Time Differance 94 Heap Differance -4042080

    I think, you test is ok like that. Although I would have tested with two different applications, just to be shure that the heap is clean. You never know what gc() actually does.
    Still, your results show what is expected:
    Approach 1 (List iterator) takes virtually no extra memory, but takes a lot of time, since the list has to be rebuild after each remove.
    Approach 2 is much faster, but takes a lot of extra memory, since you need a "copy" of the original list.
    Basically, both approaches are valid. You have to decide depending on your requirements.
    Approach 1 can be optimized by using a LinkedList instead of an ArrayList. When you remove an element from an ArrayList, all following elements have to be shifted which takes a lot of time. A LinkedList should behave better.
    Finally, instead of searching for duplicates, consider to check for duplicates when filling the list or even use a Map.
    Tobias

  • INT. HDs for MPro in Europe

    Greetings Forum,
    I need some help finding INT.HDs in Europe. Specifically Spain, but online in Europe works too.
    What I'm looking for -
    INT. HD for MacPro 2.66, more than 500gigs in size, good for video editing in non-RAID configuration. Source material is DV.
    I would consider 2 - 400gig drives in a RAID Configuration, but I'd prefer to put only 1 drive because this is for 1 project only.
    I've found this site and it looks OK. Never dealt with them so if anyone has, please let me know.
    http://www.tig-spain.com
    Thanks in advance for any help,
    Paz
    P-Book 1.5, 17" 2gsRAM   Mac OS X (10.4.6)   FCStudio

    Yeah, I've been reading this forum page since/before I ordered my MPro and noticed Ned was here as well. Actually hoped he'd throw something down.
    Thinking of going with 2 of the WD5000KS. (What the project can afford now)
    Wasn't planning on RAIDing them, but thinking about it.
    For now, they'll be pretty much dedicated to this one project. But for the future, thinking I could archive the material to an EXT. drive and have a 1TB INT. RAID.
    At that point possibly getting another and making it 1.5TBs.
    Any thoughts on this that you'd like to share?
    Peace

  • Layout for JTextArea

    I want to develop an application that is having a message window, through which I can be able to send message. The window should have a "Send" button, one "To" textfield, one "Subject" textfield and one textarea with scrolls as needed.
    I am not getting the exact layout for placing the components.
    If anybody can help me writing the code , I shall be grateful .
    Regards.

    import java.awt.*;
    import javax.swing.*;
    public class TEST extends JFrame
         public TEST()
              Container cp = getContentPane();
              cp.setLayout(new BorderLayout());
              JPanel p1 = new JPanel();
              p1.setLayout(new GridLayout(2,1,4,4));
              JPanel p2 = new JPanel();
              p2.add(new JLabel("To"));
              p2.add(new JTextField(20));
              JPanel p3 = new JPanel();
              p3.add(new JLabel("Subject"));
              p3.add(new JTextField(20));
              p1.add(p2);
              p1.add(p3);
              cp.add(p1, BorderLayout.NORTH);
              int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
              int h = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
              JTextArea ta = new JTextArea();
              JScrollPane jsp = new JScrollPane(ta,v,h);
              cp.add(jsp);
              p1 = new JPanel();
              p1.add(new JButton("Send"));
              cp.add(p1, BorderLayout.SOUTH);
         public static void main(String ar[])
              TEST t = new TEST();
              t.setSize(400,300);
              t.setVisible(true);
    }

  • Customize "Tab" key for JTextArea to focus next component.

    Hi,
    I am trying to change the "TAB" key behaviour for JTextArea, by using CustomAction configured via InputMap() and ActionMap(). When the user presses the Tab key, the focus should go the next component instead of tabbing in the same JTextArea component. Here is the code for the CustomAction().
        public static class CustomTabAction extends AbstractAction {
            private JComponent comp;
            public CustomTabAction (JComponent comp) {
                this.comp = comp;
                this.comp.getInputMap().put(KeyStroke.getKeyStroke("TAB"), "TABPressed");
                this.comp.getActionMap().put("TABPressed", this);
            public void actionPerformed(ActionEvent evt) {
                Object source = evt.getSource();
                if (source instanceof Component) {
                    FocusManager.getCurrentKeyboardFocusManager().
                            focusNextComponent((Component) source);
        }This works for most of the cases in my applicaiton. The problem is that it doesn't work with JTable which has a custom cell editor (JTextArea). In JTextArea field of JTable, if the Tab is pressed, nothing happens and the cursor remains in the custom JTextArea exactly at the same place, without even tabbing spaces. Here is the CustomCellEditor code.
        public class DescColCellEditor extends AbstractCellEditor implements TableCellEditor {
    //prepare the component.
            JComponent comp = new JTextArea();
            public Component getTableCellEditorComponent(JTable table, Object value,
                    boolean isSelected, int rowIndex, int vColIndex) {
                // Configure Tab key to focus to next component
                CustomActions.setCustomAction("CustomTabAction", comp);
                // Configure the component with the specified value
                ((JTextArea)comp).setText((String)value);
                // Return the configured component
                return comp;
            // This method is called when editing is completed.
            // It must return the new value to be stored in the cell.
            public Object getCellEditorValue() {
                return ((JTextArea)comp).getText();
        }regards,
    nirvan

    >
    textArea.getInputMap().remove(....);but that won't work because the binding is actually defined in the parent InputMap. So I think you need to use code like:
    textArea.getInputMap().getParent().remove(...);But I'm not sure about this as I've never tried it.I tried removing the VK_TAB key from both the input map and parent input map as shown below. But I still have to press "TAB" twice in order to get out of the JTextArea column in JTable.
                comp.getInputMap().getParent().remove(
                            KeyStroke.getKeyStroke(KeyEvent.VK_TAB,0));
                comp.getInputMap().remove(
                            KeyStroke.getKeyStroke(KeyEvent.VK_TAB,0));after coding this, I am using the setFocusTraversalKeys for adding only "TAB" key as ForwardTraversalKey as given below.
            Set newForwardKeys = new HashSet();
            newForwardKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0));
            comp.setFocusTraversalKeys(
                        KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,newForwardKeys);
            Set newBackwardKeys = new HashSet();
            newBackwardKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, KeyEvent.SHIFT_DOWN_MASK));
            comp.setFocusTraversalKeys(
                        KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS,newBackwardKeys);The only problem that remains now is that I have to press the "TAB" twice in order to get out of the JTextArea column
    regards,
    nirvan.

  • Unable to open file "NULL\.EXT" - default sizes assumed for initial extents

    Dear Friends i am trying to install IDES 4.6C on Windows 2000 Advance server + MSSQL2000 this error i am facing during installation all of the installation files are on my D:\ drive following is the structure.
    D:\DBExport\DB
    D:\DBExport\Data
    D:\DBExport\LABEL.ASC
    and kernal also on D:\ drive.
    this is the error number one which i got
    Error: DBR3LOADEXEC_NT_MSS R3loadPrepare 2 722
    Child exited with error: rc = 2
    child_pid = 1
    See logfile SAPAPPL2.log for further information
    and here is the associated log file.
    #START OF LOG: 20060123112519
    R3load version @(#) $Id: //bas/46D/src/ins/R3load/R3load.c#12 $ SAP
    R3load -fast -i SAP0000.cmd -p SAP0000.log
    start of syntax check ###
    end of syntax check ###
    #START: 20060123112520
    error message: No such file or directory
    (GOS) WARNING: Unable to open file "NULL\.EXT" - default sizes assumed for initial extents
    (OLD) ERROR: CREATE statement failed for object "D010L"
         (CREATE TABLE "D010L" ( "PROG" VARCHAR(40) NOT NULL ,
    "R3STATE" VARCHAR(1) NOT NULL , "R3MODE" VARCHAR(1) NOT NULL ,
    "R3VERSION" VARCHAR(4) NOT NULL , "MACH" SMALLINT NOT NULL ,
    "BLOCKNR" TINYINT NOT NULL , "BLOCKLG" DECIMAL(5,0) NOT NULL ,
    "BLOCK" IMAGE NULL  )
    exec sp_bindefault 'str_default','D010L.PROG'
    exec sp_bindefault 'str_default','D010L.R3STATE'
    exec sp_bindefault 'str_default','D010L.R3MODE'
    exec sp_bindefault 'str_default','D010L.R3VERSION'
    exec sp_bindefault 'num_default','D010L.MACH'
    exec sp_bindefault 'num_default','D010L.BLOCKNR'
    exec sp_bindefault 'num_default','D010L.BLOCKLG'
    DbSlExecute: rc = 106
    (SQL error 2714)
    error message returned by DbSl:
    There is already an object named 'D010L' in the database.
    #STOP: 20060123112520
    #START OF LOG: 20060123152536
    R3load version @(#) $Id: //bas/46D/src/ins/R3load/R3load.c#12 $ SAP
    R3load -fast -i SAP0000.cmd -p SAP0000.log -r
    start of syntax check ###
    end of syntax check ###
    trying to restart import ###
    (RIM) INFO: table "D010L" dropped
    restart finished ###
    #START: 20060123152552
    error message: No such file or directory
    (GOS) WARNING: Unable to open file "NULL\.EXT" - default sizes assumed for initial extents
    (IMP) TABLE: "D010L"
    #Trying to create primary key "D010L~0"
    (IMP) PRKEY: "D010L~0"
    (OLD) ERROR: CREATE statement failed for object "D010LINF"
         (CREATE TABLE "D010LINF" ( "PROG" VARCHAR(40) NOT NULL ,
    "R3STATE" VARCHAR(1) NOT NULL , "R3MODE" VARCHAR(1) NOT NULL ,
    "R3VERSION" VARCHAR(4) NOT NULL , "MACH" SMALLINT NOT NULL ,
    "R3RELEASE" VARCHAR(4) NOT NULL , "R3MODIFY" INT NOT NULL ,
    "UNAM" VARCHAR(12) NOT NULL , "UDAT" VARCHAR(8) NOT NULL ,
    "UTIME" VARCHAR(6) NOT NULL , "L_DATALG" INT NOT NULL ,
    "Q_DATALG" INT NOT NULL , "Y_DATALG" INT NOT NULL , "SDAT" VARCHAR(8) NOT NULL ,
    "STIME" VARCHAR(6) NOT NULL  )
    exec sp_bindefault 'str_default','D010LINF.PROG'
    exec sp_bindefault 'str_default','D010LINF.R3STATE'
    exec sp_bindefault 'str_default','D010LINF.R3MODE'
    exec sp_bindefault 'str_default','D010LINF.R3VERSION'
    exec sp_bindefault 'num_default','D010LINF.MACH'
    exec sp_bindefault 'str_default','D010LINF.R3RELEASE'
    exec sp_bindefault 'num_default','D010LINF.R3MODIFY'
    exec sp_bindefault 'str_default','D010LINF.UNAM'
    exec sp_bindefault 'str_default','D010LINF.UDAT'
    exec sp_bindefault 'str_default','D010LINF.UTIME'
    exec sp_bindefault 'num_default','D010LINF.L_DATALG'
    exec sp_bindefault 'num_default','D010LINF.Q_DATALG'
    exec sp_bindefault 'num_default','D010LINF.Y_DATALG'
    exec sp_bindefault 'str_default','D010LINF.SDAT'
    exec sp_bindefault 'str_default','D010LINF.STIME'
    DbSlExecute: rc = 106
    (SQL error 2714)
    error message returned by DbSl:
    There is already an object named 'D010LINF' in the database.
    #STOP: 20060123152556
    #START OF LOG: 20060123154952
    R3load version @(#) $Id: //bas/46D/src/ins/R3load/R3load.c#12 $ SAP
    R3load -fast -i SAP0000.cmd -p SAP0000.log -r
    start of syntax check ###
    end of syntax check ###
    trying to restart import ###
    (RIM) INFO: table "D010LINF" dropped
    restart finished ###
    #START: 20060123154955
    (IMP) TABLE: "D010LINF"
    #Trying to create primary key "D010LINF~0"
    (IMP) PRKEY: "D010LINF~0"
    (OLD) ERROR: CREATE statement failed for object "D010Q"
         (CREATE TABLE "D010Q" ( "PROG" VARCHAR(40) NOT NULL ,
    "R3STATE" VARCHAR(1) NOT NULL , "R3MODE" VARCHAR(1) NOT NULL ,
    "R3VERSION" VARCHAR(4) NOT NULL , "MACH" SMALLINT NOT NULL ,
    "BLOCKNR" TINYINT NOT NULL , "BLOCKLG" DECIMAL(5,0) NOT NULL ,
    "BLOCK" IMAGE NULL  )
    exec sp_bindefault 'str_default','D010Q.PROG'
    exec sp_bindefault 'str_default','D010Q.R3STATE'
    exec sp_bindefault 'str_default','D010Q.R3MODE'
    exec sp_bindefault 'str_default','D010Q.R3VERSION'
    exec sp_bindefault 'num_default','D010Q.MACH'
    exec sp_bindefault 'num_default','D010Q.BLOCKNR'
    exec sp_bindefault 'num_default','D010Q.BLOCKLG'
    DbSlExecute: rc = 106
    (SQL error 2714)
    error message returned by DbSl:
    There is already an object named 'D010Q' in the database.
    #STOP: 20060123154956
    #START OF LOG: 20060123162918
    R3load version @(#) $Id: //bas/46D/src/ins/R3load/R3load.c#12 $ SAP
    R3load -fast -i SAP0000.cmd -p SAP0000.log -r
    start of syntax check ###
    end of syntax check ###
    trying to restart import ###
    (RIM) INFO: table "D010Q" dropped
    restart finished ###
    #START: 20060123162920
    (IMP) TABLE: "D010Q"
    #Trying to create primary key "D010Q~0"
    (IMP) PRKEY: "D010Q~0"
    (IMP) ERROR: CREATE statement failed for object "D010Y"
         (CREATE TABLE "D010Y" ( "PROG" VARCHAR(40) NOT NULL ,
    "R3STATE" VARCHAR(1) NOT NULL , "R3MODE" VARCHAR(1) NOT NULL ,
    "R3VERSION" VARCHAR(4) NOT NULL , "MACH" SMALLINT NOT NULL ,
    "BLOCKNR" TINYINT NOT NULL , "BLOCKLG" DECIMAL(5,0) NOT NULL ,
    "BLOCK" IMAGE NULL  )
    exec sp_bindefault 'str_default','D010Y.PROG'
    exec sp_bindefault 'str_default','D010Y.R3STATE'
    exec sp_bindefault 'str_default','D010Y.R3MODE'
    exec sp_bindefault 'str_default','D010Y.R3VERSION'
    exec sp_bindefault 'num_default','D010Y.MACH'
    exec sp_bindefault 'num_default','D010Y.BLOCKNR'
    exec sp_bindefault 'num_default','D010Y.BLOCKLG'
    DbSlExecute: rc = 106
    (SQL error 2714)
    error message returned by DbSl:
    There is already an object named 'D010Y' in the database.
    #STOP: 20060123162921
    I am really struck with the installation any help will be highly appreciated.
    best regards,
    Zeeshan

    Hi:
    It seemed to me that you put the wrong directory or drive when started the installation. It shows "error message: No such file or directory" when trying to locate the files.
    You can try to verify your inputs during first phase of the installation.
    Hope this helps!
    Best Regards,
    Federico G. Babelis
    NetWeaver Certified Consultant
    http://www.gazum.com

  • Override "crtl + tab" key behaviour with "tab" key for JtextArea .

    I am trying to override the "crtl + tab" key behaviour for JTextArea with "tab" key plus add my own action. I am doing the following.
    1. Setting Tab as forward traversal key for the JTextArea (the default traversal key from JTexArea is "crtl + Tab").
    2. Supplementing the "crtl + Tab" key behaviour with my custom behaviour.
    For the point 2 above, I need to get hold of the Action represented by the "crtl + Tab" key so that I could use that and then follow with my own custom action. But the problem is that there is no InputMap entry for "crtl + tab". I dont know how the "crtl + tab" key Action is mapped for JTextArea. I used the following code to search the InputMap.
                System.out.println("Searching Input Map");
                for (int i = 0; i < 3; i++) {
                    InputMap iMap = comp.getInputMap(i);
                    if (iMap != null) {
                        KeyStroke [] ks = iMap.allKeys();
                        if (ks  != null) {
                            for (int j = 0;j < ks.length ;j++) {
                                System.out.println("Key Stroke: " + ks[j]);
                System.out.println("Searching Parent Input Map");
                for (int i = 0; i < 3; i++) {
                    InputMap iMap = comp.getInputMap(i).getParent();
                    if (iMap != null) {
                        KeyStroke [] ks = iMap.allKeys();
                        if (ks  != null) {
                            for (int j = 0;j < ks.length ;j++) {
                                System.out.println("Key Stroke: " + ks[j]);
                }In short, I need to get the Action associated with the "crtl + tab" for JTextArea.
    regards,
    nirvan.

    There is no Action for Ctrl+TAB. Its a focus traversal key.

  • Line limit for JTextArea - Urgent

    Hi All,
    I would like to have 80 character limit for each line displayed in JTextArea. The linewrap along with wordwrap have been enabled for JTextArea but that solves a part of the problem. The no. of characters that can be entered per line depends on the width of the component and the font size. For this component there is no upper limit for the total no. charaters that can be entered. Basically, it supports text editing feature(cut, copy, paste). One way it could have been done by fixing the width of component so that it could accomodate only 80 characters, but again the factors like screen resolution, font's advance width keeps changing. I tried with overriding insertString() of PlainDocument class, but didn't know how to wrap the characters after 80 position to next line if text is inserted in the middle of a line. At the same time the whole text needs a reformatiing. Same behavior is desirable while doing cut/paste operations.
    A hint or sample code will be highly appreciated as it has been a long time I am looking to solve this problem.
    Thanks
    Ritwick.

    You are correct it is not easy to override the default behaviour of the JTextArea. So my suggestion is to use a monospaced font. The code would then be:
    JTextArea.textArea = new JTextArea( "some text", 10, 80 );
    textArea.setFont( new Font("monospaced", Font.PLAIN, 12) );
    textArea.setLineWrap(true);
    textArea.setWrapStyleWord(true);
    JScrollPane scrollPane = new JScrollPane( textArea );
    scrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS );If using a monospaced font is not possible, then please explain why wrapping at exactly 80 characters is so important, maybe there is a different approach to take.

  • Amount of temporary tablespace size used for index rebuild

    Hi All,
    I want to know approximate amount of temporary tablespace size used for index rebuild. I need this information to avoid the insufficient temporary tablespace error during the huge index rebuild.
    Is there a query or procedure to find it out.
    Thank you.

    Hi,
    While creating the index, the temporary segment is created in the permanent tablespace. So permanent tablespace must have sufficient space.
    http://www.oracle-base.com/articles/10g/SpaceObjectTransactionManagement10g.php
    http://aprakash.wordpress.com/2010/01/05/numeric-segment-name/
    Anand

  • Windows 8.1 forgets dpi / display size settings for one monitor on almost every reboot

    I use TV 32" with 1920x1080 and cintiq 13" with 1920x1080
    when I boot my PC the resolution is fine but DPI is wrong.
    In smaller monitor It's look like DPI is higher than the bigger one.
    I already set dpi to be the same (smallest 100%) but it's not work until I do something to change display setting.
    It's really annoy me. This problem is not happen when I use windows 8
    Only solution I found is turn off
    "Turn on fast start-up".
    When I do that It's boot like what I want. every monitor is the same DPI.
    But it'll make my boot time longer.
    It should be just start up windows and use the same dpi from the start.
    So I think this problem is a bug in windows 8.1
    Best regards

    Thank you for reply.
    I've already used the latest graphic card driver. But It's won't help this issue.
    In registry editor. I check those variables then value of them is already set like that blog suggest.
    So , it look like when windows start-up(with fast start-up) It use something like
    suggest value for different monitor size instead of what I set in control panel. But when I turn off fast start-up windows use my setting value.
    And I think there are a lot of people who got the same problem as me.
    Here is an example.
    http://answers.microsoft.com/en-us/windows/forum/windows8_1-desktop/windows-81-forgets-dpi-display-size-settings-for/385cb615-d699-47f8-8c12-717e3364c866

  • HT4863 How can I increase the file size limit for outgoing mail. I need to send a file that is 50MB?

    How can I increase the file size limit for outgoing mail. I need to send a file that is 50MB?

    You can't change it, and I suspect few email providers would allow a file that big.  Consider uploading it to a service like Dropbox, then email the link allowing the recipient to download it.

  • File size limit for webdav upload

    Dear Experts,
    we set up what we thought to be a restriction of the file size allowed for upload. We did this in the portal via
    System administration --> system configuration --> Knowledge Management --> Protocols --> WebDav --> Max WebDAV request size: 15728640 bytes.
    We would have expected that to not allow us uploading any files larger than 15 MB. Turns out we were wrong and it does not work. Here is a http-trace of an upload of a 21 MB file.
    Note the content length in the outbound message is 21832627.
    ========= Outbound Message =========
    PUT /irj/go/km/docs/documents/LSO/WBT/Academy_test_area/upload/secondUpload/SCORM%5B1%5D.2004.3ED.DocSuite.zip/SCORM%5B1%5D.2004.3ED.DocSuite.zip HTTP/1.1
    Host: ****hostname****:443
    Connection: TE
    TE: trailers, deflate, gzip, compress
    User-Agent: UCI DAV Explorer/0.91 RPT-HTTPClient/0.3-3E
    Translate: f
    Cookie: j_authscheme=basicauthentication; saplb_*=(J2EE405983900)405983952; JSESSIONID=(J2EE405983900)ID1262004252DB00846306331792142983End
    Cookie2: $Version="1"
    Authorization: Basic NDkwNjIyNzE6TGVybnRlNzg=
    Accept-Encoding: deflate, gzip, x-gzip, compress, x-compress
    Content-type: application/zip
    Content-length: 21832627
    **** Lots of Content ****
    * 21 MB of bits and bytes
    **** / Lots of Content
    ========= Inbound Message =========
    HTTP/1.1 201 Created
    Date: Wed, 19 Aug 2009 15:39:07 GMT
    Server: SAP J2EE Engine/7.01
    Content-Type: text/html; charset=UTF-8
    Cache-Control: no-cache
    Vary: accept-encoding,accept-language,cookie,translate
    ETag: "1589137901012"
    Last-Modified: Wed, 19 Aug 2009 15:39:15 GMT
    Content-Length: 0
    Via: 1.1 ****hostname****:443
    Would anyone know any other way of preventing the upload of large files via a webDAV client?
    Thank you very much.
    Regards
    Michael

    Hi Michael,
    This cannot be possible in portal but you can upload the max size file through portal drive or webdev . Through portal drive you can upload 50mb or any format file size you can upload through portal but portal you cannot upload you can get the message of file uploading failure or connectivity issues like these messgae appears at every interval so go through the portal drive or webdev.
    But best option for uploading huge file size is Portal drive. This will helpful for you.
    Regards
    RS

  • Size limit for flar file with Sol 10 WANBOOT

    There seems to be some kind of a size limit for flash archive files used by wanboot. When I try to wanboot jumpstart, I get the following:
    Processing profile
    - Opening Flash archive
    ERROR: HTTP server returned an invalid archive file size: <-1256985017> bytes
    ERROR: Invalid HTTP headers were returned from the server
    ERROR: Flash installation failed
    Solaris installation program exited.
    The flash archive is about 3GB. I'm doing the WANBOOT using the "boot cdrom" work-around, because the V100 I'm jumpstarting doesn't support the newer OBP parameters.
    If create a new smaller flash archive like so:
    mv sol10.flar sol10.flar.old
    dd if=sol10.flar.old of=sol10.flar bs=1024K count=1024
    cutting the flar down to 1GB. Then I do the wanboot. I don't get the error, and the jumpstart proceeds. Of course it would eventually have a problem when the cpio file reached premature end.
    So is there a prescribed limit to flars with WANBOOT. I'm assuming it's 2GB, but if so, why?
    No I haven't tried creating a compressed flar: that's next.
    Thanks,
    Chip Bennett
    Laurus Technologies, Inc.
    Itasca, IL

    nope, 64-bit apache2.2 and still the same error:
    Processing profile
    - Opening Flash archive
    HTTP server returned an invalid archive file size:
    <-2116410290> bytes
    ERROR: Invalid HTTP headers were returned from the
    server
    ERROR: Flash installation failed
    Solaris installation program exited.
    apache log:
    192.168.224.112 - - [06/Jul/2006:20:52:45 +0200]
    "HEAD /flash/archives/pt_sol_10_oem.flar HTTP/1.1"
    200 -
    192.168.224.112 - - [06/Jul/2006:20:52:45 +0200] "GET
    /cgi-bin/bootlog-cgi?%3Ctime%3E+wanboot_client+ident:+
    %5BID+380565+user.panic%5D+HTTP+server+returned+an+inv
    alid+archive+file+size:+%3C-2116410290%3E+bytes
    HTTP/1.1" 200 32
    192.168.224.112 - - [06/Jul/2006:20:52:45 +0200] "GET
    /cgi-bin/bootlog-cgi?%3Ctime%3E+wanboot_client+ident:+
    %5BID+592631+user.panic%5D+Invalid+HTTP+headers+were+r
    eturned+from+the+server HTTP/1.1" 200 32
    192.168.224.112 - - [06/Jul/2006:20:52:45 +0200] "GET
    /cgi-bin/bootlog-cgi?%3Ctime%3E+wanboot_client+ident:+
    %5BID+915281+user.panic%5D+Flash+installation+failed
    HTTP/1.1" 200 32
    Any help would be much appreciated.hi. i spent a long time on this issue...and got it working reliably for more than 10 gb flars.
    there are two issues- 1) apache must be 64 bit capable, and 2) you need the latest wanboot miniroot, for solaris 9 and one for solaris 10. i worked for a different division of a major car company based in stuttgart (take a guess) than i do now, and we eventually received the support we needed from sun, through the early release program. i do not know any details about if, how, or when those miniroots are otherwise available. at some point, i can only assume they will be generally available to all, if not already.
    if someone knows more about this availability issue, i would also be interested in this issue.
    thanks, dls

  • Size limit for how much video can be included in an AIR file?

    I'm making an AIR app to play a video locally.  It is on a PC with no internet connection, so the video (fv4) is  included with the air install file.  Is there a size limit for how much  video can be included in an AIR file? I seem to get the "...file is  damaged..." error when I include a video over 200mb. I use Flash CS4 to  create and AIR is v 1.53.

    I'm authoring in CS4 on a MAC with the latest OS and 4GB ram.  It plays fine on the Mac.  On a WIN7 PC with all updates and 4GB ram I get the errors if the air file that contains a video file over 200mb.  I heard that AIR 2 should solve the issue and that it is just a PC issue.. Maybe...   I have not tried using ADT to package the file.

Maybe you are looking for

  • IPhone 6 Wi-Fi and Battery Problems

    Background info: -- My first iPhone 6 kept randomly shutting down and turning itself back on while I was in various apps and on the home screen and also while the phone was on stand-by. I called Apple Support and they sent me a replacement without as

  • [Solved] No sound (using Gnome with Pulseaudio)

    Hello, I have an issue with my audio. Since yesterday it has not been working, as in no sound in my headphones I updated gnome, cinnamon and linux yesterday. I did not however update pulseaudio or anything else alsa related (as far as I can tell). An

  • New design

    Hi experts, this is requirement with this i have to design report, Please help me on this and send me code. Interface SAP billing document à local accounting packages Slovakia 1. Specification 1.1. Selection panel The selection panel should include f

  • Ipod sync quits after 9 songs

    I'm trying to sync my iPod touch with my iTunes library on my PC.  I have previously done this successfully many times.  The sync quits after about 9 songs are transferred.  I imported several CDs and they show up with the red square inside the red c

  • How do u get the data from server? if server send by bytes?

    how do u get the data from server? if server send by bytes? i have tried using bufferedinputstream to get the data n getting the bytes but there is some data missing.i couldnt all data.so my image cant be display