Tough JSlider TableCellRenderer Problem!

Hi,
Ive been doing some work with tables and it involved using alot of different components in them. The only one that i cant get to work is JSlider. Using JSlider as a custom TableCellEditor seems to work fine, but it doesnt see to draw itself as a TableCellRenderer. Below I have some code that seems to illustrate the problem.
So my question is : has anyone ever used JSlider suceesfully as a TableCellRenderer? If so, got a demonsration or something you had to do? If you have problems too can you think of any way around it (either a hack to get it to work or some other component that looks/works the same)?
Well I hope this doesnt come down to writing my own JSlider... Anyway, thanks in advance for any help...
Joshua
Here is the code. What it does is makes a simple application with a table in it, with integers as values in the center panel. The cell renderer is a panel with a button and a JSlider in it (the slider has a border and the background is set to white to show where is should be). In the bottom panel of the app is the slider panel how it is drawn when it is not in a table.
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.JSlider;
import javax.swing.JScrollPane;
import javax.swing.JButton;
import javax.swing.table.TableColumn;
import javax.swing.table.TableCellRenderer;
import javax.swing.table.AbstractTableModel;
import java.awt.FlowLayout;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Color;
import javax.swing.BorderFactory;
import java.awt.event.WindowEvent;
import java.awt.event.WindowAdapter;
* A main frame with a table in it... wish it painted sliders in the table
public class TestSliderTable extends JFrame
    public TestSliderTable()
        addWindowListener(new WindowAdapter()
            public void windowClosing(WindowEvent evt)
                System.exit(0);
        setUpTable();
    private void setUpTable()
        JTable table = new JTable(new SomeDumbTableModel())
            public TableCellRenderer getCellRenderer(int row, int column)
                return new JSliderTableCellRenderer();
        table.setRowHeight(50);
        //make a center panel, with a ScrollPane with the table in it
        JPanel panel = new JPanel();
        panel.setLayout(new BorderLayout());
        JScrollPane pane = new JScrollPane(table);
        JPanel flowPanel = new JPanel();
        flowPanel.setLayout(new FlowLayout());
        flowPanel.add(pane);
        panel.add(flowPanel, BorderLayout.CENTER);
        //make a panel on the bottom to just show the component
        panel.add(new JSliderTableCellRenderer(), BorderLayout.SOUTH);
        setContentPane(panel);
        pack();
    public static void main(String[] args)
        TestSliderTable frame = new TestSliderTable();
        frame.setVisible(true);
* A simple cell renderer that should render sliders...
class JSliderTableCellRenderer extends JPanel
    implements TableCellRenderer
    JSlider slider;
    JButton button;
    /** Creates new JSliderTableCellRenderer */
    public JSliderTableCellRenderer()
        super();
        slider = new JSlider(0, 10, 5);
        slider.setBackground(Color.white); //did this so you can see where the slider should be
        button = new JButton(">>>");
        setLayout(new FlowLayout());
        add(button);
        add(slider);
        add(button);
        slider.setBorder(BorderFactory.createLineBorder(Color.black));
    public Component getTableCellRendererComponent(JTable table, Object value,
                                                    boolean p3, boolean p4,
                                                    int row, int column)
        int newValue = ((Integer)value).intValue();
        slider.setValue(newValue);
        return this;
* a simple table model with Integers as values...
class SomeDumbTableModel extends AbstractTableModel
    public SomeDumbTableModel() { }
    public int getRowCount() { return 10; }
    public int getColumnCount() { return 1; }
    public Object getValueAt(int row, int column) { return new Integer(row); }
}

I tried adapting this from a JButtonTable example, but gave up.
http://forum.java.sun.com/thread.jsp?forum=57&thread=121545
It's got a problem in that the slider doesn't show up until the cell has focus. I was going to set the value field too, but I'm going home to dinner. Good Luck!
package test;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.*;
import javax.swing.event.*;
public class JButtonTableExample extends JFrame {
  public static void main(String[] args) {
    JButtonTableExample frame = new JButtonTableExample();
    frame.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        System.exit(0);
    frame.setSize( 400, 100 );
    frame.setVisible(true);
  public JButtonTableExample() {
    super( "JButtonTable Example" );
    DefaultTableModel dm = new DefaultTableModel() {
      public boolean isCellEditable(int rowIndex, int columnIndex) {
     if (columnIndex == 1) return false;
     return true;
    dm.setDataVector(new Object[][]{{"x","1"},
     {"y","2"}},
     new Object[]{"Slider","Value"});
    JTable table = new JTable(dm);
//    editor.addCellEditorListener(new MyListener(table, 1, "Side A", "Side B"));
    table.getColumn("Slider").setCellRenderer(new SliderRenderer());
    SliderEditor seditor = new SliderEditor(50);
    table.getColumn("Slider").setCellEditor(seditor);
    getContentPane().add(new JScrollPane(table));
  class SliderRenderer extends JSlider implements TableCellRenderer {
    public SliderRenderer() {
      this.setOpaque(true);
    public Component getTableCellRendererComponent(JTable table, Object value,
       boolean isSelected, boolean hasFocus, int row, int column) {
      if (isSelected) {
     setForeground(table.getSelectionForeground());
     setBackground(table.getSelectionBackground());
      } else{
     setForeground(table.getForeground());
     setBackground(UIManager.getColor("Button.background"));
//      this.setText( (getValue()==null) ? "" : getValue.toString() );
      return this;
  class SliderEditor extends DefaultCellEditor {
    protected JSlider slider;
    public SliderEditor(int Value) {
      super(new JCheckBox());
      slider = new JSlider();
      slider.setOpaque(true);
      slider.setValue(Value);
//      slider.addActionListener(new ActionListener() {
//     public void actionPerformed(ActionEvent e) {
//       fireEditingStopped();
    public Component getTableCellEditorComponent(JTable table, Object value,
       boolean isSelected, int row, int column) {
      if (isSelected) {
     slider.setForeground(table.getSelectionForeground());
     slider.setBackground(table.getSelectionBackground());
      } else{
     slider.setForeground(table.getForeground());
     slider.setBackground(table.getBackground());
      return slider;
    public Object getCellEditorValue() {
      return new Integer(slider.getValue());
    public boolean stopCellEditing() {
      return super.stopCellEditing();
    protected void fireEditingStopped() {
      super.fireEditingStopped();
}

Similar Messages

  • JProgressBar/JSlider error problem

    Hi there,
    I am attempting to integrate either a JProgressBar or JSlider into a user interface. The component will be updated in real time and will represent the height of a viewplatform in a virtual universe. The problem is, every time I run it, when the value of the height changes from one int to the next I get the following errors,
    Exception occurred during event dispatching:
    java.lang.NullPointerException
    at javax.swing.plaf.metal.MetalLookAndFeel.getControlShadow(MetalLookAndFeel.java:1075)
    at javax.swing.plaf.metal.MetalProgressBarUI.paint(MetalProgressBarUI.java:67)
    at javax.swing.plaf.ComponentUI.update(ComponentUI.java:39)
    at javax.swing.JComponent.paintComponent(JComponent.java:398)
    at javax.swing.JComponent.paint(JComponent.java:739)
    at javax.swing.JComponent.paintWithBuffer(JComponent.java:4393)
    at javax.swing.JComponent._paintImmediately(JComponent.java:4336)
    at javax.swing.JComponent.paintImmediately(JComponent.java:4187)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:370)
    at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(System
    EventQueueUtilities.java:205)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:317)
    at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:106)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
    I don't have any changelisteners attached to either component. Any and all help would be greatly appreciated,
    thanks,
    old_noakes

    I have this code to update my JProgressBar:
    public void updateStatus(final int i) {
    Runnable doSetProgressBarValue = new Runnable() {
    public void run() {
    progressBar.setValue(i);
    SwingUtilities.invokeLater(doSetProgressBarValue);
    You need to do it in separate thread. In case of JProgressBar you need to do so in event-dispatching thread. It's why you have thread related exceptions when running your prog.
    In method where you change height you call updsateStatus() method, this method when called place the request into event queque meaning that it does not clash with any other thread but wait for best time (very short).
    void changeHeight(...) {
    height = ...;
    updateStatus(height?);
    and then the code above.
    Try it, it should work just fine.

  • JSLider changeListener problem

    Hello,
    I'm having a problem with a JApplet I'm writing. I have 2 Jsliders and a checkbox. If I check the box then one of the sliders should become disabled, if I uncheck the box then it should become active. I have sloved parts of the problem: I can disable the JSlider. The code works fine, except that once disabled it doesn;t enable anymore. So I tried writing code to enable it, but then after a few clicks on the JSlider my Applet freezes up!
    Here is the code snippet:
              //initialize the eventlisteners
              adjustZperc.addChangeListener(new ChangeListener() {
                   public void stateChanged(ChangeEvent e) {
                        wu.changeZiektePerc((double)((JSlider) e.getSource()).getValue()/100.0);
                        su.changeZiektePerc((double)((JSlider) e.getSource()).getValue()/100.0);
                        fillAllSetValues();
                        if (chbIVA.isSelected()) {
                             adjustZperc.removeChangeListener(this);
                        else adjustZperc.addChangeListener(this);
              adjustVCperc.addChangeListener(new ChangeListener() {
                   public void stateChanged(ChangeEvent e) {
                        wu.changeBenuttingVC((double)((JSlider) e.getSource()).getValue()/100.0);
                        su.changeBenuttingVC((double)((JSlider) e.getSource()).getValue()/100.0);
                        fillAllSetValues();
              chbIVA.addItemListener(new ItemListener() {
                   public void itemStateChanged(ItemEvent e) {
                        wu.changeIVA((e.getStateChange() == ItemEvent.SELECTED));
                        su.changeIVA((e.getStateChange() == ItemEvent.SELECTED));
                        if (e.getStateChange() == ItemEvent.SELECTED) adjustZperc.setValue(100);
              });Any ideas??
    Thanks in advance
    Benoit
    Edited by: benoize on Jun 1, 2008 2:00 PM

    Thanks for the tip, but I already did that to a certain extent.There's no such thing as a code snippet which is an SSCCE "to a certain extent". Either it's and SSCCE or it isn't. Posting a SSCCE will definitely help you to get better help sooner, but it's your choice.
    if I remove the line ... then everything works fine,You may be unwittingly kicking off an infinite loop. Add a Sysout to observe whether this is the case:else {
      System.out.println("addChangeListener");
      adjustZperc.addChangeListener(this);
    }Perhaps you could use a boolean field in stateChanged to determine whether or not to process the ChangeEvent, instead of repeatedly adding and removing the ChangeListener.

  • This is a tough one!  Problem with sequence settings....

    OK...where to begin!
    Here is some background (I have posted many questions about these issues and have resolved most of them, except this project)
    1.Recently upgraded to 6.0.1
    2. 'lost' my scratch disc (ok, I accidently deleted it)
    3. All projects are OK to do without, except this one!
    4. The footage for this project was from 2 cameras: one is DV and one is HD. The HD footage was downgraded to DV during capture from camera for the original project. Now, with 6.0.1, I bring it in HD and mix the footage on the same timeline with the DV (which is so cool and so much easier for me!) But I wanted to make sure and do the same thing I did for the original clips on this project, so when I just batch captured all the clips, I brought the HD in as DV. Both were shot wide screen.
    This one sequence is 6 minutes long and I COULD recreate it, but it is very detailed and has a lot of filters, edits, etc. Here is the problem:
    I did a batch capture on all the clips and successfully got all the clips back and the timeline plays, but the two different "cameras" footage looks different in the canvas: (the sequence settings are frame size: ntsc dv 3:2, pixel aspect ratio ntsc-ccir601/dv and anormorphic is checked)
    The HD footage, downgraded to DV, looks fine
    The DV footage is stretched, and has a bar on the top and bottom.
    I have played around with the sequence settings and these are the best results i can get.
    Now I made a new sequence with same settings as above and i dragged a couple different clips from the browser into the timeline and they are fine... (these clips are the same ones in the problem sequence that look stretched)
    Any ideas??
    Thanks in advance!!

    I understood that the sequence looked at the first stuff dropped into it for behavior. If you dropped the problem material from the first sequence into the second sequence you created prior to dropping any thing else in then it will behave as you would expect. if you dropped footage that wasn't formatted the same as your sequence settings you get the "...would you like to ..." and the sequence settings get changed. I avoid this because some of the changes applied don't allow my Kona to playout.

  • Centering JButton in JPanel below JSlider, layout problem.

    Hi,
    I am tring to put together a configuration dialog for mouse double click speed. What I want is a largish JButton centered below a JSlider in the JPanel. So people can try double clicking on it :)
    I have written the code but am a novice to Swing layout. There does not seem to be a layout manager to do the job.
    How do I go about this ?
    Do I have to write my own layout manager, use abosolute positioning or is there a simpler way ?
    Many thanks in advance,
    Aaron Gray - [email protected]

    I apologize. I was not completely correct in what I told you in an earlier post. The BoxLayout always respects a component's minimum and maximum sizes. This means that if you set the preferred size to be bigger that the maximum size, it will not make it larger than the maximum size. To ensure that you get the correct size you should set both the preferred size and the maximum size to the size you want the button to be.
    When I created a layout I got something that seemed to be what you wanted. Below is some code describing what I did, then under that is a crude ascii diagram of what the layout looks like.
    JButton button;
    //Code to inialize button ...
    JSlider slider;
    //Code to initialize slider ...
    JPanel content = new JPanel();
    BoxLayout layout = new BoxLayout(content, BoxLayout.Y_AXIS);
    content.setLayout(layout);
    slider.setAlignmentX(JComponent.CENTER_ALIGNMENT);
    button.setAlignmentX(JComponent.CENTER_ALIGNMENT);
    content.add(slider);
    content.add(button);Ascii diagram
         |                             |
         | <-------[|]---------------> |
         |        ____________         |
         |       |            |        |
         |       | Click Here |        |
         |       |____________|        |
         |_____________________________|Is this what you were thinking of ???

  • TableCellRenderer problem

    I am trying to create a custom renderer for a column in a JTable. I need to paint the background red and the foreground white when a cell in this column contains a number greater than a threshold value. Below is what I have:
    MyTableModel model = new MyTableModel();
              model.addColumn("Date/Time");
              model.addColumn("Working");
              JTable table = new JTable(model);
              final TableCellRenderer dcr = table.getDefaultRenderer(model.getColumnClass(1));
              TableColumn tc = table.getColumn("Working");
              tc.setCellRenderer(new TableCellRenderer() {
                   public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col) {
                        Component comp = dcr.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, col);
                        if(col == 1 && ((Long)value).intValue() > THRESHOLD) {
                             comp.setForeground(Color.WHITE);
                             comp.setBackground(Color.RED);
                        return comp;
              });This colors the cell fine, but then if the window is resized, all cells are painted this way, no longer just the one. Any ideas? Thanks in advance.

    Create a separate return Component each time the getTableCellRendererComponent method is called and don't rely on the Component returned by the super (which I think is typically equal for all cells with the same data type (Long, in your case))
    This works for me:import java.awt.Color;
    import java.awt.Component;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.TableCellRenderer;
    * @author Mark Jeronimus
    * @since 1.0
    * @see
    * date 2007/06/12
    public class TableCellDemo extends JFrame
         final int     THRESHOLD     = 3;
         public static void main(String[] args)
              new TableCellDemo();
         public TableCellDemo()
              super("Test");
              super.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              super.setSize(300, 300);
              JTable table =
                   new JTable(new Object[][]{{new Long(1), new Long(1)}, {new Long(2), new Long(2)}, {new Long(3), new Long(3)}, {new Long(4), new Long(4)},
                        {new Long(5), new Long(5)}}, new String[]{"Date/Time", "Working"});
              table.getColumnModel().getColumn(1).setCellRenderer(new TableCellRenderer() {
                   public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
                        JLabel comp = new JLabel(value.toString());
                        //Add code for editable cells here
                        if (((Long)value).intValue() > THRESHOLD)
                             comp.setOpaque(true);
                             comp.setForeground(Color.WHITE);
                             comp.setBackground(Color.RED);
                        return comp;
              super.add(new JScrollPane(table));
              super.setVisible(true);
    }Remember to configure your own MyTableModel (which I omitted) to set all cells non-editable, otherwise, add the following lines:                    if (value instanceof String)
                             try
                                  value = new Long(Long.parseLong(value.toString()));
                             catch (NumberFormatException e)
                                  value = new Long(0);
                        }

  • Adding a Row to Table, ComboBox as a  TableCellRenderer Problem !!

    Hell All:
    I have a JTable with one of the Cell as ComboBox. Initially I draw the JTable with Three Rows and the
    the ComboBox in the Second Column works fine. I see each comboBox has different Items. The ComboBox also has a Renderer (as I am customizing the Item's Text )
    Here is the snippet from my Code.
    ==========================
    // UIEditSubAllocation.ALT_ACCOUNT = 2;
    // Get the Viewindex.... to get the correct column
    int viewIndex = this.m_suballocTable.convertColumnIndexToView(UIEditSubAllocation.ALT_ACCOUNT);
    // get the Table Column...
    TableColumn altActColumn = this.m_suballocTable.getColumnModel().getColumn(UIEditSubAllocation.ALT_ACCOUNT);
    // Create Three ComboBox..
    JComboBox[] altActCell = new JComboBox[3];
    for (int i =0;i< 3;++i) // adding Three Rows of Table Data...
    String [] alternateAccounts = new String[4];
    for(int j = 0; j < alternateAccounts.length; j++) // Each Alternate Accounts i.e combobox has 4 items..
    alternateAccounts[0] = "Tom";
    alternateAccounts[0] = "Vic";
    alternateAccounts[0] = "Tracy";
    alternateAccounts[0] = "Andy";
    altActCell[i] = new AltAccountComboBox(alternateAccounts,this.m_suballocTable);
    } // End of adding Three Rows
    altActColumn.setCellRenderer(new AltAccountTableCellRenderer());
    if (viewIndex >= 0)
    ComboBoxEditor altActCellEditor = new ComboBoxEditor(altActCell);
    altActColumn.setCellEditor(altActCellEditor);
    The CombBoxEditor code is...
    ublic class ComboBoxEditor extends DefaultCellEditor
    * Constructs a ComboBoxEditor that uses an array of items of type object.
    * @param items - an array of items of type object
    public JComboBox[] m_comboBox;
    public ComboBoxEditor(JComboBox[] box)
    super(box[0]);
    m_comboBox = box;
    for(int i = 0; i < box.length; i++)
    m_comboBox.setEditable(false);
    public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
    if(row >= this.m_comboBox.length)
    return super.getTableCellEditorComponent(table, value, isSelected, row, column);
    return m_comboBox[row];
    But when I click a Button (in a Panel) which adds a Row (with No values for the ComboBox ).. to the Jtable .. The Row Gets added fine.. but the JComboBox comes with Values from the First Row's ComboBox. I Don't want any Values in the JComboBox for the new added Row. Can someone tell me
    how do I remove the Items from the ComboBox.
    I will really appreciate for any help...
    Thanks
    -Pankaj

    Hi ,
    as per my opinion one approach would be that ,
    you create a custom table region same as standard one using Jdeveloper and create other required fields also using jeveloper ,and then put this region in extend property of existing standard table region .
    thanks
    Pratap

  • A Fairly Tough Nokia N8 Problem . can it be solved...

    I had my useual camera,messages,pictures, etc bar on my main page of my N8 . . I selected edit page, and removed the bar, thinking it would go into widget catologue,  so i could put it back later . .
    however when i looked it wasnt among the widgets available to me to add to the page ?
    so if so how do i add shortcuts for these item to any of the pages on the N8 like camera, messages, internet .. you get the gist . .
    will i have to make them ??
    IF SO HOW . . DO I DO IT  . . . PLEASE TELL ME ?
    if it don't work get another or pay for a upgrade !
    Solved!
    Go to Solution.

    if not, try turning your phone off by pressing the powerbutton for 8 seconds till you feel 3 quick buzzes. Then release the power button and press it once to power it on again. Check if the shortcut widget is there now.

  • 10.4.7 update  and external firewire problems with HD corrupion

    Dear all,
    Advised by Jpfresno I started this new topic about Tiger 10.4.7 update.
    I will repeat my post and what was happening 2 weeks ago:
    “In 5 years 10.4.7 update was a tragedy for my Powerbook Ti 667. When I update from 10.4.6 to 10.4.7 my 300 GB firewire drive gets corrupted, after repairing it with DiskWarrior and after connecting it to my PowerBook my computer freezes and I must shut it down via powerbutton. Safari also crashes after the update.
    I just erase my Hard Drive and after that install 10.4 and update with combo to 10.4.7. But I had the same problems: finder freezes with connected firewire devices and also safari when browsing. I spend a week trying to solve the problem but no luck.
    Yesterday and with no firewire devices, 10.4.7 freeze and I have big trouble in order to started my powerbook!!! Even when i insert the 10.4 install DVD it did not detected my HD. Finally I get it to work and install 10.4 and combo update to 10.4.6 and everything works. My external firewire drive and safari. I already diagnose my HD with disk utility, TechTool and directories with Diskwarrior and everything is ok.
    I clone my 10.4.6 to firewire, boot from it and everything is working. I let my external drive connected and finder does not freeze.
    My conclusion is that the problem is 10.4.7 update. It only give me problems and I was getting crazy with it. 10.4.6 is working good and I do not advice anyone to update to 10.4.7.”
    Last week after reinstalling 10.4.6 I started to have HD problems with my Powerbook 667. I did a surface scan with TechTool I it reported bad sector. Then I done a zero disk format but after a second surface scan TechTool also reported bad sector. Then I take the decision to replace my internal HD. I bought a Samsung 40GB Hard Drive and installed it on my PowerBook. Then I have done a clean installation of 10.4.6 with all applications that I need and clone it to my hard drive with Intego Personal Backup software. Everything works on 10.4.6. and external firewire drive.
    After that everything is ok. But I decided to test if my problem derivates from 10.4.7 update or from previous HD corruption. Then I install 10.4.7 update on my Internal Hard Drive. Everything is working good but after connecting my external Hard Drive the finder started to freeze!!!!!!!!!. After that I tried cloning HD to external firewire with Intego personal Backup. Everything was working good but when it was finishing the backup process started to give errors!! I started panic. I interrupted the backup process but after and after restart I found something strange with 10.4.7. The system started up, I login but I could not started any application!!!??? All my application died!
    Then I have done one more clean installation of tiger and 10.4.6 update.
    My conclusions are that the 10.4.7 update causes all the problems that I have on my PowerBook, because I used the same methods and same software/hardware on 10.4.6 and did no have any problem.
    This last two weeks were very difficult to me. I tough that these problems do not happen with Apple computers but I was wrong!!! It is very hard to me to deal with it. I always said to my friends that I never had problems with Apple computers. I accept that a hard drive died because the use of it but I can not accept that a system update cause me 2 weeks of hard problems and make me loose precious work information! I always love apple computers and Apple OS but now I am disappointed
    If anyone can explain what happen or have a solution for those problems?
    Thanks for the comprehension and collaboration.
    Best Regards
      Mac OS X (10.4.6)  

    Hi, alsvieira.
    There are some things you did not check in all of your troubleshooting:
    1. Run the Apple Hardware Test (AHT) that came the affected computer. See my "Apple Hardware Test" FAQ for comprehensive advice on using the AHT in troubleshooting.
    2. re: FireWire troubleshooting: Here is some general troubleshooting advice that may help if problems return with your FireWire drive:1. Review the AppleCare Knowledge Base document "What to do if your computer won't recognize a FireWire device".
    2. If this problem occurred after installing a recent Mac OS X Update, and you are also unable to mount CDs, DVDs, or disk images perform the steps in this Mac OS X Hints article. This worked under Panther and may also work in certain situations under Tiger.
    3. Power-on the FireWire drive before starting up (booting) your Mac.
    4. Reset PRAM and NVRAM.
    5. Resett the power-management chip in your Mac.
    6. Try a different FireWire port. James Wiebe, CEO of WiebeTech, has published FireWire Port Failures in Host Computers and Peripheral Devices, a white paper providing backgroud information and technical analysis concerning the causes of failure for FireWire ports. This may provide additional diagnostic information.
    7. Micromat TechTool Pro version 4 can test the FireWire bus in your computer: this tests the bus — not the ports — but if the problem is on the FireWire bus on the logic board, it should reveal it.
    8. Check with the manufacturer of your FireWire drive or enclosure to see if any firware updates are available for such.
    9. Hopefully, the partition map on the FireWire drive is not damaged. This can happen if the FireWire drive was not Ejected before being disconnected or powered off. If it still refuses to mount, you may need to employ data recovery tools or services: see my "Data Recovery" FAQ.Note that some of the information above is from the "FireWire Problems" chapter of my book, Troubleshooting Mac® OS X.
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Pixel problem? Lines on the screen

    hello my iMac is 3 1/2 years old. about 6 months ago I started to get lines on the screen, last week one of the lines turned into an 1 1/2 inch white line. From what I'm reading it's a pixel problem. My question is should I have this problem repaired, or is it not worth doing. thank you.

    Are the newer versions less apt to have this problem. and is there a history of this problem with iMacs thanks.
    Tough questions, the problem is that iMacs are sort of All-In-Ones, using basically Laptop components with a Desktop Monitor & Hard Drive, if one thing goes you can't just replace say the Video Card like on a PowerMac or MacPro, because most everything is built into the Logic Board.
    I strongly suggest that anyone getting an iMac or Laptop go for the extended AppleCare.
    As for the new iMacs, they look really sweet, but I myself would not buy one with an nVidia Graphic Card, I'd have to order the more expensive ATI Graphic Card.

  • Can a vcr be hooked up to a Mac mini or do you have to have a converter?

    To get VCR taped footage into iMovie or onto a Mac PC, do you have to have a converter or can you get a cable or wire that would connect the vcr to the apple PC?

    Hi
    My notes on this
    Analog to Mac/Digital
    From
    • S-VHS, VHS, VHS-C - Camera or VCR (VHS-C needs adaptor cassette - SVHS/VCR in such cases)
    • Video 8, Hi8 ...........................................( Camera / Digital8 Camera or special VCR-player )
    Can be done via
    • Camera and tape or video trough (if present) (miniDV or Digital8)
    • A/D-box
        Several brands (Must be FireWire)
            Canopus ADVC-55 (now Grass Valley ADVC-55) - (only on way)
            Canopus ADVC-110 (now Grass Valley ADVC-110) - (two ways)
            Canopus ADVC-300 (now Grass Valley ADVC-300) - (Timebase/code-correction) (I have and love this one)
            EyeTV
    • VCR --> DVD (result needs conversion to be of use)
    Captured/Imported by
    • iMovie 1 to HD6
    • iMovie’08 & 09 & 11 (can not handle interlaced video for DVD - result in lost quality)
    • FinalCut Express or Pro
    • QuickTime Pro
    • iDVD
    SCART - Must use an SCART-adaptor with in and out switch. The one that came with Camera is one way. Camera ----> VCR/TV - not other way around.
    RCA - Connect right way around
    USING the S-Video out than RGB-video (Composite) from SCART will give a significantly better result !
    Why
    • Want to do a  DVDs
    • Want to edit
    Connect VCR to A/D-box via SCART---RCA (EU) or via RCA---RCA (US) and set SCART switch to out (if used). The A/D-box may have an in resp. out side. Connect to in-side. Set A/D-box Input selector to Analog in.
    My ADVC-300 has two sets of dip-switches on bottom - for PAL they are set to
    Left one number 6 is set to on - all others in off state.
    If 6 in off state then it is NTSC
    From A/D-box via FireWire 6-pin to 6-pin or 9-pin end to Mac FW port.
    Now turn A/D-box or Camera ON
    Start iMovie or QT or FinalCut
    Select Import or Capture
    Re-wind tape in VCR or Camera
    Start - Play on VCR or Camera
    Import or Capture Now
    See that the saved movie is collected on a hard disk with sufficient space
    1 hour needs 13.5Gb
    8 hour needs 105-110Gb (e.g. a 240VHS tape recorded in LP-mode)
    How to store the material
    • As is - Icon with a Star on it (iMovie HD6)
    • As a set of DVDs
    • Collected in a folder - FinalCuts Scratch folders + Movie document on an external/second hard disk
    • As DiskImages
    • Back to miniDV tapes
    Do not use LP-mode with miniDV tapes. Two major problems.
    a. When Camera dies - so does the tapes - Can’t be play-backed securely on other Camera even if
    brand and type number is the same - the tolerances are to small
    b. Audio goes out of sync due to 12-bit recording and/or drop outs in video makes video and audio
    not walk in pace / parallel. Resulting in a very tough re-sync problem.
    Yours Bengt W

  • Movie playback is way too dark

    hey guys i have had this problem for a while but am only getting into it now i am lookin to try and figure out whats wrong. well as the title states whenever i play a movie through my I tunes for some reason it always plays back super dark and i don't have any idea how to fix it does anyone know what might be wrong

    Can you be more specific about what App you are using? An example of a video?
    How fast is your ISP Internet connection?
    What make/model router are you using?
    From what you describe it appears that there is a bottleneck in getting video data to your iPad. Diagnosing this can be tough because the problem could lie at the server, on the Internet path to the server, on your local network router or in your iPad itself.
    Note that videos do not have to completely load before playing. Usually they will start when a sufficient buffeting amount of the video has loaded. The important thing is that the rate of loading exceeds the rate of play.

  • My iphone isn't charging

    My iphone isn't charging , i tough that the problem is coming from the cable or the adapter but i tried them with another iphone and they were working , i think the problem is from my iphone or the charging place, I cleaned that place and it worked but now its always connecting and disconnecting with a simple move

    Try to restart the iPhone. If it still doesn't work, restore from backup or restore as new device. Have you tried cleaning the charge doc. Use a toothpick, dry toothbrush, etc to gently clean out the dust/debris form the doc connector.
    Also, the following link might be useful:
    http://support.apple.com/kb/HT1476

  • Import VHS into Final Cut7?

    To edit a Sample Reel in FCP7 I need to capture many VHS cassettes into my iMac computer and FCP7, as QuickTime files.  I bought a Blackmagicdesign Video Recorder at Tekserve.  But when I read the box it says: H264 Encoding :  "it records H264 Video to iTunes/ iPad&iPhone/AppleTV/ YouTube."
    In this Forum I was told once that H264 is not fit for FCP.  Should I look for another Converter? (to Quick Time if it exists?), or convert to H264 and then to ProRes in a 2nd step via StreamClip for ex?  I also will be importing DVDs for that Sample Reel.  I would be grateful for any tip from someone with experience in this process.  Thank you very much in advance

    Hi
    Me Guessing a bit
    Guess - .H264 is not that good and by converting it to ProRes or AIC - it will work but the quality lost in H264 coding is not there (and as far as I get it can not be restored)
    If this is true - then my way of doing it is the best one I seen
    • I use an A/D-box - Canopus ADVC-300 (Grass Valley ADVC-300)
    An expencive box but as it has some to me very vital functions - worth it
    • It has TimeBase Corrections
    This is important if VHS tapes are a bit old or can have Drop-Outs as it tries to mend them = Program Importing DO NOT STALL (Halt) - Meaning You need not to Babysit
    - My tapes are new to >> 10 Years old = Drop Outs
    - Recorded on various brands (most of them too cheap) = Drop Outs
    - Recorded in LP-mode = Drop Outs
    • And if there is Drop Outs then with ordinary A/D-boxes - Audio goes OUT OF SYNC. And this is a night mare to correct by hand ! !
    Ny notes on this:
    Analog to Mac (digital)
    Analog to Mac/Digital
    From
    • S-VHS, VHS, VHS-C - Camera or VCR (VHS-C needs adaptor cassette - SVHS/VCR in such cases)
    • Video 8, Hi8 ...........................................( Camera / Digital8 Camera or special VCR-player )
    Can be done via
    • Camera and tape or video trough (if present) (miniDV or Digital8)
    • A/D-box
        Several brands (Must be FireWire)
            Canopus ADVC-55 (now Grass Valley ADVC-55) - (only on way)
            Canopus ADVC-110 (now Grass Valley ADVC-110) - (two ways)
            Canopus ADVC-300 (now Grass Valley ADVC-300) - (Timebase/code-correction)
            EyeTV
    • VCR --> DVD (result needs conversion to be of use)
    Captured/Imported by
    • iMovie 1 to HD6
    • iMovie’08 & 09 & 11
    • FinalCut Express or Pro
    • Final Cut Pro - X ( iMovie’11 Pro? )
    • QuickTime Pro
    • iDVD
    SCART - Must use an SCART-adaptor with in and out switch. The one that came with Camera is one way. Camera ----> VCR/TV - not other way around.
    RCA - Connect right way around
    USING the S-Video out than RGB-video (Composite) from SCART will give a significantly better result !
    Why
    • Want to do a  DVDs
    • Want to edit
    Connect VCR to A/D-box via SCART---RCA (EU) or via RCA---RCA (US) and set SCART switch to out (if used). The A/D-box may have an in resp. out side. Connect to in-side. Set A/D-box Input selector to Analog in.
    My ADVC-300 has two sets of dip-switches on bottom - for PAL they are set to
    Left one number 6 is set to on - all others in off state.
    If 6 in off state then it is NTSC
    From A/D-box via FireWire 6-pin to 6-pin or 9-pin end to Mac FW port.
    Now turn A/D-box or Camera ON
    Start iMovie or QT or FinalCut
    Select Import or Capture
    Re-wind tape in VCR or Camera
    Start - Play on VCR or Camera
    Import or Capture Now
    See that the saved movie is collected on a hard disk with sufficient space
    1 hour needs 13.5Gb
    8 hour needs 105-110Gb (e.g. a 240VHS tape recorded in LP-mode)
    How to store the material
    • As is - Icon with a Star on it (iMovie HD6)
    • As a set of DVDs
    • Collected in a folder - FinalCuts Scratch folders + Movie document on an external/second hard disk
    • As DiskImages
    • Back to miniDV tapes
    Do not use LP-mode with miniDV tapes. Two major problems.
    a. When Camera dies - so does the tapes - Can’t be play-backed securely on other Camera even if
    brand and type number is the same - the tolerances are to small
    b. Audio goes out of sync due to 12-bit recording and/or drop outs in video makes video and audio
    not walk in pace / parallel. Resulting in a very tough re-sync problem.
    Yours Bengt W

  • CENTERED ZOOMING: almost there!

    I found a simple way to do centered scrolling, combining a JScrollPane and a JSlider. Problem: zooming out from a 'right-down' position! Help me solve this, it's fun!
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.util.*;
    public class ZoomerApp extends JFrame {
    ImageIcon pic;
    JScrollPane scroller;
    PicCanvas canvas = new PicCanvas();
    JSlider slider = new JSlider(SwingConstants.HORIZONTAL,10,200,100);
    public ZoomerApp () {
    super("");
    // pls use a large image
    pic = new ImageIcon("myPic.gif");
    jbInit();
    private void jbInit () {
    setSize(500,400);
    slider.addChangeListener( new ChangeListener() {
    public void stateChanged ( ChangeEvent e ) {
    canvas.setScale(slider.getValue());
    canvas.setImage(pic);
    scroller = new JScrollPane( canvas );
    getContentPane().add(slider, BorderLayout.NORTH);
    getContentPane().add( scroller, BorderLayout.CENTER);
    setVisible(true);
    //Main method
    public static void main(String[] args) {
    ZoomerApp app = new ZoomerApp();
    app.addWindowListener(new WindowAdapter() {
    public void windowClosing ( WindowEvent e ) {
    System.exit(0);
    public class PicCanvas extends JPanel {
    private Image im;
    private int scale = 100; // in percent
    private int xDif, yDif;
    // only called once at instantiation
    public void setImage ( ImageIcon icon ) {
    im = icon.getImage();
    this.setSize(pic.getIconWidth(), pic.getIconHeight());
    repaint();
    // called everytime the slider is moved
    public void setScale ( int i ) {
    scale = i;
    // imagee x coordinate offset
    xDif = (scroller.getViewport().getWidth() - (im.getWidth(this) * scale/100) ) / 2;
    // image y coordinate offset
    yDif = (scroller.getViewport().getHeight() - (im.getHeight(this) * scale/100) ) / 2;
    // if scaled image will be bigger than viewport, PicCanvas size = image size
    // if scaled image will be smaller than viewport, PicCanvas size = viewport size
    int x=0, y=0;
    if ( xDif < 0 ) {
    x = im.getWidth(this) * scale/100;
    } else {
    x = scroller.getViewport().getWidth();
    if ( yDif < 0 ) {
    y = im.getHeight(this) * scale/100;
    } else {
    y = scroller.getViewport().getHeight();
    setSize(x,y);
    repaint();
    public void paintComponent ( Graphics g ) {
    // use java 2D for smooth scaling
    Graphics2D g2 = (Graphics2D)g;
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    super.paintComponent(g2);
    // if image is smaller than viewport, center it in PicCanvas
    if ( im != null ) {
    int x = ( xDif > 0 ? xDif : 0 );
    int y = ( yDif > 0 ? yDif : 0 );
    g2.drawImage(im, x, y,
    (int)(im.getWidth(this) * scale / 100),
    (int)(im.getHeight(this) * scale / 100),
    this );
    // NEEDED by JScrollPane
    public Dimension getMinimumSize () {
    return getSize();
    // NEEDED by JScrollPane
    public Dimension getPreferredSize () {
    return getSize();
    }

    I don't know if it is exactly that you want but it performs a centered scrolling :
    public class PicCanvas extends JPanel {
    private Image im;
    private int scale = 100; // in percent
    private int xDif, yDif;
    private Rectangle rect = new Rectangle();
    // only called once at instantiation
    public void setImage ( ImageIcon icon ) {
    im = icon.getImage();
    this.setSize(pic.getIconWidth(), pic.getIconHeight());
    repaint();
    // called everytime the slider is moved
    public void setScale ( int i ) {
    scale = i;
    // imagee x coordinate offset
    xDif = (scroller.getViewport().getWidth() - (im.getWidth(this) * scale/100) ) / 2;
    // image y coordinate offset
    yDif = (scroller.getViewport().getHeight() - (im.getHeight(this) * scale/100) ) / 2;
    // if scaled image will be bigger than viewport, PicCanvas size = image size
    // if scaled image will be smaller than viewport, PicCanvas size = viewport size
    int x=0, y=0;
    if ( xDif < 0 ) {
    x = im.getWidth(this) * scale/100;
    } else {
    x = scroller.getViewport().getWidth();
    if ( yDif < 0 ) {
    y = im.getHeight(this) * scale/100;
    } else {
    y = scroller.getViewport().getHeight();
    setSize(x,y);
    // Perform a centered scrolling
    rect.setSize(scroller.getViewport().getSize());
    rect.setLocation((x-scroller.getViewport().getWidth())/2, (y-scroller.getViewport().getHeight())/2);
    scrollRectToVisible(rect);
    // Perform a centered scrolling
    repaint();
    public void paintComponent ( Graphics g ) {
    // use java 2D for smooth scaling
    Graphics2D g2 = (Graphics2D)g;
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    super.paintComponent(g2);
    // if image is smaller than viewport, center it in PicCanvas
    if ( im != null ) {
    int x = ( xDif > 0 ? xDif : 0 );
    int y = ( yDif > 0 ? yDif : 0 );
    g2.drawImage(im, x, y,
    (int)(im.getWidth(this) * scale / 100),
    (int)(im.getHeight(this) * scale / 100),
    this );
    // NEEDED by JScrollPane
    public Dimension getMinimumSize () {
    return getSize();
    // NEEDED by JScrollPane
    public Dimension getPreferredSize () {
    return getSize();
    Hope this helps,
    Denis

Maybe you are looking for

  • Exch 2013 SP1 How to create new mailbox account for multiple users exist in active directory in one go?

    Hi, First let me explain my Exch 2013 SP1 Multidomain set up. 1. DA as Forest Root domain, having schema master domain role installed. DB as Tree Root domain in above forest  DC as Child domain in Tree root domain. Brought 1 machine in Child domain a

  • With holding tax should deduct on down payment

    hi gurus,         Pls help me out regarding this issue,  while iam paying down payment to vendors, i will cut the TDS and i will pay it to him, while raising an invoice the TDS should automatically adjust the invoice amount. pls send me the configura

  • Search Results Display Preference as "Advanced" not working in R12

    Hi Everyone, I'm unable to do an Advanced search in R12(12.1.3) whereas "Standard" search is working fine at 'Search Results Display Preference' in Oracle Applications Home Page. Advanced search throws 'http 404' error in all upgraded instances. Is t

  • Material getting set for Batch Management in O/B delivery

    Hi Folks, For a material which is not batch managed, I created an outbound delivery. For some reason, the material is getting set as 'BatchManagement' even though the Batch Management indicator is not set. Due to this PGI is not possible. Any thought

  • Reader 9.4 keeps suggesting the same update

    I have installed Reader 9.4.  The "Update Available" icon keeps appearing in my system tray and keeps installing the same security update. I assume it's the same update because this has happened numerous times today.  Also when I initiate a search fo