Javadoc/Nitpick のバックアップ差分(No.5)
- バックアップ一覧
- 現在との差分 を表示
- 現在との差分 - Visual を表示
- ソース を表示
- バックアップ を表示
- Javadoc/Nitpick へ行く。
- 1 (2011-11-11 (金) 16:34:33)
- 2 (2012-04-11 (水) 14:04:09)
- 3 (2012-04-11 (水) 19:00:19)
- 4 (2012-05-09 (水) 11:53:28)
- 5 (2012-05-11 (金) 16:46:56)
- 6 (2012-05-21 (月) 15:00:13)
- 7 (2012-07-01 (日) 06:40:05)
- 8 (2012-07-02 (月) 20:55:44)
- 9 (2013-05-30 (木) 19:29:33)
- 10 (2013-09-11 (水) 15:50:29)
- 11 (2014-03-28 (金) 15:57:33)
- 12 (2014-09-02 (火) 16:30:10)
- 13 (2014-09-24 (水) 14:42:18)
- 14 (2014-10-23 (木) 14:19:25)
- 15 (2014-10-31 (金) 19:00:11)
- 16 (2014-11-01 (土) 00:46:09)
- 17 (2015-03-09 (月) 14:46:02)
- 18 (2015-03-16 (月) 17:28:33)
- 19 (2015-06-03 (水) 19:05:23)
- 20 (2015-06-26 (金) 18:04:10)
- 21 (2015-07-14 (火) 18:16:16)
- 22 (2016-02-08 (月) 14:15:43)
- 23 (2017-01-10 (火) 14:18:45)
- 24 (2017-01-10 (火) 15:26:48)
- 25 (2017-04-04 (火) 14:13:45)
- 26 (2017-04-07 (金) 13:51:51)
- 27 (2017-06-07 (水) 15:35:06)
- 28 (2017-10-23 (月) 18:41:48)
- 29 (2017-10-24 (火) 12:56:49)
- 30 (2017-11-02 (木) 15:34:40)
- 31 (2017-11-14 (火) 18:13:52)
- 32 (2018-01-15 (月) 18:56:51)
- 33 (2018-02-27 (火) 14:35:27)
- 34 (2018-03-08 (木) 16:34:51)
- 35 (2018-03-09 (金) 22:20:34)
- 36 (2018-04-10 (火) 17:38:15)
- 37 (2018-07-25 (水) 18:02:33)
- 38 (2019-02-19 (火) 15:43:25)
- 39 (2019-10-18 (金) 19:05:47)
- 40 (2022-02-11 (金) 15:05:27)
- 41 (2022-02-16 (水) 16:17:39)
- 42 (2022-02-21 (月) 14:04:33)
- 43 (2022-08-20 (土) 22:15:25)
- 追加された行はこの色です。
- 削除された行はこの色です。
TITLE:翻訳元から - Javadoc #navi(../) RIGHT:Posted by &author(aterai); at 2010-10-05 * 翻訳元から? [#f7d3b511] #contents(big) ** agressively [#d899477e] - http://docs.oracle.com/javase/7/docs/api/javax/swing/UIManager.html -- agressively -- aggressively Typo -- Some look and feels may agressively look up defaults, so that changing a default may not have an effect after installing the look and feel. Other look and feels may lazily access defaults so that a change to the defaults may effect an existing look and feel. この説明がよく分からない。逆のような気がするような、しないような…。 -- UIManager.getString("Table.foreground") この例だと、常に null になるような。UIManager.get("Table.foreground") とか UIManager.getColor("Table.foreground") にした方がよさそう? ** Htmlの表がずれている [#p5e32821] - http://docs.oracle.com/javase/jp/6/api/java/awt/Container.html#setFocusTraversalKeys(int,%20java.util.Set) - http://docs.oracle.com/javase/6/docs/api/java/awt/Container.html#setFocusTraversalKeys(int,%20java.util.Set) -- KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS, 1 つ下のフォーカストラバーサルサイクルに移動 none - [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4470006 Bug ID: 4470006 Table shown for Traversal Keys in setDefaultFocusTraversalKeys() not proper] -- Submit Date 14-JUN-2001 ** サンプルコードが一行になっている [#p188f78e] - http://docs.oracle.com/javase/jp/6/api/java/awt/BasicStroke.html - http://docs.oracle.com/javase/6/docs/api/java/awt/BasicStroke.html -- // sets the Graphics2D object's Transform attirbute g2d.scale(10, 10); // sets the Graphics2D object's Storoke attribute g2d.setStroke(new BasicStroke(1.5f)); ** class MyApp java.io.Serializable [#o8876b77] - http://docs.oracle.com/javase/7/docs/api/java/awt/Component.html -- class MyApp java.io.Serializable - 変更案 -- class MyApp implements Serializable サンプルコードで、implements が抜けている。 ** 文字化け? [#j58229fa] - http://docs.oracle.com/javase/jp/6/technotes/guides/swing/1.4/w2k_props.html - http://docs.oracle.com/javase/6/docs/technotes/guides/swing/1.4/w2k_props.html -- "win.frame.textColor?????" -- 「メッセージボックスのフォントカラー」のプロパティー名が文字化け? -- http://java.sun.com/j2se/1.5.0/ja/docs/ja/guide/swing/1.4/w2k_props.html は、「ウィンドウのフォントカラー」と同じ値になっている 本来は、"win.messagebox.textColor" とか、全然別の値なのか、あるいは、この ページの先頭付近に載っているサンプルコード #code{{ String propnames[] = (String[])Toolkit.getDefaultToolkit().getDesktopProperty("win.propNames"); }} で、プロパティー一覧を取得しても、"win.messagebox.textColor" は存在しないので、 「メッセージボックスのフォントカラー」自体が設定できないのかもしれない。 他にも同様に、?がついて重複するプロパティー名が存在する。 #code{{ 「アイコンのサイズ」 "win.icon.hspacing" "win.icon.vspacing"??? 「アイコンの横の間隔」 "win.icon.hspacing" 「アイコンの縦の間隔」 "win.icon.vspacing" }} ** dataModelとnewModel [#pb842784] - http://docs.oracle.com/javase/jp/6/api/javax/swing/JTable.html#setModel(javax.swing.table.TableModel) - http://docs.oracle.com/javase/6/docs/api/javax/swing/JTable.html#setModel(javax.swing.table.TableModel) -- 引数のdataModelとnewModelが混ざっている? #code{{ public void setModel(TableModel dataModel) このテーブルのデータモデルを newModel に設定し、それに新しいデータモデルからのリスナー通知を登録します。 パラメータ: dataModel - このテーブルの新しいデータソース 例外: IllegalArgumentException - newModel が null の場合 }} ** ピクセルの色調を明るくする場合は true [#s9dab407] - http://docs.oracle.com/javase/jp/6/api/javax/swing/GrayFilter.html#GrayFilter(boolean,%20int) -- b - boolean 型 -- ピクセルの色調を明るくする場合は true -- p - グレーの割合を指定する 0 ~ 100 の範囲の int。 100 はもっとも暗いグレー、0 はもっとも明るいグレー - http://docs.oracle.com/javase/6/docs/api/javax/swing/GrayFilter.html#GrayFilter(boolean,%20int) -- b - a boolean -- true if the pixels should be brightened -- p - an int in the range 0..100 that determines the percentage of gray, where 100 is the darkest gray, and 0 is the lightest #code{{ import java.awt.*; import java.awt.image.*; import java.net.*; import javax.swing.*; public class GrayFilterTest { public JComponent makeUI() { URL url = null; try { url = new URL("http://lh4.ggpht.com/_9Z4BYR88imo/TRD2KGq73BI/AAAAAAAAAwA/N8-6EXongNk/s800/webstart.png"); } catch (MalformedURLException e) { throw new InternalError(); } ImageIcon original = new ImageIcon(url); ImageProducer ip = original.getImage().getSource(); Box box = Box.createVerticalBox(); box.add(makeLabel("original ", original)); box.add(makeLabel("false, 0", makeGrayImageIcon(ip, false, 0))); box.add(makeLabel("false, 50", makeGrayImageIcon(ip, false, 50))); box.add(makeLabel("false, 100", makeGrayImageIcon(ip, false, 100))); box.add(makeLabel("true, 0", makeGrayImageIcon(ip, true, 0))); box.add(makeLabel("true, 50", makeGrayImageIcon(ip, true, 50))); box.add(makeLabel("true, 100", makeGrayImageIcon(ip, true, 100))); return box; } private JLabel makeLabel(String title, Icon icon) { return new JLabel(title, icon, SwingConstants.HORIZONTAL); } private Icon makeGrayImageIcon(ImageProducer ip, boolean b, int p) { return new ImageIcon(Toolkit.getDefaultToolkit().createImage( new FilteredImageSource(ip, new GrayFilter(b, p)))); } public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { createAndShowGUI(); } }); } public static void createAndShowGUI() { JFrame f = new JFrame(); f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); f.getContentPane().add(new GrayFilterTest().makeUI()); f.pack(); f.setLocationRelativeTo(null); f.setVisible(true); } } }} ** TableModel#isCellEditable(...) [#m34adfd8] - https://docs.oracle.com/javase/jp/6/api/javax/swing/table/TableModel.html#isCellEditable(int,%20int) - http://docs.oracle.com/javase/6/docs/api/javax/swing/table/TableModel.html#isCellEditable(int,%20int) -- rowIndex および columnIndex に位置するセルが編集可能な場合に true を返します。そうでない場合は、セルの setValueAt はそのセルの値を変更しません。 -- [http://bugs.sun.com/view_bug.do?bug_id=4292804 Bug ID: 4292804 DefaultTableModel doc confusion between isCellEditable and setValueAt] --- DefaultTableModel は修正されている?、TableModel は関係ない? ** Component.AccessibleAWTComponent.getAccessibleIndexInParent() [#n8ee376d] - http://docs.oracle.com/javase/jp/6/api/javax/swing/SwingUtilities.html -- 注:Java 2 プラットフォーム v1.3 以降、開発者はこのメソッドを使用する代わりに、Component.AccessibleAWTComponent.getAccessibleIndexInParent() を呼び出すことをお勧めします。 - http://docs.oracle.com/javase/6/docs/api/javax/swing/SwingUtilities.html -- Note: as of the Java 2 platform v1.3, it is recommended that developers call Component.AccessibleAWTComponent.getAccessibleIndexInParent() instead of using this method. コピペして、修正し忘れてるようで、注:が全部getAccessibleIndexInParentのものと同じになっている。 ** Dimension オブジェクト、寸法オブジェクト [#gfb4e02f] - http://docs.oracle.com/javase/7/docs/api/java/awt/Component.html#getSize() -- a Dimension object - http://docs.oracle.com/javase/jp/6/api/java/awt/Component.html#getSize() -- Dimension オブジェクト - http://docs.oracle.com/javase/7/docs/api/java/awt/Component.html#getPreferredSize() -- a dimension object - http://docs.oracle.com/javase/jp/6/api/java/awt/Component.html#getPreferredSize() -- 寸法オブジェクト * コメント [#z1d2c369] #comment