From: Roland Häder Date: Wed, 19 Apr 2017 23:34:01 +0000 (+0200) Subject: MessageFormat.format() is better ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c8570dd6d6fc85c276a4575e5ffa6dc6d21d7a96;p=jcore-swing.git MessageFormat.format() is better ... Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jcoreswing/model/swing/contact/ContactTableModel.java b/src/org/mxchange/jcoreswing/model/swing/contact/ContactTableModel.java index 37cac1b..3c79e70 100644 --- a/src/org/mxchange/jcoreswing/model/swing/contact/ContactTableModel.java +++ b/src/org/mxchange/jcoreswing/model/swing/contact/ContactTableModel.java @@ -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 } }