本文整理匯總了Java中javax.swing.tree.DefaultTreeCellRenderer.getLeafIcon方法的典型用法代碼示例。如果您正苦於以下問題:Java DefaultTreeCellRenderer.getLeafIcon方法的具體用法?Java DefaultTreeCellRenderer.getLeafIcon怎麽用?Java DefaultTreeCellRenderer.getLeafIcon使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類javax.swing.tree.DefaultTreeCellRenderer
的用法示例。
在下文中一共展示了DefaultTreeCellRenderer.getLeafIcon方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: test6
import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test6() throws Throwable {
File file0 = new File("");
DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
JRadioButton jRadioButton0 = new JRadioButton("", icon0);
FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
assertNotNull(fileFollowingPane0);
SearchableTextPane searchableTextPane0 = fileFollowingPane0.getTextPane();
assertEquals(false, searchableTextPane0.isEditable());
assertEquals(false, fileFollowingPane0.autoPositionCaret());
assertEquals(-1042, searchableTextPane0.getTabSize());
assertNotNull(searchableTextPane0);
assertEquals(3, fileFollowingPane0.getComponentCount());
}
示例2: test0
import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test0() throws Throwable {
File file0 = new File("");
DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
JRadioButton jRadioButton0 = new JRadioButton("", icon0);
FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
assertNotNull(fileFollowingPane0);
fileFollowingPane0.isFollowingPaused();
assertEquals(false, fileFollowingPane0.autoPositionCaret());
assertEquals(3, fileFollowingPane0.getComponentCount());
}
示例3: test1
import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test1() throws Throwable {
File file0 = new File("");
DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
JRadioButton jRadioButton0 = new JRadioButton("", icon0);
FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
assertNotNull(fileFollowingPane0);
fileFollowingPane0.pauseFollowing();
assertEquals(true, fileFollowingPane0.isFollowingPaused());
assertEquals(3, fileFollowingPane0.countComponents());
}
示例4: test2
import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test2() throws Throwable {
File file0 = new File("");
DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
JRadioButton jRadioButton0 = new JRadioButton("", icon0);
FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
assertNotNull(fileFollowingPane0);
File file1 = fileFollowingPane0.getFollowedFile();
assertEquals(false, fileFollowingPane0.autoPositionCaret());
assertEquals(3, fileFollowingPane0.countComponents());
assertNotNull(file1);
}
示例5: test3
import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test3() throws Throwable {
File file0 = new File("");
DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
JRadioButton jRadioButton0 = new JRadioButton("", icon0);
FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
assertNotNull(fileFollowingPane0);
fileFollowingPane0.setAutoPositionCaret(false);
assertEquals(false, fileFollowingPane0.autoPositionCaret());
assertEquals(3, fileFollowingPane0.getComponentCount());
}
示例6: test4
import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test4() throws Throwable {
File file0 = new File("");
DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
JRadioButton jRadioButton0 = new JRadioButton("", icon0);
FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
assertNotNull(fileFollowingPane0);
fileFollowingPane0.unpauseFollowing();
assertEquals(false, fileFollowingPane0.autoPositionCaret());
assertEquals(3, fileFollowingPane0.getComponentCount());
}
示例7: test5
import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test5() throws Throwable {
File file0 = new File("");
DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
JRadioButton jRadioButton0 = new JRadioButton("", icon0);
FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
assertNotNull(fileFollowingPane0);
fileFollowingPane0.isFollowing();
assertEquals(false, fileFollowingPane0.autoPositionCaret());
assertEquals(3, fileFollowingPane0.countComponents());
assertEquals(3, fileFollowingPane0.getComponentCount());
}
示例8: test7
import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test7() throws Throwable {
File file0 = new File("");
DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
JRadioButton jRadioButton0 = new JRadioButton("", icon0);
FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
assertNotNull(fileFollowingPane0);
boolean boolean0 = fileFollowingPane0.autoPositionCaret();
assertEquals(3, fileFollowingPane0.countComponents());
assertEquals(false, boolean0);
}
示例9: test8
import javax.swing.tree.DefaultTreeCellRenderer; //導入方法依賴的package包/類
@Test
public void test8() throws Throwable {
File file0 = new File("");
DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
JRadioButton jRadioButton0 = new JRadioButton("", icon0);
FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
assertNotNull(fileFollowingPane0);
fileFollowingPane0.clear();
assertEquals(false, fileFollowingPane0.autoPositionCaret());
assertEquals(3, fileFollowingPane0.getComponentCount());
}