@Override public void updateUI() { super.updateUI(); if( null != tableCell ) tableCell.updateUI(); }
public void actionPerformed(ActionEvent e) { view.listRules.getView().updateUI(); } };
public void actionPerformed(ActionEvent e) { view.listRules.getView().updateUI(); } };
public void actionPerformed(ActionEvent e) { view.listRules.getView().updateUI(); } };
public void updateUI() { super.updateUI(); //On GTK L&F, the viewport border must be set to empty (not null!) or we still get border buildup setViewportBorder(BorderFactory.createEmptyBorder()); setBorder(BorderFactory.createEmptyBorder()); }
@Override public void updateUI() { Set<VisualizerChildren> tmp = visHolder; if (tmp != null) { tmp.clear(); } super.updateUI(); //On GTK L&F, the viewport border must be set to empty (not null!) or we still get border buildup setViewportBorder(BorderFactory.createEmptyBorder()); setBorder(BorderFactory.createEmptyBorder()); }
public void updateUI() { super.updateUI(); //On GTK L&F, the viewport border must be set to empty (not null!) or we still get border buildup setViewportBorder(BorderFactory.createEmptyBorder()); setBorder(BorderFactory.createEmptyBorder()); }
@Override public void stateChanged(ChangeEvent e) { JSlider source = (JSlider)e.getSource(); if ( source.getValueIsAdjusting()) { //return; } //System.out.println("Changed scale to "+source.getValue()); mPanel.setScale((float)source.getValue()/SLIDER_STEPS); scroll.repaint(); scroll.updateUI(); }
@Override public void updateUI() { super.updateUI(); setUI(UIManager.getUI(this)); }
// the panel JPanel buttonPanel = new JPanel(); buttonPanel.setLayout(new GridBagLayout()); buttonPanel.setSize(new Dimension(400, 300)); // whatever // the scrollpane JScrollPane pane = new JScrollPane(); pane.setSize(new Dimension(400, 300)); // whatever // GridBagConstraint for button GridBagConstraints constraint = new GridBagConstraints(); constraint.anchor = GridBagConstraints.CENTER; constraint.fill = GridBagConstraints.NONE; constraint.gridx = 0; constraint.gridy = GridBagConstraints.RELATIVE; constraint.weightx = 1.0f; constraint.weighty = 1.0f; int sizeOfButtons = 50; for(int i = 0; i < sizeOfButtons; i++) { JButton button = new JButton(); button.setText("Button #" + i); // other attributes you will set buttonPanel.add(button, constraint); } pane.setViewportView(buttonPanel); this.rootPane.add(pane); // or other panel etc. pane.updateUI();
/** * Resets the UI property with a value from the current look and feel. * This overrides <code>JComponent</code>'s <code>updateUI</code> method, * so that the popup menus are updated as well. */ @Override public void updateUI() { super.updateUI(); if (vertSBMenu!=null) SwingUtilities.updateComponentTreeUI(vertSBMenu); if (horizSBMenu!=null) SwingUtilities.updateComponentTreeUI(horizSBMenu); }
@Override public void updateUI() { super.updateUI(); setViewportBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); setVerticalScrollBarPolicy(VERTICAL_SCROLLBAR_NEVER); setHorizontalScrollBarPolicy(HORIZONTAL_SCROLLBAR_NEVER); setWheelScrollingEnabled(false); }
/** Creates new form FontChooserPanel */ public PaletteFontChooserSelectionPanel() { labels = ResourceBundleUtil.getBundle("org.jhotdraw.gui.Labels"); initComponents(); collectionList.setModel(new DefaultListModel()); familyList.setModel(new DefaultListModel()); faceList.setModel(new DefaultListModel()); // Customization of Quaqua Look and Feel: Set small scroll bars collectionsScrollPane.putClientProperty("JComponent.sizeVariant", "small"); familiesScrollPane.putClientProperty("JComponent.sizeVariant", "small"); facesScrollPane.putClientProperty("JComponent.sizeVariant", "small"); // Customization of Nimbus Look and Feel: Set small scroll bars collectionsScrollPane.getVerticalScrollBar().putClientProperty("JComponent.sizeVariant", "small"); familiesScrollPane.getVerticalScrollBar().putClientProperty("JComponent.sizeVariant", "small"); facesScrollPane.getVerticalScrollBar().putClientProperty("JComponent.sizeVariant", "small"); collectionsScrollPane.getVerticalScrollBar().updateUI(); familiesScrollPane.updateUI(); facesScrollPane.getVerticalScrollBar().updateUI(); setOpaque(true); setBackground(new Color(0xededed)); }
@Override public void updateUI() { super.updateUI(); setLayout(new JideScrollPaneLayout.UIResource()); if (getBorder() instanceof UIResource) { LookAndFeel.installBorder(this, "JideScrollPane.border"); } }
/** * Add words from file * * @param fileName * fileName */ public void addWordsToTranscription(String fileName) { try { this.transcriptionModel.loadTranscription(fileName, true); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } checkTranscription(); scrollpane.updateUI(); table.repaint(); this.repaint(); this.updateUI(); }
/** * Load transcription from a hashmap * * @param map * map * @throws Exception * Exception */ @Deprecated // doesn't seem to get used -- remove? public void loadTranscription(HashMap<String, Integer> map) throws Exception { this.transcriptionModel.loadTranscription(map); checkTranscription(); scrollpane.updateUI(); table.repaint(); this.repaint(); this.updateUI(); }
/** * Load transcription from file * * @param fileName * fileName */ public void loadTranscription(String fileName) { try { this.transcriptionModel.loadTranscription(fileName, false); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } checkTranscription(); scrollpane.updateUI(); table.repaint(); this.repaint(); this.updateUI(); }
System.out.println(getHeight() + " : " + (getHeight() + LINE_HEIGHT)); super.setPreferredSize(new Dimension(getWidth(), getHeight() + LINE_HEIGHT) ); parentPane.updateUI(); super.revalidate(); System.out.println(getHeight());
@Override public void updateUI() { super.updateUI(); setLayout(new SimpleScrollPaneLayout.UIResource()); LookAndFeel.installBorder(this, "JideScrollPane.border"); getViewport().addChangeListener(this); }
/** * Load transcription from a arrayList * * @param arrList * arrList * @throws Exception * Exception */ public void loadTranscription(ArrayList<String> arrList) throws Exception { this.transcriptionModel.loadTranscription(arrList); checkTranscription(); scrollpane.updateUI(); table.repaint(); this.repaint(); this.updateUI(); }