HELP: JPanel NOT shown

hi,
I have a simple program: one frame's content pane adds two JPanels.
Source as follows:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class DragTest2 {
public static void main(String[] args) {
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setSize(new Dimension(Constants.RECEIPT_WIDTH_X_AXIS,
(int)(Constants.RECEIPT_WIDTH_X_AXIS/Constants.RECEIPT_X_WIDTH_TO_Y_LENGTH_RATIO)));
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
int x = screenSize.width/2 - frame.getSize().width/2;
int y = screenSize.height/2 - frame.getSize().height/2;
frame.setLocation(x, y);
Container c = frame.getContentPane();
c.setLayout(null);
// Adding two panels
c.add(new DraggableJPanel(100, 200));
c.add(new DraggableJPanel(300, 400));
c.validate();
Insets insets = frame.getInsets();
frame.setVisible(true);
public class DraggableJPanel extends JPanel {
private final JPanel p;
private final JTextField tf;
public DraggableJPanel(int x, int y){
tf = new JTextField(Integer.toString(x)+"---"+Integer.toString(y));
p = this;
tf.addMouseMotionListener(new MouseMotionAdapter() {
public void mouseDragged(MouseEvent e) {
p.setLocation(p.getX()+e.getX(), p.getY()+e.getY());
this.add(tf);
p.setLocation(x,y);
Nothing fancy here.
However, when i run the program, i can NOT see any jtextfield. Moreover, if I comment out
the c.setLayout(null), I can see the 2nd Jtextfield (but in a wrong location, not 300, 400),
not the first.
Any help is greatly appreciated.
JK

BorderLayout is the default layout for a contentpane. By default, add() adds a componetn to the center of
the border layout. You can only have one component
in the center. If you put another there, the first
is gone. Either use add(myPanel, BorderLayout.NORTH)
or change the layout.Thanks for the help.
I want to do the absolute positioning, that is why inside DraggableJPanel, I have setLocation( ) called:
this.setLocation(x,y);
However, for some reason, the JPanel doesn't show up at all.
Seems to me content pane is ignoring this setLocation call for some reason.
You pointed out a good diretion, i will continue investigate. Thanks again.
JK

Similar Messages

  • Help is not shown in the window

    I have written the necessary documents (HelpSet, MapFile, HelpTOC).
    The Table-Of-Contents are shown in the left frame, but if I select them, the html-help-file is not shown in the right frame.
    Please help!
    HelpSet:
    <maps>
    <homeID>top </homeID>
    <mapref location="vcsMapFile.jhm" />
    </maps>
    <!-- views -->
    <view>
    <name>TOC</name>
    <label>Table Of Contents</label>
    <type>javax.help.TOCView</type>
    <data>vcsHelpTOC.xml</data>
    </view>
    HelpTOC:
    <?xml version='1.0' encoding='UTF-8' ?>
    <!-- was: <?xml version='1.0' encoding='ISO&#8722;8859&#8722;1' ?> -->
    <!DOCTYPE toc
    PUBLIC
    "&#8722;//Sun Microsystems Inc.//DTD
    JavaHelp TOC Version 2.0//EN"
    "http://java.sun.com/products/javahelp/toc_2_0.dtd">
    <toc version="2.0">
    <tocitem image="toplevelfolder"
    text="Virtual Circuit System">
    <tocitem text="Schaltungen erstellen" target="test">
    </tocitem>
    </tocitem>
    </toc>
    MapFile:
    <?xml version='1.0' encoding='ISO?8859?1' ?>
    <!DOCTYPE map
    PUBLIC "?//Sun Microsystems Inc.//DTD JavaHelp Map Version 2.0//EN"
    "http://java.sun.com/products/javahelp/map_2_0.dtd">
    <map version="2.0">
    <mapID target="test" url="test.html" />
    </map>
    test.html:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title></title>
    </head>
    <body>
    That is the help.
    </body>
    </html>

    The tutorial I believe you are referring to uses Visual Studio .NET 2003. So, it won't be in the exact same place as Visual Studio 2005.
    You should be able to right click on the database connection node and see an option for Query Window.

  • Need help:JPanel not being displayed in the JFrame

    Hello,
    I have a class called ConstructRoom.java which extends JFrame and another class called DimensionsPanel.java which extends JPanel. In the ConstructRoom class I use the following theContainer.add(new DimensionsPanel());, so I can display my JPanel. Well I get the JFrame but no JPanel. When the this call is made the DimensionsPanel.java code is cycled through, Where has my JPanel gone to?
    If I change the DimensionPanel.java extend JFrame and add the the JFrame code. Then I get the JFrame and the JPanel.
    Whats going on here?
    Thanks

    I made some of the changes with no luck. Here is some of the code:
    ---------from ConstructRoom.java--------
    //Imports
    public class ConstructRoom extends JFrame
    //----Member objects and varibles
    private static String theTitle; //Varible for title of frame
    private JFrame theFrame; //Object for the JFrame
    // ----------------------------------------------------------- ConstructRoom
    public ConstructRoom(String theTitle)
    super(theTitle); //JFrame super class
    theFrame = new JFrame("My frame");
    Container theContainer = theFrame.getContentPane(); //Frame container
    theContainer.setLayout(new FlowLayout());
    theContainer.add(new DimensionsPanel());
    theFrame.pack();
    theFrame.setBounds(10,10,400, 400);
    theFrame.addWindowListener(new WindowHandler());
    theFrame.setVisible(true);
    }//end ConstructRoom(String theTitle)
    // -------------------------------------------------------------------- main
    public static void main(String args[])
    ConstructRoom theRoom = new ConstructRoom(theTitle);
    }//end main(String args[])
    //----WindowHander
    }//end class ConstructRoom extends JFrame
    --------from DimensionsPanel.java
    //Imports
    public class DimensionsPanel extends JPanel
    //----Member objects and varibles
    private JPanel dimensionsPanel; //The main panel to hold all info
    private Box panelBox; //Box for all boxes which is added to the JPanel
    private Box furnListBox; //Box for all related items of the furnList
    private Box dimensionsBox; //Box for all dimensions (x, y, z)
    private Box xFieldBox; //Box for all related items of the xField
    private Box yFieldBox; //Box for related items of the yField
    private Box zFieldBox; //Box for related items of the zField
    private Box buttonsBox; //Box for all buttons
    private Box clearBox; //Box for related clear button items
    private Box buildBox; //Box for related build button items
    private JLabel furnListLabel; //Label for the furnList comboBox
    private JLabel xFieldLabel; //Label for the xField
    private JLabel yFieldLabel; //Label for yField
    private JLabel zFieldLabel; //Label for zField
    private JTextField xField; //Text field to enter the x dimension
    private JTextField yField; //Text field to enter the y dimension
    private JTextField zField; //Text field to enter the z dimension
    private JComboBox furnList; //List of selectable furniture objects
    private JButton clearButton; //Clear button
    private JButton buildButton; //Build button
    // --------------------------------------------------------- DimensionsPanel
    public DimensionsPanel()
    //----Setting up dimensions panel
    dimensionsPanel = new JPanel();
    dimensionsPanel.setLayout(new BorderLayout());
    dimensionsPanel.setPreferredSize(new Dimension(150,150));
    dimensionsPanel.setBorder(new TitledBorder(new EtchedBorder(),
    "Select Furniture and Enter Dimensions"));
    //----Initializing GUI components
    furnListLabel = new JLabel("Select from list ");
    furnList = new JComboBox();
    xFieldLabel = new JLabel("Enter Width ");
    xField = new JTextField();
    yFieldLabel = new JLabel("Enter Height ");
    yField = new JTextField();
    zFieldLabel = new JLabel("Enter Depth ");
    zField = new JTextField();
    buildButton = new JButton("Build Object");
    clearButton = new JButton("Clear Object");
    //-----Setting up the combo box and adding items
    furnList.addActionListener(new ComboProcessor());
    furnList.addItem(" "); //Default item
    furnList.addItem("Color Cube");
    furnList.setMaximumRowCount(6); //Max number of items before scrolling
    furnList.setSelectedItem(" "); //Set initial to default item
    //--Add the furnList to its box for placement in the JPanel
    furnListBox = Box.createHorizontalBox();
    furnListBox.add(Box.createHorizontalStrut(5));
    furnListBox.add(furnListLabel); //Adding the combo box label
    furnListBox.add(furnList); //Adding the combo box
    furnListBox.add(Box.createHorizontalStrut(5)); //Spacing
    //-------------------------------- Start Dimensions Components
    //----Setting up the xField
    xField.setEnabled(false); //Disabled at start
    xField.setFocusTraversalKeysEnabled(false); //Disabling the Tab Key
    //----Adding the event listeners
    xField.addActionListener(new XTextProcessor()); //Enter Key
    xField.addMouseListener(new ClickProcessor()); //Mouse Click
    //--Add the xField to its box for placement in the dimensionsBox
    xFieldBox = Box.createHorizontalBox();
    xFieldBox.add(Box.createHorizontalStrut(10)); //Spacing
    xFieldBox.add(Box.createGlue()); //Take up extra space
    xFieldBox.add(xFieldLabel); //Adding the text field label
    xFieldBox.add(xField); //Adding the text field
    xFieldBox.add(Box.createHorizontalStrut(100)); //Spacing
    //----Setting up the yfield
    yField.setEnabled(false); //Disabled at start
    yField.setFocusTraversalKeysEnabled(false); //Disabling TAB KEY
    //----Adding the event listeners
    yField.addActionListener(new YTextProcessor()); //Enter Key
    yField.addMouseListener(new ClickProcessor()); //Mouse Click
    //--Add the yField to its box for placement in the dimensionsBox
    yFieldBox = Box.createHorizontalBox();
    yFieldBox.add(Box.createHorizontalStrut(10)); //Spacing
    yFieldBox.add(Box.createGlue()); //Take up extra space
    yFieldBox.add(yFieldLabel); //Adding the text field label
    yFieldBox.add(yField); //Adding the text field
    yFieldBox.add(Box.createHorizontalStrut(100)); //Spacing
    //----Setting up the zfield
    zField.setEnabled(false); //Disabled at start
    zField.setFocusTraversalKeysEnabled(false); //Disabling TAB KEY
    //----Adding the event listeners
    zField.addActionListener(new ZTextProcessor()); //Enter Key
    zField.addMouseListener(new ClickProcessor()); //Mouse Click
    //--Add the zField to its box for placement in the dimensionsBox
    zFieldBox = Box.createHorizontalBox();
    zFieldBox.add(Box.createHorizontalStrut(10)); //Spacing
    zFieldBox.add(Box.createGlue()); //Take up extra space
    zFieldBox.add(zFieldLabel); //Adding the text field label
    zFieldBox.add(zField); //Adding the text field
    zFieldBox.add(Box.createHorizontalStrut(100)); //Spacing
    //----Adding all dimension components to the dimensionsBox
    dimensionsBox = Box.createVerticalBox();
    dimensionsBox.add(xFieldBox); //Adding the xFieldBox
    dimensionsBox.add(Box.createVerticalStrut(10)); //Spacing
    dimensionsBox.add(yFieldBox); //Adding the yFieldBox
    dimensionsBox.add(Box.createVerticalStrut(10)); //Spacing
    dimensionsBox.add(zFieldBox); //Adding the zFieldBox
    //-------------------------------- End Dimension Components
    //----Setting up the clearButton
    clearButton.setEnabled(false); //Disabled at start
    //----Adding the event listener
    clearButton.addActionListener(new ClearProcessor());
    //--Add the clear button to its box for placement
    clearBox = Box.createHorizontalBox();
    clearBox.add(Box.createHorizontalStrut(5)); //Spacing
    clearBox.add(clearButton); //Adding the clearButton
    //----Setting up the buildButton
    buildButton.setEnabled(false); //Disabled at start
    //--Add the action listener here
    buildBox = Box.createHorizontalBox();
    buildBox.add(buildButton); //Adding the buildButton
    buildBox.add(Box.createHorizontalStrut(5)); //Spacing
    //----Adding both buttons the buttonsBox
    buttonsBox = Box.createHorizontalBox();
    buttonsBox.add(clearBox); //Adding the clearBox
    buttonsBox.add(Box.createHorizontalStrut(10)); //Spacing
    buttonsBox.add(buildBox); //Adding the buildBox
    //----Create the JPanel (dimensionsPanel)
    //--Creating the main box to be added to the JPanel
    panelBox = Box.createVerticalBox();
    panelBox.add(furnListBox); //Adding the furnListBox components
    panelBox.add(Box.createVerticalStrut(10)); //Spacing
    panelBox.add(dimensionsBox); //Adding the dimensionBox components
    panelBox.add(Box.createVerticalStrut(10)); //Spacing
    panelBox.add(buttonsBox); //Adding the buttonsBox components
    panelBox.add(Box.createVerticalStrut(10)); //Spacing
    dimensionsPanel.add(panelBox); //Adding all components to the JPanel
    System.out.println("end dimensionpanel");
    }//end DimensionsPanel()
    //------ActionListeners
    }//end class DimensionsPanel extends JPanel

  • HELP: Column not shown in Interactive Report

    I have an Interactive Report setup, I have added a new column to the report.
    But the new column doesn't show by default, for anyone to view this new column they need to use the GUI click the gear... and then click columns and add the column to the view.
    I noticed that "default report settings" under "interactive report attributes" the new column isnt listed in "Selected Columns section"
    is that the problem? how do I update this list without rebuilding the report from scratch.
    Thanks Jade
    Edited by: user13002266 on 29-Jun-2010 16:22

    sure, so there actuall instructions in the item half way down the page of the item configuration.
    anyways so what you do it log into the application as the devloper login, so if you have a custon autorisation scheme you will need to set it back to apex, then when your logged in to you app... goto the page with the report, click the cog icon and there is a selext/adjust columns option... when you have finished click cog and save report... you will have an option to save as default... when you save the report your done, and all users will see you changed, remeber to change autorisation back to you custom one if you changed it.
    sorry im on my phone so spelling is prob bad and I dont have apex handy so I have to do it from memory. :)
    thanks jade, hope this helps... should work mint... ask again if you have problem's and I will update this when I have a pc and apex around.

  • I AM STUCK WITH MOZILLA FIREFOX / NOT SHOWN ON MY LAPTOP SCREEN / USING HUGE AMOUNT OF RAM IN GENERAL - CAN YOU HELP????

    Hi,
    I have copied these problem on you site, as I could explain better then what they did, wich my problem remain the same as they have. And part me explaining what is really happen to my Laptop.
    ''Mozilla/Firefox 4 will not SHOW on my computer SCREEN.
    Firefox won't load onto my computer. I have Windows 7, and each time I try to run the program to install it, it tells me I have another version still waiting to be installed that requires my computer to reboot. When I check "yes" to reboot, my computer reboots but still no Firefox. When I try to uninstall the the old Mozilla program from my Control Panels, there is no Mozilla files or programs listed not in my list of programs but when I go directly to the Windows File on the C: Drive, there's a Mozilla program file there. WHen I go into that file check, I attempt to open the uninstall program. I get an error message that says something to the effect of: "the version Mozilla on this computer is not compatable with my OS." Something about it being and 86bit program. My Firefox 3.6 worked fine 2 days ago. What's wrong??? ''
    '''Firefox 4 using huge amounts of RAM on sites with Java scripts
    I have been observing Firefox using huge amount of RAM when I am on sites that use Java Scripts to rotate images. I have tried a couple of different sites and have monitored the RAM usage. With Java script enabled Firefox 4 continues to grow its RAM usage by about 10MB a minute. I have had the usage hit as high as 1.5GB. As a comparison I have monitored the same sites in Internet explorer and have not seen the same issue. - Just to eliminate a site issue.
    Turning off Java Script solves the issue and eventually frees the RAM.
    I am using XP Pro, 3 GB RAM. '''''
    My experince with Mozilla Firefox:
    Here what really happen when I install the Mozilla Firebox on my La[top you can see the file is there but when I click the program to open its does not shown on the screen but when I check with WTM (Windows Task Manager) its shows that is ON and you can only witness the laptop going very slow and I have to reboot it, and I can not install any other Mozilla :( because of the same problem and all the above.
    I really need Mozilla to work as soon as possible due to important deadlines I have pendent, and i can only use Chrome but is not my ideal program. Can you help me , please ?????
    Thank you
    Vitor Mendes

    If it opens in safe mode, you may have a problematic add-on. Try the procedure in the [[Troubleshooting extensions and themes]] article.

  • My i phone 4 is water damaged and it is working but network not shown so please help me

    my i phone 4 is water damaged and it is working but network not shown so please help me

    A replacement iPhone is usually a refurbished iPhone that has received new battery and case and repair of anything that may have been faulty.  The refurbished iPhone is indistinguishable from a new iPhone.  A number of the regulars on here prefer the refurbished Aplle products because they have been so thoroughly tested.
    A replacement iPhone is identical to the original, same color, capacity, and so on.

  • HT201070 Since my last update RAW - Files from Nikon D800 are not shown correctly in the Finder as small prewiev. Can anybody help ?

    Since my last update  to 10.8.4 RAW - Files from Nikon D800 are not shown correctly in the Finder as small prewiev. Can anybody help ?

    update 10.8.5 solved this problem. Thankyou anyway.

  • Interface mapping not shown in directory search help

    Hi,
    I creatd a interface mapping in repository with message mapping. but when i configure the directory for receiver determination .. the interface mapping is not shown when i click the search help.
    pls any one help me .
    thankx,
    shree

    Hi Shree,
    Three checkpoints:
    1. Make sure you have entered the correct outbound and inbound interfaces.
    2. Make sure you have activated your interfaces and mappings.
    3. Make sure the cache is up-to-date (you can refresh cache by transaction sxi_cache).
    Hope this helps.
    Regards,
    Hart

  • Help! Table not shown in browser!!!!!!

    I never had this problem. The JTable is not shown at all!!! The JTable is embedded in an applet. I had similar program done (posted the code here) for another dataset and it works perfectly well. I'm suspecting the renderers. Here is the relevant code if anyone can please help me sort this mystery out.
    if (k==0) /* sysname column */
                    renderer=new DefaultTableCellRenderer();
                    JComboBox combo= new JComboBox(sys_names);
                    combo.setRequestFocusEnabled(false);
                    combo.setBackground(Color.yellow);
                    combo.setEditable(false);
                    combo.getEditor().getEditorComponent().setBackground(Color.blue)
                    editor=new DefaultCellEditor(combo);
            } else if (k==1) /* sys-ecp-dcs*/
                    renderer=new DefaultTableCellRenderer();
                    editor=new DefaultCellEditor(combo);
                   JComboBox combo= new JComboBox(sys_ecp_dcs_list);
                    combo.setRequestFocusEnabled(false);
                    combo.setBackground(Color.yellow);
                    combo.setEditable(false);
                    combo.getEditor().getEditorComponent().setBackground(Color.blue);       
        } else {
                     renderer = new cbhtol_TextAreaCellRenderer ();  // NEW
                    editor = new cbhtol_TextAreaCellEditor (this,m_table, m_data);
            TableColumn column = new TableColumn (k,
                                                  cbhtol_TrunkReportData.m_columns[k].m_width,
                                                  renderer, editor);
            column.setHeaderRenderer(createDefaultRenderer());
            m_table.addColumn (column); And the renderers:
    protected TableCellRenderer createDefaultRenderer() {
        DefaultTableCellRenderer label = new DefaultTableCellRenderer()
            public Component getTableCellRendererComponent(JTable table, Object valu
    e, boolean isSelected, boolean hasFocus, int row, int column) {
              if (table != null) {
                JTableHeader header = table.getTableHeader();
                if (header != null) {
                  //setForeground(header.getForeground());
                  setForeground(Color.white);
                  Color bg=new Color(200,100,30);
                  //setBackground(header.getBackground());
                  setBackground(bg);
                  setFont(header.getFont());
              setText((value == null) ? "" : value.toString()) ;
               setBorder(UIManager.getBorder("TableHeader.cellBorder"));
              return this;
        label.setHorizontalAlignment(JLabel.CENTER);
        return label;
      } //table cell renderer
    class cbhtol_TextAreaCellRenderer extends JTextArea implements TableCellRenderer
      protected static Border m_noFocusBorder    =    new
      EmptyBorder (1,                1,              1,              1);
      protected static    Border    m_focusBorder =
      UIManager.getBorder("Table.focusCellHighlightBorder");
      public
      cbhtol_TextAreaCellRenderer
        setEditable
          (false);
        setLineWrap
          (true);
        setWrapStyleWord
          (true);
        setBorder
          (m_noFocusBorder);
      public Component
      getTableCellRendererComponent
      (JTable table,
       Object value,
       boolean
       isSelected,
       boolean
       hasFocus,
       int nRow, int nCol)
        Color fg=new Color(255,0,0);
               setForeground(Color.green);
        if (value     instanceof      String)
    setText ((String) value);
        else if (value instanceof Integer)
          setText((String)value.toString());
        setBackground
          (isSelected && !hasFocus ?         table.getSelectionBackground() : table.
    getBackground ());
             setFont (table.getFont ());
        setBorder (hasFocus ? m_focusBorder : m_noFocusBorder);
          causes looping and stops rendering the components surrounding
          the cells
          int rowHeight =     getPreferredSize().height;
        if (table.getRowHeight(nRow) <  rowHeight)
        table.setRowHeight (nRow,  rowHeight);
             return this;}
      // To fix JDK bug
      public String getToolTipText (MouseEvent event)
        return null;
    } //class text area cell renderer
    public Component
      getTableCellRendererComponent
      (JTable table,
       Object value,
       boolean
       isSelected,
       boolean
       hasFocus,
       int nRow, int nCol)
        Color fg=new Color(255,0,0);
        //ColorData cvalue = new ColorData(value);
        if (table.getModel().getValueAt(nRow, 11).toString().trim().equals("Lucent")
          setForeground(fg);
        else if (table.getModel().getValueAt(nRow, 11).toString().trim().equals("Nor
    tel"))
          setForeground(Color.blue);
        else
          setForeground(Color.green);
        setBackground
    (isSelected && !hasFocus ?         table.getSelectionBackground() : table.
    getBackground ());
        //setForeground (isSelected && !hasFocus ?
        //   table.getSelectionForeground() : table.getForeground ());
        setFont (table.getFont ());
        //setBorder (hasFocus ? m_focusBorder : m_noFocusBorder);
        int rowHeight =     getPreferredSize().height;
        if (table.getRowHeight(nRow) <  rowHeight)
          table.setRowHeight (nRow,  rowHeight);
        return this;
      public String getToolTipText (MouseEvent event)
        return null;
    } //class ComboCellRendererPLZ HELP!

    Nothing wrong with the renderers! Silly coding mistake!!

  • Ratings and picks are not shown in the pictures in the filmstrip, although marked in the LR presets. Who can help?

    ratings and picks are not shown in the pictures in the filmstrip, although marked in the LR presets. Who can help?

    found the solution: the filmstrip was to small !!!

  • Files, tools, help categories above firefox start page are not shown. How to restore pls?

    File, Edit, view, history, bookmarks, tools etc are not shown at the top
    of my mozilla start page. Maybe I have deleted it when I deleted cookies and history. How can I restore them. Pls help.

    Thanks a lot. Problem solved. No doubt about it MFF is really the BEST!!

  • I have not been able to use the presenter installation. The installation process finishes well by says the download installation was a sucess, however, the icon to begin using the app is not shown anywhere. Please help!!!

    I have not been able to use the presenter installation. The installation process finishes well by says the download installation was a sucess, however, the icon to begin using the app is not shown anywhere. Please help!!!

    Hi There,
    Can you confirm if you were able to download Presenter 10 successfully, Can you please paste the screen shot of the downloaded file for Presenter 10? Can you please check in control panel >Program and features and check if you are able to see Adobe Presenter 10 as a installed program?
    Regards,
    Mayank

  • Why JPanel loaded is not shown up immediately???

    Dear Friends:
    I have a JPane to dynamically load other different JPanel at run time according to My click on different Tab, but my problem is that when I click the each diff Tab, the JPanel loaded is not shown up immediately,
    I must minimize whole application, then restore back to its original size, the loaded JPanel will show up,
    I used repaint() at the end of each loading, but did not take effect,
    How to solve this problem??
    Thanks
    sunny

    After add or removing components from a panel on a visible GUI you need to revalidate() the panel, so the LayoutManager can be invoked.

  • I have both an iPod and Ipad 2. Latest I have sync. ipod. Now when I want to sync. iPad 2 in iTunes its only iPod mentioned in sync. window and it does not help to connect iPad. its not shown in iTunes. What to do next?

    I have both an iPod and iPad 2. Latest I have sync. iPod and now I want to sync iPad, but iPad is not shown in iTunes when connected. I have the latest iTunes version.

    If your computer starts image capture or some other camera software you should be able to quit that and then your iPad will show up in iTunes. Mine does this all the time.
    The preference on what to start up when a "camera" is connected is found in Image Capture. So start Image Capture. It's in the applications > Utility folder. Then look for preferences. In my version it's in the lower left corner. Select None or Nothing and quit the program. From then on your iPad should show correctly in iTunes. But you will most likely have to start your smear software manually when you do connect a camera to your computer.

  • Why JComboBox not shown?

    I use a JPanel, and tried to show a JComboBox on it.
    But somehow the JComboBox is not shown. Need
    help here. Thank you.

    Just for fun, I wrote a small test program that included the following lines:
    modeType.addItem("Phi");
    modeType.addItem("Pump_probe delay");
    modeType.setSelectedIndex(0);
    modeType.setEnabled(true);
    modeType.setBounds(40, 150, 120, 30);
    add(modeType, null);As you can see, those lines are identical to the code you posted. modeType is a JComboBox that I'm adding to a JPanel that has no layout manager. In my program the combobox shows up perfectly.
    This tells us that the problem with your code is not those 6 lines, but something else. And without seeing the rest of your code it's awfully difficult to guess what it can be.

Maybe you are looking for

  • Random Turning Off

    Currently, I am running a Mac OS X, Version 10.5.8 I got this Mac in August, 2009. Before now, it hasn't had any problems. However, in the past 2 days, it has randomly shut off twice. The battery will be around (or over) 60%, and has no reason to shu

  • Photo Replicas that cant be deleted

    i plugged in my ipod touch and accidently pressed the sync button after entering my photos. after i noticed i qickly stopped the syncing but when i entered my photos icon i noticed new albums that were repliacas of my original photos and now i cant d

  • Iphone 6 keyboard grayed out when opening text message

    when i receive a text message and click on the messages icon, the message shows up but they keyboard is grayed out for a second before becoming visible-has anyone noticed that? i have never noticed it on other iPhones its weird

  • Opening outlook file (*.msg) using SAP document viewer...

    Hello Gurus, My program uses a function module called 'ARCHIVOBJECT_DISPLAY' to display archived document. This opens SAP dcoument viewer in which I am able to display all kind of files such as doc, pdf, xls but when I try to open a msg file i.e outl

  • How do I get the IPad2 to find printer?

    How do I get the IPad2 to find printer? I've set the printer up with the Bonjour service.