]> git.mxchange.org Git - jcore-swing.git/commitdiff
MessageFormat.format() is better ...
authorRoland Häder <roland@mxchange.org>
Wed, 19 Apr 2017 23:34:01 +0000 (01:34 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 19 Apr 2017 23:34:01 +0000 (01:34 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcoreswing/model/swing/contact/ContactTableModel.java

index 37cac1b64aa271d2fc2dbd991d0ecf56f5dd3912..3c79e700305f4df58f1be3a05f2086e29250a0bc 100644 (file)
@@ -16,6 +16,7 @@
  */
 package org.mxchange.jcoreswing.model.swing.contact;
 
+import java.text.MessageFormat;
 import javax.swing.table.TableModel;
 import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jcore.facade.Facade;
@@ -54,35 +55,35 @@ public class ContactTableModel extends BaseModel implements Model, TableModel {
        @Override
        public int getColumnCount () {
                // Unfinished
-               throw new UnsupportedOperationException("Unfinished method.");
+               throw new UnsupportedOperationException("Unfinished method."); //NOI18N
        }
 
        @Override
        public String getColumnName (final int columnIndex) {
                // Unfinished
-               throw new UnsupportedOperationException("Unfinished method.");
+               throw new UnsupportedOperationException("Unfinished method."); //NOI18N
        }
 
        @Override
        public int getRowCount () {
                // Unfinished
-               throw new UnsupportedOperationException("Unfinished method.");
+               throw new UnsupportedOperationException("Unfinished method."); //NOI18N
        }
 
        @Override
        public Object getValueAt (final int rowIndex, final int columnIndex) {
                // Unfinished
-               throw new UnsupportedOperationException("Unfinished method.");
+               throw new UnsupportedOperationException("Unfinished method."); //NOI18N
        }
 
        @Override
        public boolean isCellEditable (final int rowIndex, final int columnIndex) {
-               throw new UnsupportedOperationException("Not supported yet. rowIndex=" + rowIndex + ",columnIndex=" + columnIndex); //To change body of generated methods, choose Tools | Templates.
+               throw new UnsupportedOperationException(MessageFormat.format("Not supported yet. rowIndex={0},columnIndex={1}", rowIndex, columnIndex)); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
        @Override
        public void setValueAt (final Object value, final int rowIndex, final int columnIndex) {
-               throw new UnsupportedOperationException("Not supported yet. value=" + value + ",rowIndex=" + rowIndex + ",columnIndex=" + columnIndex); //To change body of generated methods, choose Tools | Templates.
+               throw new UnsupportedOperationException(MessageFormat.format("Not supported yet. value={0},rowIndex={1},columnIndex={2}", value, rowIndex, columnIndex)); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
 }