List of usage examples for javax.swing JScrollPane putClientProperty
public final void putClientProperty(Object key, Object value)
From source file:org.jimcat.gui.perspective.detail.DetailSideBar.java
/** * creates image Detail - Section/*from ww w . ja va2s. c o m*/ * * @return the Component used to show details */ private JComponent createImageDetail() { JLabel tmp = null; // Task Panel JXTaskPaneContainer container = new JXTaskPaneContainer(); container.setOpaque(false); // General Infos JXTaskPane general = new JXTaskPane(); general.setOpaque(true); general.setTitle("General Info"); general.setExpanded(true); // General info list JPanel info = new JPanel(); GridLayout infoLayout = new GridLayout(0, 2); infoLayout.setHgap(5); info.setLayout(infoLayout); info.setOpaque(false); tmp = new JLabel("Title"); tmp.setFont(labelFont); info.add(tmp); info.add(title); tmp = new JLabel("Rating"); tmp.setFont(labelFont); info.add(tmp); rating = new RatingEditor(); info.add(rating); tmp = new JLabel("Dimension"); tmp.setFont(labelFont); info.add(tmp); dimension = new JLabel(""); info.add(dimension); tmp = new JLabel("Size"); tmp.setFont(labelFont); info.add(tmp); size = new JLabel(""); info.add(size); tmp = new JLabel("Location"); tmp.setFont(labelFont); info.add(tmp); path = new JLabel(""); path.setToolTipText(""); info.add(path); general.add(info); container.add(general); // Exif data JXTaskPane exifs = new JXTaskPane(); exifs.setOpaque(true); exifs.setTitle("Exif Infos"); exifs.setExpanded(true); exifList = new ExifList(); exifs.add(exifList); container.add(exifs); // Tags JXTaskPane tags = new JXTaskPane(); tags.setOpaque(true); tags.setTitle("Associated Tags"); tags.setExpanded(true); // associated tags-list detailTagList = new DetailTagList(); tags.add(detailTagList); container.add(tags); // Modify Tags JXTaskPane filter = new JXTaskPane(); filter.setTitle("Modify Tags"); filter.setExpanded(false); filter.setOpaque(true); tagTree = new TagTree(); tagTree.addTagTreeListener(this); filter.setLayout(new BorderLayout()); filter.addMouseListener(new TagPanelPopupHandler(filter)); filter.add(tagTree, BorderLayout.CENTER); container.add(filter); JScrollPane pane = new JScrollPane(); pane.setOpaque(true); pane.setBorder(null); pane.setViewportView(container); pane.putClientProperty(SubstanceLookAndFeel.WATERMARK_TO_BLEED, Boolean.TRUE); return pane; }