Java Code Examples for [Link].
JScrollPane
The following code examples are extracted from open source projects. You can click to vote up the examples that are
useful to you.
Example 1
From project addis, under directory /application/src/main/java/org/drugis/addis/gui/.
Source file: [Link]
18
public static JScrollPane createInScrollPane(PanelBuilder builder,Dimension prefSize){
JScrollPane scroll=new JScrollPane([Link]());
[Link](prefSize);
[Link]().setUnitIncrement(16);
return scroll;
}
Example 2
From project Android-DB-Editor, under directory /src/com/troido/dbeditor/.
Source file: [Link]
18
public AndroidDBEditor(){
super("Android DB Editor");
[Link](true);
List<String> deviceNames=[Link]();
for ( String deviceName : deviceNames) {
Device d=new Device(deviceName);
[Link](d);
}
tree=createDeviceTree(devices);
JScrollPane scrollPane=new JScrollPane(tree);
[Link]().add(scrollPane);
[Link](300,600);
}
Example 3
From project BMach, under directory /src/jsyntaxpane/components/.
Source file: [Link]
18
@Override public void deinstall(JEditorPane editor){
removeMouseListener(mouseListener);
status=[Link];
[Link]().removeDocumentListener(this);
[Link](this);
[Link](this);
JScrollPane sp=getScrollPane(editor);
if (sp != null) {
[Link]().removeDocumentListener(this);
[Link](null);
}
}
Example 4
From project Calendar-Application, under directory /com/toedter/calendar/demo/.
Source file: [Link]
18
public DemoTable(){
super(new GridLayout(1,0));
setName("DemoTable");
JTable table=new JTable(new DemoTableModel());
[Link](new Dimension(180,32));
[Link]([Link],new JDateChooserCellEditor());
JScrollPane scrollPane=new JScrollPane(table);
add(scrollPane);
}
Example 5
From project Clotho-Core, under directory /ClothoApps/SeqAnalyzer/src/org/clothocad/algorithm/seqanalyzer/sequencing/.
Source file: [Link]
18
public static void main(String[] args){
ABIClassification a=new ABIClassification(12);
JScrollPane scrollPane=new JScrollPane(a);
[Link](new Dimension(350,170));
[Link](null,scrollPane,"" + [Link],JOptionPane.INFORMATION_MESSAGE);
}
Example 6
From project codjo-data-process, under directory /codjo-data-process-gui/src/main/java/net/codjo/dataprocess/gui/util/std/.
Source file: [Link]
18
protected JPanel buildRequestTablePanel(){
JPanel mainPanel=new JPanel();
[Link](new BorderLayout());
JScrollPane scrollPane=new JScrollPane();
[Link]().add(requestTable,null);
[Link](scrollPane,[Link]);
[Link](requestTable,scrollPane);
return mainPanel;
}
Example 7
From project codjo-segmentation, under directory /codjo-segmentation-gui/src/main/java/net/codjo/segmentation/gui/editor/.
Source file: [Link]
18
public ValueListPanel(){
[Link]("[Link]");
[Link](new BorderLayout());
[Link](new JLabel("List Of Values"),[Link]);
JScrollPane scroll=new JScrollPane(list);
[Link](scroll,[Link]);
}
Example 8
From project dawn-isencia, under
directory/[Link]/src/main/java/com/isencia/util/swing/components/.
Source file: [Link]
18
public DynamicTree(String rootNodeName){
rootNode=new DefaultMutableTreeNode(rootNodeName);
treeModel=new DefaultTreeModel(rootNode);
[Link](new MyTreeModelListener());
tree=new JTree(treeModel);
[Link](true);
[Link]().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
[Link](true);
JScrollPane scrollPane=new JScrollPane(tree);
setLayout(new GridLayout(1,0));
add(scrollPane);
}
Example 9
From project drools-planner, under directory /drools-planner-examples/src/main/java/org/drools/planner/examples/app/.
Source file: [Link]
18
private Container createContentPane(){
JPanel contentPane=new JPanel(new BorderLayout(10,10));
[Link]([Link](5,5,5,5));
JLabel titleLabel=new JLabel("Which example do you want to see?",[Link]);
[Link]([Link]().deriveFont(20.0f));
[Link](titleLabel,[Link]);
JScrollPane examplesScrollPane=new JScrollPane(createExamplesPanel());
[Link]().setUnitIncrement(20);
[Link]().setUnitIncrement(20);
[Link](examplesScrollPane,[Link]);
[Link](createDescriptionPanel(),[Link]);
return contentPane;
}
Example 10
From project droolsjbpm-integration, under directory /droolsjbpm-integration-
examples/src/main/java/org/drools/examples/broker/ui/.
Source file: [Link]
18
public LogPanel(){
setLayout(new BorderLayout());
log=new JTextArea();
[Link](false);
JScrollPane areaScrollPane=new JScrollPane(log);
[Link](JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
add(areaScrollPane,[Link]);
setBorder([Link](10,10,10,10));
setPreferredSize(new Dimension(400,50));
}
Example 11
From project drugis-common, under directory /common-gui/src/main/java/org/drugis/common/gui/.
Source file: [Link]
18
public static JScrollPane createTextArea(ValueModel model,boolean editable,boolean
commitOnFocusLost){
JTextArea area=[Link](model,commitOnFocusLost);
dontStealTabKey(area);
[Link](editable);
[Link](true);
[Link](true);
if (!editable) {
[Link](new [Link]());
}
JScrollPane pane=new JScrollPane(area);
[Link](JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
[Link](new
Dimension([Link]().dialogUnitXAsPixel(200,area),[Link]
ance().dialogUnitYAsPixel(50,area)));
return pane;
}
Example 12
From project encog-java-workbench, under directory /src/main/java/org/encog/workbench/frames/document/tree/.
Source file: [Link]
18
public ProjectTree(EncogDocumentFrame doc){
[Link]=doc;
[Link]=new EncogCollectionModel();
[Link]=new JTree([Link]);
[Link](this);
[Link](this);
[Link](new ProjectTreeRenderer());
final JScrollPane scrollPane=new JScrollPane([Link]);
[Link](new BorderLayout());
[Link](scrollPane,[Link]);
[Link]();
dt=new DropTarget(this,this);
}
Example 13
From project GenericKnimeNodes, under
directory/[Link].base_plugin/src/com/genericworkflownodes/knime/generic_node/.
Source file: [Link]
18
private JScrollPane createScrollableOutputArea(final String content){
JTextArea text=new JTextArea(content,40,80);
[Link](new Font("Monospaced",[Link],12));
[Link](false);
if ([Link]() == 0) {
[Link](false);
}
JScrollPane scrollpane=new JScrollPane(text);
return scrollpane;
}
Example 14
From project gs-tool, under directory /src/org/graphstream/tool/gui/.
Source file: [Link]
18
Choices(){
JScrollPane scroll=new JScrollPane();
[Link](new Dimension([Link](),200));
[Link](false);
[Link]().setOpaque(false);
[Link](null);
setBackground(background);
[Link](this);
add(scroll);
}
Example 15
From project Agot-Java, under directory /src/main/java/got/ui/.
Source file: [Link]
17
/**
* @param args
* @throws Exception
*/
public static void main(String[] args) throws Exception {
new LogInitiator().init();
Node node=new Node();
if (args[0].equals("joiner1")) {
[Link]("[Link]","[Link]");
[Link](args[1]);
}
else if (args[0].equals("joiner2")) {
[Link]("[Link]","[Link]");
[Link](args[1]);
}
else {
[Link]("[Link]",null);
[Link](args[1]);
}
[Link](new WindowAdapter(){
public void windowClosing( WindowEvent e){
[Link](0);
}
}
);
JScrollPane jscrollPane=new JScrollPane(new MainPanel(node));
[Link](JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
[Link]().add(jscrollPane);
[Link]();
[Link](true);
}
Example 16
From project alg-vis, under directory /src/algvis/gui/.
Source file: [Link]
17
private void init(){
[Link](new GridBagLayout());
JPanel screenP=initScreen();
JScrollPane commentary=initCommentary();
statusBar=new ILabel("EMPTYSTR");
initDS();
GridBagConstraints cs=new GridBagConstraints();
[Link]=0;
[Link]=0;
[Link]=[Link];
add(screenP,cs);
GridBagConstraints cc=new GridBagConstraints();
[Link]=1;
[Link]=0;
[Link]=2;
[Link]=[Link];
add(commentary,cc);
GridBagConstraints cb=new GridBagConstraints();
[Link]=0;
[Link]=1;
[Link]=[Link];
add(B,cb);
GridBagConstraints csb=new GridBagConstraints();
[Link]=0;
[Link]=2;
[Link]=[Link];
add(statusBar,csb);
[Link](D);
[Link]();
languageChanged();
[Link]();
}
Example 17
From project autopsy, under directory /Core/src/org/sleuthkit/autopsy/filesearch/.
Source file: [Link]
17
/**
* This method is called from within the constructor to initialize the form.
*/
private void initComponents(){
[Link](new BorderLayout());
JPanel filterPanel=new JPanel();
[Link](new BoxLayout(filterPanel,BoxLayout.Y_AXIS));
[Link](new EmptyBorder(10,10,10,10));
JScrollPane scrollPane=new JScrollPane(filterPanel);
[Link]([Link]());
[Link](scrollPane,[Link]);
JLabel label=new JLabel("Search for files that match the following criteria:");
[Link](Component.LEFT_ALIGNMENT);
[Link](new EmptyBorder(0,0,10,0));
[Link](label);
[Link](new FilterArea("Name",new NameSearchFilter()));
List<FileSearchFilter> metadataFilters=new ArrayList<FileSearchFilter>();
[Link](new SizeSearchFilter());
[Link](new DateSearchFilter());
[Link](new FilterArea("Metadata",metadataFilters));
[Link](new FilterArea("Known Status",new KnownStatusSearchFilter()));
for ( FilterArea fa : [Link]) {
[Link](new Dimension(Integer.MAX_VALUE,[Link]().height));
[Link](Component.LEFT_ALIGNMENT);
[Link](fa);
}
[Link]=new JButton("Search");
[Link](Component.LEFT_ALIGNMENT);
[Link](new ActionListener(){
@Override public void actionPerformed( ActionEvent e){
[Link]();
}
}
);
[Link](searchButton);
}
Example 18
From project Briss, under directory /src/main/java/at/laborg/briss/gui/.
Source file: [Link]
17
public HelpDialog(Frame owner,String title,[Link] modalityType){
super(owner,title,modalityType);
setBounds(232,232,500,800);
String helpText="";
InputStream is=getClass().getResourceAsStream(HELP_FILE_PATH);
byte[] buf=new byte[1024 * 100];
try {
int cnt=[Link](buf);
helpText=new String(buf,0,cnt);
}
catch ( IOException e) {
helpText="Couldn't read the help file... Please contact [Link]@[Link]";
}
JEditorPane jEditorPane=new JEditorPane("text/html",helpText);
[Link](false);
[Link](true);
JScrollPane scroller=new JScrollPane(jEditorPane);
getContentPane().add(scroller);
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
setVisible(true);
}
Example 19
From project ceres, under directory /ceres-jai/src/test/java/com/bc/ceres/jai/.
Source file: [Link]
17
public static void showImage(RenderedImage image,String name){
int width=[Link]();
int height=[Link]();
int numBands=[Link]().getNumBands();
int dataType=[Link]().getDataType();
[Link]("============= Image " + name);
[Link]("width = " + width);
[Link]("height = " + height);
[Link]("numBands = " + numBands);
[Link]("dataType = " + dataType);
BufferedImage bufferedImage;
if (image instanceof PlanarImage) {
PlanarImage planarImage=(PlanarImage)image;
long t0=[Link]();
bufferedImage=[Link]();
long t1=[Link]();
[Link]("BufferedImage created in " + (t1 - t0) / (1000.0 * 1000.0) + " ms");
}
else if (image instanceof BufferedImage) {
bufferedImage=(BufferedImage)image;
}
else {
throw new IllegalArgumentException("image");
}
JScrollPane scrollPane=new JScrollPane(new JLabel(new ImageIcon(bufferedImage)));
[Link](null);
JFrame frame=new JFrame(name);
[Link](JFrame.EXIT_ON_CLOSE);
[Link](scrollPane);
[Link]();
[Link](location+=24,location+=24);
[Link](true);
}
Example 20
From project Chess_1, under directory /src/chess/gui/.
Source file: [Link]
17
/**
* Brings up a window with a scrolling text pane that display the help information.
*/
private void showHelp(){
JDialog dialog=new JDialog(this,[Link]("[Link]"));
final JEditorPane helpText=new JEditorPane();
try {
URL url=getClass().getResource("[Link]");
[Link](url);
}
catch ( Exception e) {
[Link]([Link]("[Link]"));
}
[Link](false);
[Link](new HyperlinkListener(){
public void hyperlinkUpdate( HyperlinkEvent ev){
if ([Link]() == [Link]) try {
[Link]([Link]());
}
catch ( Exception ex) {
}
}
}
);
JScrollPane sp=new JScrollPane(helpText);
[Link](new Dimension(650,500));
[Link]().add(sp);
[Link](getX() + getWidth() - 200,getY() + 50);
[Link]();
[Link](true);
}
Example 21
From project codjo-broadcast, under directory /codjo-broadcast-gui/src/main/java/net/codjo/broadcast/gui/.
Source file: [Link]
17
private void jbInit() throws Exception {
TitledBorder filesTitledBorder=new TitledBorder([Link]([Link],new
Color(134,134,134)),"");
JScrollPane filesScrollPane=new JScrollPane();
[Link]().add(filesTable,null);
filesPanel=new JPanel();
[Link](new BorderLayout());
[Link](filesTitledBorder);
[Link](filesScrollPane,[Link]);
[Link](filesToolBar,[Link]);
Border sectionsBorder=[Link]([Link],new Color(134,134,134));
TitledBorder sectionsTitledBorder=new TitledBorder(sectionsBorder,"");
JScrollPane sectionsScrollPane=new JScrollPane();
[Link]().add(contentsTable,null);
sectionsPanel=new JPanel();
[Link](new BorderLayout());
[Link](sectionsTitledBorder);
[Link](sectionsScrollPane,[Link]);
[Link](contentsToolBar,[Link]);
JSplitPane splitPane=new JSplitPane(JSplitPane.VERTICAL_SPLIT,true,filesPanel,sectionsPanel);
[Link](0.3);
[Link](300);
getContentPane().setLayout(new BorderLayout());
setClosable(true);
setResizable(true);
setIconifiable(true);
setTitle("Fichiers / Sections");
setPreferredSize(new Dimension(500,500));
getContentPane().add(splitPane,[Link]);
}
Example 22
From project codjo-control, under directory /codjo-control-gui/src/main/java/net/codjo/control/gui/plugin/.
Source file: [Link]
17
protected void addBasicField(String label,JComponent comp,String tabName){
if (comp instanceof JTextArea) {
((JTextArea)comp).setLineWrap(true);
((JTextArea)comp).setWrapStyleWord(true);
getCurrentPanel(tabName).addItem(label,new
JScrollPane(comp,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER));
}
else {
getCurrentPanel(tabName).addItem(label,comp);
}
}
Example 23
From project codjo-imports, under directory /codjo-imports-gui/src/main/java/net/codjo/imports/gui/.
Source file: [Link]
17
protected void addField(String fieldName,JLabel label,JComponent comp){
if (comp instanceof JTextArea) {
JTextArea textArea=(JTextArea)comp;
[Link](true);
[Link](true);
[Link](label,new
JScrollPane(textArea,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER));
}
else {
[Link](label,comp);
}
[Link](fieldName,comp);
}
Example 24
From project codjo-standalone-common, under directory /src/main/java/net/codjo/gui/.
Source file: [Link]
17
/**
* Init GUI.
*/
private void jbInit(){
final JTree tree=[Link]();
border1=[Link]([Link],new Color(134,134,134));
titledBorder1=new TitledBorder(border1,"Filtres d'affichage");
[Link]().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
[Link]("[Link]","Angled");
[Link](true);
[Link]().registerComponent(tree);
setFrameIcon([Link]("[Link]"));
[Link](new Dimension(325,600));
[Link]().setBackground([Link]);
[Link]().setLayout(borderLayout2);
MouseListener ml=new [Link](){
/**
* Determine la table s?ectionn? par un double click.
* @param evt Evenement de la souris.
*/
public void mousePressed( MouseEvent evt){
DefaultMutableTreeNode nodeInfo=(DefaultMutableTreeNode)[Link]();
int selRow=[Link]([Link](),[Link]());
if (selRow != -1) {
if ([Link]() == 2) {
Table table=(Table)[Link]();
execute(table);
}
}
}
}
;
[Link](ml);
[Link](titledBorder1);
[Link](borderLayout1);
JScrollPane treeView=new JScrollPane(tree);
[Link]().add(explorerPanel,[Link]);
[Link](treeView,[Link]);
[Link]().add(filterPanel,[Link]);
}
Example 25
From project collaborative-editor, under directory /mpedit/gui/.
Source file: [Link]
17
/**
* This method creates a JPanel and add's the TextArea and a userlist to it.
* @return tmpPanel The created Panel with the TextArea and the list of users
*/
private JPanel initMainPanel(){
GridBagConstraints gbc=new GridBagConstraints();
GridBagLayout gbl=new GridBagLayout();
JPanel tmpPanel=new JPanel(gbl);
[Link]=[Link];
JScrollPane scrollText=new JScrollPane(m_text);
[Link]=0;
[Link]=0;
[Link]=1;
[Link]=1;
[Link]=3;
[Link]=1;
[Link](scrollText,gbc);
[Link](scrollText);
JScrollPane scrollClientList=new JScrollPane(m_userlist);
[Link]=3;
[Link]=0;
[Link](scrollClientList,gbc);
[Link](scrollClientList);
m_document.addUndoableEditListener(m_undoManager);
return tmpPanel;
}
Example 26
From project datavalve, under directory /samples/swingDemo/src/main/java/org/fluttercode/datavalve/samples/swingdemo/.
Source file: [Link]
17
protected void initForm(){
DataInitializer di=new DataInitializer();
[Link]();
table=new JTable();
pane=new JScrollPane(table);
[Link](JTable.AUTO_RESIZE_OFF);
getContentPane().add(pane);
final ProviderTableModel<Person> model=initModel([Link]());
[Link]("ID");
[Link]("Name");
[Link]("Phone");
[Link](model);
initClickableColumns(model);
}
Example 27
From project dawn-common, under directory /[Link].hdf5/src/ncsa/hdf/view/.
Source file: [Link]
17
public TextAreaEditor(KeyListener keyListener){
super(new JTextField());
final JTextArea textArea=new JTextArea();
[Link](keyListener);
[Link](true);
[Link](true);
JScrollPane scrollPane=new JScrollPane(textArea);
[Link](null);
editorComponent=scrollPane;
delegate=new [Link](){
private static final long serialVersionUID=7662356579385373160L;
@Override public void setValue( Object value){
[Link]((value != null) ? [Link]() : "");
}
@Override public Object getCellEditorValue(){
return [Link]();
}
}
;
}
Example 28
From project des, under directory /daemon/lib/apache-log4j-1.2.16/contribs/CekiGulcu/.
Source file: [Link]
17
static public void main(String[] args){
if ([Link] != 2) {
[Link]("Usage: java AppenderTable bufferSize runLength\n" + " where bufferSize is the
size of the cyclic buffer in the TableModel\n" + " and runLength is the total number of elements to
add to the table in\n"+ " this test run.");
return;
}
JFrame frame=new JFrame("JTableAppennder test");
Container container=[Link]();
AppenderTable tableAppender=new AppenderTable();
int bufferSize=[Link](args[0]);
AppenderTableModel model=new AppenderTableModel(bufferSize);
[Link](model);
int runLength=[Link](args[1]);
JScrollPane sp=new JScrollPane(tableAppender);
[Link](new Dimension(250,80));
[Link](new BoxLayout(container,BoxLayout.X_AXIS));
[Link](sp);
JButton button=new JButton("ADD");
[Link](button);
[Link](new JTableAddAction(tableAppender));
[Link](new Dimension(500,300));
[Link](true);
long before=[Link]();
int i=0;
while (i++ < runLength) {
LoggingEvent event=new LoggingEvent("x",logger,[Link],"Message " + i,null);
[Link](event);
}
long after=[Link]();
long totalTime=(after - before);
[Link]("Total time :" + totalTime + " milliseconds for "+ "runLength insertions.");
[Link]("Average time per insertion :" + (totalTime * 1000 / runLength) + " micro-
seconds.");
}
Example 29
From project empire-db, under directory /empire-db-examples/empire-db-example-
cxf/src/main/java/org/apache/empire/samples/cxf/wssample/server/.
Source file: [Link]
17
/**
* This method initializes scroller
* @return [Link]
*/
private JScrollPane getScroller(){
if (scroller == null) {
scroller=new JScrollPane();
[Link](new Dimension(500,250));
[Link](getJEditorPane());
}
return scroller;
}
Example 30
From project extension_libero_manufacturing, under directory /extension/eevolution/libero/src/main/java/org/eevolution/form/.
Source file: [Link]
17
private void jbInit(){
CLabel label=null;
if (BOMWrapper.BOM_TYPE_PRODUCT.equals(type())) {
label=new CLabel([Link]([Link](),MProduct.Table_Name + "_ID"));
}
else if (BOMWrapper.BOM_TYPE_ORDER.equals(type())) {
label=new CLabel([Link]([Link](),MPPOrder.Table_Name + "_ID"));
}
[Link](lookup);
[Link](new FlowLayout([Link]));
[Link](label,null);
[Link](lookup,null);
[Link](new BorderLayout());
JScrollPane sp=new JScrollPane(nodeDescription);
[Link](null);
[Link](sp,[Link]);
[Link](new BorderLayout());
[Link](new Dimension(1000,600));
[Link](northPanel,[Link]);
[Link](contentPane,[Link]);
[Link](southPanel,[Link]);
}
Example 31
From project flyingsaucer, under directory /flying-saucer-core/src/main/java/org/xhtmlrenderer/simple/extend/form/.
Source file: [Link]
17
public JComponent create(){
int rows=4;
int cols=10;
if (hasAttribute("rows")) {
int parsedRows=[Link](getAttribute("rows"));
if (parsedRows > 0) {
rows=parsedRows;
}
}
if (hasAttribute("cols")) {
int parsedCols=[Link](getAttribute("cols"));
if (parsedCols > 0) {
cols=parsedCols;
}
}
_textarea=new TextAreaFieldJTextArea(rows,cols);
_textarea.setWrapStyleWord(true);
_textarea.setLineWrap(true);
JScrollPane scrollpane=new JScrollPane(_textarea);
[Link](ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
[Link](ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
applyComponentStyle(_textarea,scrollpane);
return scrollpane;
}
Example 32
From project formic, under directory /src/java/org/formic/wizard/step/gui/.
Source file: [Link]
17
/**
* {@inheritDoc}
* @see [Link]#init()
*/
public Component init(){
JPanel panel=new JPanel();
[Link](new BorderLayout());
if (html != null) {
JEditorPane editor=new JEditorPane("text/html",[Link]);
[Link](false);
[Link](false);
[Link](new HyperlinkListener());
[Link](null);
[Link](false);
content=editor;
}
else {
JTextArea area=new JTextArea();
[Link](false);
content=area;
}
JScrollPane scroll=new JScrollPane(content);
[Link](null);
[Link](scroll,[Link]);
return panel;
}
Example 33
From project freemind, under directory /freemind/accessories/plugins/.
Source file: [Link]
17
public void layout(DefaultFormBuilder builder,TextTranslator pTranslator){
JLabel label=[Link]([Link](getLabel()));
[Link](new JLabel());
[Link]([Link](getDescription()));
[Link]();
[Link](new JScrollPane(mList),3);
}
Example 34
From project FScape, under directory /src/main/java/de/sciss/fscape/session/.
Source file: [Link]
17
public void actionPerformed(ActionEvent e){
if (threadRunning) return;
final List presetNames=getPresets().presetNames();
[Link]([Link]);
final JList list=new JList([Link]());
final JScrollPane scroll=new JScrollPane(list);
final JOptionPane op=new
JOptionPane(scroll,JOptionPane.QUESTION_MESSAGE,JOptionPane.OK_CANCEL_OPTION);
final int
result=[Link](op,getComponent(),[Link]("procWinChooseDelPreset")
);
if (result == JOptionPane.OK_OPTION) {
final Object[] selNames=[Link]();
for (int i=0; i < [Link]; i++) {
deletePreset(selNames[i].toString());
}
}
}
Example 35
From project gitblit, under directory /src/com/gitblit/client/.
Source file: [Link]
17
public void setCustomFields(RepositoryModel repository,Map<String,String> customFields){
[Link]();
customTextfields=new ArrayList<JTextField>();
final Insets insets=new Insets(5,5,5,5);
JPanel fields=new JPanel(new GridLayout(0,1,0,5)){
private static final long serialVersionUID=1L;
@Override public Insets getInsets(){
return insets;
}
}
;
for ( [Link]<String,String> entry : [Link]()) {
String field=[Link]();
String value="";
if ([Link] != null && [Link](field)) {
value=[Link](field);
}
JTextField textField=new JTextField(value);
[Link](field);
[Link](new Dimension(450,26));
[Link](newFieldPanel([Link](),250,textField));
[Link](textField);
}
JScrollPane jsp=new JScrollPane(fields);
[Link]().setBlockIncrement(100);
[Link]().setUnitIncrement(100);
[Link](null);
[Link](new FlowLayout([Link]));
[Link](jsp);
}
Example 36
From project groovejaar, under directory /src/groovejaar/.
Source file: [Link]
17
/**
* Create the frame.
*/
public LyricsGui(String text){
setTitle("Lyrics");
[Link](new ImageUtil().getLogo());
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
setBounds(100,100,560,343);
contentPane=new JPanel();
[Link](new EmptyBorder(5,5,5,5));
setContentPane(contentPane);
JTextArea txtrTexthtml=new JTextArea();
[Link](false);
[Link](true);
[Link](8);
JScrollPane scrollingResult=new JScrollPane(txtrTexthtml);
JLabel lblLyric=new JLabel("Lyric (maybe this can be a wrong lyric, take care!):");
[Link](new Font("Tahoma",[Link],11));
[Link](" " + [Link]("<br />,","\n"));
GroupLayout gl_contentPane=new GroupLayout(contentPane);
gl_contentPane.setHorizontalGroup(gl_contentPane.createParallelGroup([Link]).addGroup(gl_co
[Link]().addGap(10).addGroup(gl_contentPane.createParallelGroup([Link]
ILING).addComponent(scrollingResult,[Link]).addComponent(lblLyric,[Link],GroupLa
yout.DEFAULT_SIZE,404,Short.MAX_VALUE)).addGap(10)));
gl_contentPane.setVerticalGroup(gl_contentPane.createParallelGroup([Link]).addGroup(gl_cont
[Link]().addGap(11).addComponent(lblLyric).addPreferredGap(ComponentPlacement.R
ELATED).addComponent(scrollingResult,GroupLayout.DEFAULT_SIZE,224,Short.MAX_VALUE)));
[Link](gl_contentPane);
}
Example 37
From project harmony, under directory /phosphorus-gmpls/src/main/java/org/opennaas/extensions/gmpls/client/views/.
Source file: [Link]
17
/**
* This method initializes scrollSource.
* @return [Link]
*/
private JScrollPane getScrollSource(){
if ([Link] == null) {
[Link]=new JScrollPane();
[Link]([Link]());
}
return [Link];
}
Example 38
From project Holo-Edit, under directory /holoedit/gui/.
Source file: [Link]
17
public DynamicTree(String s,boolean allowMultipleSelection){
super(new GridLayout(1,0));
rootNode=new DefaultMutableTreeNode(s);
treeModel=new DefaultTreeModel(rootNode);
[Link](new MyTreeModelListener());
tree=new JTree(treeModel);
[Link](new IconNodeRenderer());
[Link](false);
[Link](false);
if (allowMultipleSelection == false)
[Link]().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
else if (allowMultipleSelection == true)
[Link]().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
[Link](true);
[Link](true);
[Link](true);
JScrollPane scrollPane=new JScrollPane(tree);
[Link]([Link]());
add(scrollPane);
}
Example 39
From project Hotel-Management_MINF10-HCM, under directory /HotelManagement/src/main/java/core/formcontroller/.
Source file: [Link]
17
public void setNormalSize(){
JScrollPane scrollPane=getScrollPane();
int x=0;
int y=0;
Insets scrollInsets=getScrollPaneInsets();
if (scrollPane != null) {
Dimension d=[Link]().getSize();
if ([Link]() != null) {
[Link]([Link]() - [Link] - [Link],[Link]() - [Link]
- [Link]);
}
[Link]([Link]() - 20,[Link]() - 20);
[Link](x,y);
[Link]();
[Link]();
}
}
Example 40
From project hudsontrayapp-plugin, under directory /client-common/src/main/java/org/hudson/trayapp/gui/.
Source file: [Link]
17
/**
* This method initializes resultsTableScrollPane
* @return [Link]
*/
private JScrollPane getResultsTableScrollPane(){
if (resultsTableScrollPane == null) {
resultsTableScrollPane=new JScrollPane();
[Link](JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
[Link](getResultsTablePanel());
}
return resultsTableScrollPane;
}
Example 41
From project ib-ruby, under directory /misc/IBJts-965/java/TestJavaClient/.
Source file: [Link]
17
public AccountDlg(JFrame parent){
super(parent,true);
JScrollPane acctPane=new JScrollPane(new JTable(m_acctValueModel));
JScrollPane portPane=new JScrollPane(new JTable(m_portfolioModel));
[Link]([Link]("Key, Value, Currency, and Account"));
[Link]([Link]("Portfolio Entries"));
JSplitPane splitPane=new JSplitPane(JSplitPane.VERTICAL_SPLIT,acctPane,portPane);
[Link](true);
[Link](240);
[Link](new Dimension(600,350));
JPanel timePanel=new JPanel();
[Link](m_timeLabel);
[Link](m_updateTime);
[Link](m_close);
m_updateTime.setEditable(false);
m_updateTime.setHorizontalAlignment([Link]);
m_updateTime.setPreferredSize(new Dimension(80,26));
m_close.addActionListener(new ActionListener(){
public void actionPerformed( ActionEvent e){
onClose();
}
}
);
getContentPane().add(splitPane,[Link]);
getContentPane().add(timePanel,[Link]);
setLocation(20,20);
pack();
reset();
}
Example 42
From project beanmill_1, under directory /src/main/java/com/traxel/lumbermill/event/.
Source file: [Link]
16
/**
* Creates a new EventsPanel object.
* @param tableView DOCUMENT ME!
* @param eventView DOCUMENT ME!
*/
public EventsPanel(final TableView tableView,final EventView eventView){
super(VERTICAL_SPLIT);
[Link]=tableView;
[Link]=eventView;
tableScroll=new JScrollPane(tableView);
[Link](new EmptyBorder(1,1,1,1));
eventScroll=new JScrollPane();
[Link](new EmptyBorder(1,1,1,1));
final EventViewVieport vp=new EventViewVieport(eventView);
[Link](vp);
[Link](JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
[Link](new Dimension(600,100));
[Link](JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
[Link](new Dimension(600,300));
setLeftComponent(tableScroll);
setRightComponent(eventScroll);
setResizeWeight(0.25d);
setOneTouchExpandable(true);
}
Example 43
From project CBCJVM, under directory /cbc/CBCJVM/src/cbccore/low/.
Source file: [Link]
16
public CBCSimulator(){
try {
[Link]([Link]());
}
catch ( Exception e) {
[Link]("Error setting native LAF: " + e);
}
cbob=new SimulatedCBOB(this);
sound=new SimulatedSound(this);
sensor=new SimulatedSensor(this);
device=new SimulatedDevice(this);
display=new SimulatedDisplay(this);
input=new SimulatedInput(this);
servo=new SimulatedServo(this);
motor=new SimulatedMotor(this);
camera=new SimulatedCamera(this);
create=new SimulatedCreate(this);
for (int i=0; i < [Link]; ++i) {
motorSpeedLabels[i]=new JLabel();
}
if (stdOut == null) {
stdOut=[Link];
}
[Link]("Welcome to CBCJava");
[Link]().add(new JScrollPane([Link]()),[Link]);
[Link]([Link]());
addSidebar();
addMotorLabels();
addButtons();
[Link](JFrame.EXIT_ON_CLOSE);
Dimension screenSize=[Link]().getScreenSize();
[Link]([Link](1024,(int)([Link] * .7)),[Link](768,(int)([Link] *
.7)));
[Link](true);
new MotorSpeedUpdater(this,100).start();
}
Example 44
From project Cinch, under directory /example/com/palantir/ptoss/cinch/example/.
Source file: [Link]
16
private void initializeInterface(){
JPanel toPanel=new JPanel(new BorderLayout());
[Link](new JLabel("To"),[Link]);
[Link](toField,[Link]);
[Link]([Link](0,0,5,0));
JPanel subjectPanel=new JPanel(new BorderLayout());
[Link](new JLabel("Subject"),[Link]);
[Link](subjectField,[Link]);
[Link]([Link](0,0,5,0));
JPanel bodyPanel=new JPanel(new BorderLayout());
[Link](new JLabel("Body"),[Link]);
[Link](new JScrollPane(bodyArea),[Link]);
[Link]([Link](0,0,5,0));
JPanel topPanel=new JPanel(new BorderLayout());
[Link](toPanel,[Link]);
[Link](subjectPanel,[Link]);
JPanel bottomPanel=new JPanel(new BorderLayout());
[Link](messageLabel,[Link]);
JPanel buttonPanel=new JPanel();
[Link](yellButton);
[Link](sendButton);
[Link](buttonPanel,[Link]);
[Link](new Dimension(400,200));
[Link](new BorderLayout());
[Link](topPanel,[Link]);
[Link](bodyPanel,[Link]);
[Link](bottomPanel,[Link]);
[Link]([Link](10,10,10,10));
}
Example 45
From project encog-java-examples, under directory /src/main/java/org/encog/examples/gui/elementary/.
Source file: [Link]
16
public ElementaryExample(){
setSize(500,500);
setTitle("Elementary CA");
Container c=getContentPane();
[Link](new BorderLayout());
JPanel buttonPanel=new JPanel();
[Link](new FlowLayout([Link]));
[Link](buttonPanel,[Link]);
[Link]([Link]=new JLabel(),[Link]);
[Link](new JLabel("Rule:"));
[Link]([Link]=new JTextField("110"));
[Link](new JLabel("Size:"));
[Link]([Link]=new JTextField("500"));
[Link](generateButton=new JButton("Generate"));
[Link]=new DisplayPanel();
[Link]=new JScrollPane([Link]);
[Link]([Link],[Link]);
[Link](this);
String[] test={"1x","2x","3x","5x","10x"};
[Link]=new JComboBox(test);
[Link](new JLabel("Zoom:"));
[Link](zoomCombo);
[Link](this);
[Link](this);
}
Example 46
From project glg2d, under directory /src/test/java/glg2d/.
Source file: [Link]
16
public UIDemo(){
JPanel leftPanel=new JPanel(new BorderLayout());
[Link](new JScrollPane(createTreeComponent()),[Link]);
[Link](new JScrollPane(createTableComponent()),[Link]);
[Link](new JScrollPane(createListComponent()),[Link]);
JSplitPane mainSplit=new JSplitPane();
[Link](8);
[Link](true);
[Link](true);
[Link](leftPanel);
JPanel rightPanel=new JPanel(new BorderLayout());
[Link](rightPanel);
[Link](createButtonComponent(),[Link]);
JPanel rightSubPanel=new JPanel(new BorderLayout());
[Link](rightSubPanel,[Link]);
JPanel rightSubPanel2=new JPanel(new BorderLayout());
[Link](createInputComponent(),[Link]);
[Link](createMDIComponent(),[Link]);
JSplitPane rightSplit=new JSplitPane(JSplitPane.VERTICAL_SPLIT);
[Link](10);
[Link](400);
[Link](true);
[Link](rightSubPanel2);
[Link](createBorderComponent());
[Link](createProgressComponent(),[Link]);
[Link](rightSplit,[Link]);
[Link](createTabComponent(),[Link]);
setLayout(new BorderLayout());
[Link](300);
add(mainSplit,[Link]);
}
Example 47
From project gridland, under directory /src/org/grid/server/.
Source file: [Link]
16
public TeamPanel(Team team){
[Link]=team;
Color color=[Link]();
double gray=0.2989 * [Link]() + 0.5870 * [Link]() + 0.1140 * [Link]();
[Link](gray > 128 ? Color.DARK_GRAY : [Link]);
setLayout(new BorderLayout());
[Link]([Link](2,5,2,5));
[Link](new BorderLayout(4,4));
title=new JLabel([Link]());
[Link](color);
[Link](getFont().deriveFont([Link],14));
[Link]([Link](5,0,5,0));
[Link](false);
[Link](color);
[Link](getFont().deriveFont([Link],14));
[Link]([Link](5,0,5,0));
[Link]([Link]);
[Link](title,[Link]);
[Link](score,[Link]);
add(header,[Link]);
add(new JScrollPane(clientPanel),[Link]);
[Link](this);
}