From c8570dd6d6fc85c276a4575e5ffa6dc6d21d7a96 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 20 Apr 2017 01:34:01 +0200 Subject: [PATCH] MessageFormat.format() is better ... MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../model/swing/contact/ContactTableModel.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 } } -- 2.39.5