提交 05ce3b68 编写于 作者: S serb

6515713: example in JFormattedTextField API docs instantiates abstract class

Reviewed-by: azvegint, alexsch
上级 2e2faa5c
/* /*
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -30,7 +30,6 @@ import java.awt.im.InputContext; ...@@ -30,7 +30,6 @@ import java.awt.im.InputContext;
import java.io.*; import java.io.*;
import java.text.*; import java.text.*;
import java.util.*; import java.util.*;
import javax.swing.UIManager;
import javax.swing.event.*; import javax.swing.event.*;
import javax.swing.plaf.UIResource; import javax.swing.plaf.UIResource;
import javax.swing.text.*; import javax.swing.text.*;
...@@ -151,7 +150,7 @@ import javax.swing.text.*; ...@@ -151,7 +150,7 @@ import javax.swing.text.*;
* will be created to handle formatting of numbers: * will be created to handle formatting of numbers:
* <pre> * <pre>
* JFormattedTextField tf = new JFormattedTextField(); * JFormattedTextField tf = new JFormattedTextField();
* tf.setValue(new Number(100)); * tf.setValue(100);
* </pre> * </pre>
* <p> * <p>
* <strong>Warning:</strong> As the <code>AbstractFormatter</code> will * <strong>Warning:</strong> As the <code>AbstractFormatter</code> will
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册