< prev index next >

src/share/classes/sun/tools/jconsole/inspector/XMBeanNotifications.java

Print this page
rev 1501 : 7017818: NLS: JConsoleResources.java cannot be handled by translation team
Reviewed-by: mchung, mfang

*** 24,34 **** */ package sun.tools.jconsole.inspector; import javax.swing.*; - import javax.swing.event.*; import javax.swing.table.*; import javax.swing.tree.*; import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.Font; --- 24,33 ----
*** 47,69 **** import javax.management.*; import javax.management.openmbean.CompositeData; import javax.management.openmbean.TabularData; ! import sun.tools.jconsole.Resources; @SuppressWarnings("serial") public class XMBeanNotifications extends JTable implements NotificationListener { private final static String[] columnNames = { ! Resources.getText("TimeStamp"), ! Resources.getText("Type"), ! Resources.getText("UserData"), ! Resources.getText("SeqNum"), ! Resources.getText("Message"), ! Resources.getText("Event"), ! Resources.getText("Source")}; private HashMap<ObjectName, XMBeanNotificationsListener> listeners = new HashMap<ObjectName, XMBeanNotificationsListener>(); private boolean subscribed; private XMBeanNotificationsListener currentListener; --- 46,69 ---- import javax.management.*; import javax.management.openmbean.CompositeData; import javax.management.openmbean.TabularData; ! import sun.tools.jconsole.Messages; @SuppressWarnings("serial") public class XMBeanNotifications extends JTable implements NotificationListener { private final static String[] columnNames = { ! Messages.TIME_STAMP, ! Messages.TYPE, ! Messages.USER_DATA, ! Messages.SEQ_NUM, ! Messages.MESSAGE, ! Messages.EVENT, ! Messages.SOURCE ! }; private HashMap<ObjectName, XMBeanNotificationsListener> listeners = new HashMap<ObjectName, XMBeanNotificationsListener>(); private boolean subscribed; private XMBeanNotificationsListener currentListener;
*** 176,186 **** super.getCellRenderer(row, column); } if(cell != null) ! toolTip = Resources.getText("Double click to expand/collapse")+". " + cell.toString(); else { Object val = ((DefaultTableModel) getModel()).getValueAt(row,column); if(val != null) --- 176,186 ---- super.getCellRenderer(row, column); } if(cell != null) ! toolTip = Messages.DOUBLE_CLICK_TO_EXPAND_FORWARD_SLASH_COLLAPSE+". " + cell.toString(); else { Object val = ((DefaultTableModel) getModel()).getValueAt(row,column); if(val != null)
*** 562,572 **** return super.stopCellEditing(); } } class XMBeanNotificationsListener implements NotificationListener { - private String[] columnNames; private XMBean xmbean; private DefaultMutableTreeNode node; private long received; private XMBeanNotifications notifications; private boolean unregistered; --- 562,571 ----
*** 576,586 **** DefaultMutableTreeNode node, String[] columnNames) { this.notifications = notifications; this.xmbean = xmbean; this.node = node; - this.columnNames = columnNames; register(node); } public synchronized List<Object[]> getData() { return data; --- 575,584 ----
< prev index next >