public static void main(String[] args) { //print(new int[] { 1, 2, 3, 4}); println(new Object[] { new AssertUtils.Test(), }, new FieldAccessor() { public Object access(Field f, Object target) throws IllegalArgumentException, IllegalAccessException { return f.get(target); } }); }
public static void main(String[] args) { //print(new int[] { 1, 2, 3, 4}); DebugUtils.println(new Object[] { new Test(), }, new DebugUtils.FieldAccessor() { public Object access(Field f, Object target) throws IllegalArgumentException, IllegalAccessException { return f.get(target); } }); } }
public static void main(String[] args) { //print(new int[] { 1, 2, 3, 4}); println(new Object[] { new AssertUtils.Test(), }, new FieldAccessor() { public Object access(Field f, Object target) throws IllegalArgumentException, IllegalAccessException { return f.get(target); } }); }
public static void main(String[] args) { //print(new int[] { 1, 2, 3, 4}); DebugUtils.println(new Object[] { new Test(), }, new DebugUtils.FieldAccessor() { public Object access(Field f, Object target) throws IllegalArgumentException, IllegalAccessException { return f.get(target); } }); } }
public void run() { ByteArrayOutputStream bout = new ByteArrayOutputStream(); PrintStream pout = new PrintStream(bout); DebugUtils.println(SimpleGUI.this.config, pout); JTextArea ta = new JTextArea(); ta.setWrapStyleWord(true); ta.setLineWrap(true); ta.setText(new String(bout.toByteArray())); JScrollPane sp = new JScrollPane(ta); Dimension s = new Dimension(500, 400); ta.setMaximumSize(new Dimension(s.width, Integer.MAX_VALUE)); sp.setMaximumSize(s); sp.setMinimumSize(s); sp.setPreferredSize(s); JOptionPane.showMessageDialog(frame, sp, ftitle, JOptionPane.INFORMATION_MESSAGE); } }));
public void run() { ByteArrayOutputStream bout = new ByteArrayOutputStream(); PrintStream pout = new PrintStream(bout); DebugUtils.println(SimpleGUI.this.config, pout); JTextArea ta = new JTextArea(); ta.setWrapStyleWord(true); ta.setLineWrap(true); ta.setText(new String(bout.toByteArray())); JScrollPane sp = new JScrollPane(ta); Dimension s = new Dimension(500, 400); ta.setMaximumSize(new Dimension(s.width, Integer.MAX_VALUE)); sp.setMaximumSize(s); sp.setMinimumSize(s); sp.setPreferredSize(s); JOptionPane.showMessageDialog(frame, sp, ftitle, JOptionPane.INFORMATION_MESSAGE); } }));