Reusing Buttons and JPanels

Hi,
I am building a GUI for a project which has a basic view tab and an advanced view tab, using JTabbedPane. The advanced view mode would essentially have all the basic mode buttons and panels and an extra few more features that aren't in the basic mode. The problem is that when I decided to reuse the JButtons and Panels that I built for the baisc mode, all of them get transferred to the the advanced view mode (because it was coded last). And the Basic mode is left bare without its buttons. Is there a way I could clone buttons and panels, etc. I know a simple but tedious fix is to make two of every button and panel that are used in the basic mode, but that is just terrible especially since the listeners will too have to be made twice. Can't I just use the same instance of a button or panel in both modes???
Another fix I had in mind was have a listener that repaints the advanced view mode whenever its clicked on.
Thanks all.

Flouder here is an example, I tried to remove as much irrelevant information buts its a self-contained compilable example that details what I mean. Here are a few points of interest:
if you comment out code "advancedOptions.add(imageOptions2);", you will see that this panel goes back to basicOptions tab. If you have this code alongside the rest of the code, it will steal that panel and paste it into advancedOptions tab.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class JavaQuestion{
     // Initialize all swing objects.
    private JFrame f = new JFrame("ToolWatchers User Advisor"); //create Frame
    private Container leftContainer = new Container();
    private Container basicOptions = new Container();
    private Container advancedOptions = new Container();
    private JTabbedPane tabbedPane = new JTabbedPane();
    //Intialize Basic Options
    private JButton prevImage = new JButton("Previous Image");
    private JButton nextImage = new JButton("Next Image");
    private JButton processImage = new JButton("Process Image");
    private JButton currentImage = new JButton("Current Image");
    private JButton statOption1 = new JButton("Stat Option 1");
    private JButton statOption2 = new JButton("Stat Option 2");
    private JButton statOption3 = new JButton("Stat Option 3");
    //Intialize Advanced Options
    private JButton captureImage = new JButton("Capture");
    private JButton analyzeImage = new JButton("Analyze Image");
    private JButton selectionTool = new JButton("Selection Tool");
    private JButton zoomTool = new JButton("Zoom Tool");
    private JButton nextProcess = new JButton("Next Image Process");
    /** Constructor for the GUI */
    public JavaQuestion(){
        //Build Main Interface (leftContainer Container)
        buildTabbedPane();
        buildLeftContainer();
        // Setup Main Frame
        f.getContentPane().setLayout(new GridLayout(1, 2));
        f.setSize(900, 700);
        f.add(leftContainer);
        //Allows the Swing App to be closed
        f.addWindowListener(new ListenCloseWdw());
     public void buildTabbedPane() {
          tabbedPane.setAlignmentY(leftContainer.LEFT_ALIGNMENT);
        buildBasicView();
          buildAdvancedView();
     public void buildBasicView() {
          //image_options is the main panel that contains most image buttons
          //image_Options is a child panel that contains  prev,curr,next buttons
          prevImage.setAlignmentY(prevImage.TOP_ALIGNMENT);
          currentImage.setAlignmentY(prevImage.TOP_ALIGNMENT);
          nextImage.setAlignmentY(prevImage.TOP_ALIGNMENT);
          JPanel image_Options = new JPanel();
          image_Options.setLayout(new BoxLayout(image_Options, BoxLayout.X_AXIS));
          image_Options.setMinimumSize(new Dimension(100, 25));
          image_Options.setPreferredSize(new Dimension(450, 30));
          image_Options.setMaximumSize(new Dimension(1024, 30));
          image_Options.setAlignmentX(image_Options.LEFT_ALIGNMENT);
          //Create next, current, previous buttons (put into display options pane)
          image_Options.add(prevImage);
          image_Options.add(Box.createRigidArea(new Dimension(25,0)));
          image_Options.add(currentImage);
          image_Options.add(Box.createRigidArea(new Dimension(25,0)));
          image_Options.add(nextImage);
          image_Options.add(Box.createRigidArea(new Dimension(25,0)));
          processImage.setAlignmentX(processImage.LEFT_ALIGNMENT);
          JPanel image_options = new JPanel();
          image_options.setBorder(BorderFactory.createTitledBorder("Image Options"));
          image_options.setLayout(new BoxLayout(image_options, BoxLayout.Y_AXIS));
          image_options.setAlignmentX(image_options.LEFT_ALIGNMENT);
          image_options.setPreferredSize(new Dimension(450, 100));
          image_options.setMaximumSize(new Dimension(1024, 100));
          image_options.add(image_Options);
          image_options.add(Box.createRigidArea(new Dimension(0,25)));
          image_options.add(processImage);
          JPanel statistics = new JPanel();
          statistics.setBorder(BorderFactory.createTitledBorder("Statisic Options"));
          statistics.setLayout(new BoxLayout(statistics, BoxLayout.X_AXIS));
          statistics.setAlignmentX(statistics.LEFT_ALIGNMENT);
          statistics.setPreferredSize(new Dimension(450, 55));
          statistics.setMaximumSize(new Dimension(450, 55));
          statOption1.setAlignmentY(statOption1.TOP_ALIGNMENT);
          statOption2.setAlignmentY(statOption1.TOP_ALIGNMENT);
          statOption3.setAlignmentY(statOption1.TOP_ALIGNMENT);
          statistics.add(statOption1);
          statistics.add(Box.createRigidArea(new Dimension(25,0)));
          statistics.add(statOption2);
          statistics.add(Box.createRigidArea(new Dimension(25,0)));
          statistics.add(statOption3);
          basicOptions.setLayout(new BoxLayout(basicOptions, BoxLayout.Y_AXIS));
          basicOptions.setMinimumSize(new Dimension(450, 200));
          basicOptions.add(image_options);
          basicOptions.add(statistics);
          tabbedPane.addTab("Basic View", basicOptions);
     public void buildAdvancedView() {
          //Add the Advanced view options which include basic options
          Component imageOptions2 = basicOptions.getComponent(0);
          JPanel toolPane1 = new JPanel();
          toolPane1.setLayout(new BoxLayout(toolPane1, BoxLayout.X_AXIS));
          toolPane1.setAlignmentX(toolPane1.LEFT_ALIGNMENT);
          toolPane1.add(captureImage);
          toolPane1.add(Box.createRigidArea(new Dimension(25, 0)));
          toolPane1.add(analyzeImage);
          toolPane1.add(Box.createRigidArea(new Dimension(25, 0)));
          toolPane1.add(nextProcess);
          toolPane1.add(Box.createRigidArea(new Dimension(25, 0)));
          JPanel toolPane2 = new JPanel();
          toolPane2.setLayout(new BoxLayout(toolPane2, BoxLayout.X_AXIS));
          toolPane2.setAlignmentX(toolPane1.LEFT_ALIGNMENT);
          toolPane2.add(selectionTool);
          toolPane2.add(Box.createRigidArea(new Dimension(25, 0)));
          toolPane2.add(zoomTool);
          toolPane2.add(Box.createRigidArea(new Dimension(25, 0)));
          JPanel imageTools = new JPanel();
          imageTools.setBorder(BorderFactory.createTitledBorder("Image Tools"));
          imageTools.setLayout(new BoxLayout(imageTools, BoxLayout.Y_AXIS));
          imageTools.setAlignmentX(imageTools.LEFT_ALIGNMENT);
          imageTools.add(toolPane1);
          imageTools.add(Box.createRigidArea(new Dimension(0, 25)));
          imageTools.add(toolPane2);
          advancedOptions.setLayout(new BoxLayout(advancedOptions, BoxLayout.Y_AXIS));
          advancedOptions.setMinimumSize(new Dimension(450, 200));
          advancedOptions.add(imageOptions2);
          advancedOptions.add(imageTools);
          //TODO Step through Image processing
          tabbedPane.addTab("Advanced View", advancedOptions);
     public void buildLeftContainer() {
          leftContainer.setLayout(new BoxLayout(leftContainer, BoxLayout.Y_AXIS));
        leftContainer.add(tabbedPane);
    public class ListenMenuQuit implements ActionListener{
        public void actionPerformed(ActionEvent e){
            System.exit(0);        
    public class ListenCloseWdw extends WindowAdapter{
        public void windowClosing(WindowEvent e){
            System.exit(0);        
    public void launchFrame(){
        // Display Frame
          f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
    public static void main(String args[]){
        JavaQuestion gui = new JavaQuestion();
        gui.launchFrame();
}

Similar Messages

  • Event handling with buttons and mouse

    Hi, Im a beginner in Java...!!!
    I have 4 buttons with me- 2 for color(red,blue) and 2 for size(big,small)..
    How do we divide the frame into 2 panels..one for Buttons and Other for Mouse events...
    Now,if I click on RED button and BIG button..and later click in the Mouse Panel area..I shud get a big rectangle filled with red color..and similarly for small / blue..etc...if a new selection is made..the previous rectangles should remain as they are...
    Im unable to get the implementation...any help will be appreciated.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class ButtonPanel extends JPanel
    implements ActionListener, MouseMotionListener
    {  public ButtonPanel()
    blueButton = new JButton("Blue");
    redButton = new JButton("Red");
    bigButton = new JButton("Big");
    smallButton = new JButton("small");
    add(blueButton);
    add(redButton);
    add(bigButton);
    add(smallButton);
    blueButton.addActionListener(this);
    redButton.addActionListener(this);
    bigButton.addActionListener(this);
    smallButton.addActionListener(this);
    public void actionPerformed(ActionEvent evt)
    Color color = getBackground();
    repaint();
    // Paint Method
    public void paintComponent(Graphics g)
    {  super.paintComponent(g);
    class ButtonFrame extends JFrame
    {  public ButtonFrame()
    {  setTitle("ButtonTest");
    setSize(300, 200);
    addWindowListener(new WindowAdapter()
    {  public void windowClosing(WindowEvent e)
    {  System.exit(0);
    Container contentPane = getContentPane();
    contentPane.add(new ButtonPanel());
    public class ButtonTest
    {  public static void main(String[] args)
    {  JFrame frame = new ButtonFrame();
    frame.show();
    }

    can U kindly code it for me....!!!you're getting closer,
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=2&t=011033but rent-a-coder is that way ---->

  • How to when press the button and can change the value in the table?

    this is my code so far with a table and a button..how can i make it when press the button and the data in table change..
    * SimpleTableDemo.java is a 1.4 application that requires no other files.
    import java.awt.BorderLayout;
    import java.awt.Button;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    public class SimpleTableDemo extends JPanel {
    private boolean DEBUG = false;
    private JPanel button;
    private JButton enter;
    public SimpleTableDemo() {
    super(new BorderLayout());
    //button.setBackground(Color.pink);
    //setForeground(Color.pink);
    String[] columnNames = {"First Name",
    "Last Name",
    "Sport",
    "# of Years",
    "Vegetarian"};
    Object[][] data = {
    {"Mary", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Knitting", new Integer(2), new Boolean(false)},
    {"Sharon", "Zakhour",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Philip", "Milne",
    "Pool", new Integer(10), new Boolean(false)}
    final JTable table = new JTable(data, columnNames);
    table.setPreferredScrollableViewportSize(new Dimension(500, 70));
    if (DEBUG) {
    table.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    printDebugData(table);
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    enter = new JButton("Press me");
    //Add the scroll pane to this panel.
    buildButton();
    add(scrollPane, BorderLayout.NORTH);
    add(button, BorderLayout.CENTER);
    private void buildButton(){
    button = new JPanel();
    button.add(enter);
    private void printDebugData(JTable table) {
    int numRows = table.getRowCount();
    int numCols = table.getColumnCount();
    javax.swing.table.TableModel model = table.getModel();
    System.out.println("Value of data: ");
    for (int i=0; i < numRows; i++) {
    System.out.print(" row " + i + ":");
    for (int j=0; j < numCols; j++) {
    System.out.print(" " + model.getValueAt(i, j));
    System.out.println();
    System.out.println("--------------------------");
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    private static void createAndShowGUI() {
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("SimpleTableDemo");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create and set up the content pane.
    SimpleTableDemo newContentPane = new SimpleTableDemo();
    newContentPane.setOpaque(true); //content panes must be opaque
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    }

    Cross-post:
    http://forum.java.sun.com/thread.jspa?threadID=676105

  • Problem in shuffling the button and puting image on button in the same code

    I'm trying to make 16 block puzzel game. The following code is showing desired output when I'm running it in textpad but it's showing the output in eclipse. Please tell me the reason behind it.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.util.*;
    public class Puzzel extends JFrame{
              JButton[] arr = new JButton[15];
              public Puzzel(){
                        Image image;
                        Toolkit toolkit= Toolkit.getDefaultToolkit();
                        image=toolkit.getImage("icon.jpg");
                        ImageIcon icon=new ImageIcon("icon.jpg");
                        setIconImage(image);
                        setTitle("Puzzal");
                        JMenuItem pic = new JMenuItem("Solved");
                        pic.setMnemonic('a');
                        JMenuItem pict = new JMenuItem("Solved");
                        pict.setMnemonic('a');
                        JPanel jp = new JPanel(new GridLayout(4,4));
                        ArrayList list = new ArrayList();
                           for(int x = 0; x < arr.length; x++)
                              arr[x] = new JButton("Button "+(x+1));
                              list.add(arr[x]);
                        Collections.shuffle(list);
                        for(int x = 0; x < list.size(); x++)
                              jp.add((JButton)list.get(x));
                            getContentPane().add(jp);
                                 pack();
               public static void main(String[] args){
                    new Puzzel().setVisible(true);}
         }I want to add image on these buttons and I have tried it using the following code but its not running on eclipse but working fine when run through textpad. I dont know how to use it with shuffel.
    setLayout(new GridLayout(4,4));
             JButton img1 = new JButton("1.jpg", new ImageIcon("1.jpg"));
              getContentPane().add(img1);

    In the future Swing related questions should be posted in the Swing forum.
    I have tried it using the following code but its not running on eclipse I have no idea what "not running" means, but I'm assuming you are having trouble reading the image files.
    Read the section from the Swing tutorial on [How to Use Icons|http://java.sun.com/docs/books/tutorial/uiswing/TOC.html] for the proper way to read images so that is works in all environments.

  • Moving buttons and their listeners to separate classes

    Hi
    I am trying to move out buttons and their listeners to separate classes, but when I do so, the program stops working. When I click on the button they dont react, probably the listeners doesent listens as the action performe prints out testprints.
    In other words, I have huge troubles with do my gui object oriented. I doesent seem to be able to move out relevant listener methods and their components to separate classes.
    Here is the code for one add button that I have tried to write in a separate class:
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.sql.SQLException;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    import javax.swing.JButton;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import se.cs.DB.DBMovie;
    import se.cs.inputvalidation.PatternsMovie;
    import se.cs.main.Main;
    import se.cs.main.MessageArea;
    public class ButtonAddMovie {
         private DBMovie init = new DBMovie();
         private ComboBoxesMovie comboBoxesMovie = new ComboBoxesMovie();
         private TextFieldsMovie textFieldsMovie = new TextFieldsMovie();
         private PatternsMovie patternsMovie = new PatternsMovie();
         private MessageArea messageArea = new MessageArea();
         private Pattern patternYear;
         private Pattern patternSection;
         private Pattern patternExFields;
         private Matcher matcherYear;
         private Matcher matcherSection;
         private Matcher matcherTotalEx;
         private Matcher matcherExIn;
         private Matcher matcherExOut;
         private String genreString;
         // Initializes the button components
         private JButton addButton = new JButton("Add");
         public ButtonAddMovie() {
              listener();
         public void listener() {
              addButton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        addButton(e);
         public void addButton(ActionEvent e) {
              genreString = comboBoxesMovie.convertGenreIndex();
              regex();
         public void regex() {
              patternYear = Pattern.compile(patternsMovie.getYEAR_FIELD());
              patternSection = Pattern.compile(patternsMovie.getSECTION_FIELD());
              patternExFields = Pattern.compile(patternsMovie.getExFields());
              matcherYear = patternYear.matcher(textFieldsMovie.getTextYear());
              matcherSection = patternSection.matcher(textFieldsMovie.getTextYear());
              matcherTotalEx = patternExFields.matcher(textFieldsMovie
                        .getTextTotalEx());
              matcherExIn = patternExFields.matcher(textFieldsMovie.getTextExIn());
              matcherExOut = patternExFields.matcher(textFieldsMovie.getTextExOut());
              if (matcherYear.matches() && matcherSection.matches()
                        && matcherTotalEx.matches() && matcherExIn.matches()
                        && matcherExOut.matches()) {
                   messageArea.getMessageArea().setText("");
                   callInsertStatement();
                   JOptionPane.showMessageDialog(null, this.messageDialog(),
                             "Movie added", JOptionPane.INFORMATION_MESSAGE);
              else if (!matcherYear.matches()) {
                   messageArea.getMessageArea().setText(
                             "The input for year field does not match.\n"
                                       + "You have to enter 4 digits.");
              else if (!matcherSection.matches()) {
                   messageArea.getMessageArea().setText(
                             "The input for section field does not match.\n"
                                       + "You have to enter 1-4 digits.");
              else if (!matcherTotalEx.matches()) {
                   messageArea.getMessageArea().setText(
                             "The input for total ex field does not match.\n"
                                       + "You have to enter 1.");
              else if (!matcherExIn.matches()) {
                   messageArea.getMessageArea().setText(
                             "The input for ex in does not match.\n"
                                       + "You have to enter 1 digit.");
              else if (!matcherExOut.matches()) {
                   messageArea.getMessageArea().setText(
                             "The input  for ex out does not match.\n"
                                       + "You have to enter 1 digits.");
         public void callInsertStatement() {
              try {
                   init.insertStatement(textFieldsMovie.getTextTitle(),
                             textFieldsMovie.getTextYear(), genreString, comboBoxesMovie
                                       .convertGradeIndex(), textFieldsMovie
                                       .getTextSection(),
                             textFieldsMovie.getTextTotalEx(), textFieldsMovie
                                       .getTextExIn(), textFieldsMovie.getTextExOut());
              } catch (SQLException ex) {
                   ex.printStackTrace();
         public String messageDialog() {
              int grade = comboBoxesMovie.getGradeBox().getSelectedIndex() + 1;
              String title = textFieldsMovie.getTitleField().getText();
              String year = textFieldsMovie.getYearField().getText();
              String section = textFieldsMovie.getSectionField().getText();
              String totalEx = textFieldsMovie.getTotalExField().getText();
              String exIn = textFieldsMovie.getExInField().getText();
              String exOut = textFieldsMovie.getExOutField().getText();
              return "\n" + "Title: " + title + "\n" + "Year: " + year + "\n"
                        + "Genre: " + comboBoxesMovie.convertGenreIndex() + "\n"
                        + "Grade: " + grade + "\n" + "Section: " + section + "\n"
                        + "Total ex.: " + totalEx + "\n" + "Ex. in: " + exIn + "\n"
                        + "Ex. out: " + exOut + "\n";
          * Gets the addButton
          * @return addButton
         public JButton getAddButton() {
              return addButton;
         }

    I said "don't" cross-post and that the discussion has already been started in the "New To Java" forum.
    If you have two discussions going on then people waste time answering because they don't know what has already been suggested.

  • How to use one pop up window for multiple buttons and input fields?

    Hi Experts,
    I have created a pop up window that will be opened from multiple buttons in the same view. There are input fields that the data will be populated from a pop up window.  How can I set up which button that a pop up window is opened from? I also would like to populate the data from a pop up window to the input field next to a clicked button. There are 6 buttons and 6 input fields that share the same pop up window. I would very appreciate your responses.
    Thank you,
    Don

    Hi,
    Try creating 2 context attributes, one in your component controller and the other in the pop-up view. Bind the attribute of pop-up view to the component controller attribute.
    In the main view, on click of every button set a unique code in the controller's context which helps you in identifying the button clicked. Since u have created a binding to the pop-up view attribute the value flows from the controller.
    In the init method of your pop-up view, check the value of the attribute and based on that display which ever UI elements are required.
    Eg:
    On Button 1 click set value "B1", Button 2  value "B2" etc. In the init() of pop-up view u can check the values and perform the required operation:
    if(("B1").wdContext().currentContextElement().getButtonIdentifier()){
    else...{
    Hope this helps you.
    Regards,
    Poojith MV

  • Adobe Photo Downloader has encountered a problem and needs to close. We are sorry for the inconvenience.  Error Code: c0000005  Address: 76f73ac3     I clicked on the OK button and the downloader closed.     I then tried to download from the organizer. I

    Photoshop Elements 12
    Adobe Photo Downloader has encountered a problem and needs to close. We are sorry for the inconvenience.
    Error Code: c0000005
    Address: 75e32f71
    I clicked on the OK button and the downloader closed.
    I did a search on this error code (c0000005) and there seems to be a workaround but no solutions, why is this? I ask that because this problem seems to be years and years old, going back to at least 2005 (do the math that is 10 years).
    I don't even have the Camera hooked up and I get this error on download.  I redownloaded everything and reinstalled.  I allso saw the AVI issues reported with this proble so i updated Quicktime though without the camera being hooked up when I get this error I didn't expect that to work.  I tried support and they wouldn't help because I bought it in March this year.  Pretty frustrating as I have re-purchased Elements about every 2 years.  I think I might need a new CODEC?   I had this problem on an Earlier version And I seem to remember that being the Fix but this may be something completely different

    I finally found that it was missing a picture so the Catalog was "corrupted".  I just deleted the picture and it started working.
    I hate Adobe and their total lack of support - thanks for nothing Adobe .  Also get this - they offered me to upgrade to 13.0 ( My 12.0 is only 6 months old  but they still don't support it on errors.  Only install errors!
    I have upgrade and repurchase this product 4 times now.  I will find something else next time!

  • We can not clear all recents(30 recents call).  When Tango show "No recents call". We touch other buttons and come back to Recents button again.  It still show 30 recents call.

    We can not clear all recents(30 recents call).  When Tango show "No recents call". We touch other buttons and come back to Recents button again.  It still show 30 recents call.

    No one here is going to do anything about it. Send feedback to Apple.
    http://www.apple.com/feedback/ipad.html
    Basic troubleshooting steps. 
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

  • My ipad will not start.  It is 1 year old...I have tried holding the two buttons and nothing..I have it connected to my desktop and it will make a ding noise but nothing comes up on the screen.

    My ipad will not start.  It is 1 year old...I have tried holding the two buttons and nothing..I have it connected to my desktop and it will make a ding noise but nothing comes up on the screen.

    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen, not responding, how to fix
    http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    Black or Blank Screen on iPad or iPhone
    http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • What's difference between JPanel.remove(); and JPanel = null

    nice day,
    how can remove JPanel (including its JComponents), safe way, can you explain the difference between JPanel.remove () and JPanel = null,
    1/ because if JPanel does not contain any static JComponents
    2/ or any reference to static objects,
    then works as well as JPanel.remove or JPanel = null,
    or what and why preferred to avoid some action (to avoid to remove or to avoid to null)

    mKorbel wrote:
    nice day,
    how can remove JPanel (including its JComponents), safe way, can you explain the difference between JPanel.remove () and JPanel = null, Remove the JPanel from the container it was part of and make sure you do not keep any references to it from your own classes. Don't make it any more difficult than it has to be.

  • I have tried loading 3 different cds that I just bought into Itunes and I click the import cd button and it goes through the motions of importing the cds, but when I go to my library none of these cds is there.  Help, please!

    I have tried loading 3 different cds that I recently purchased into Itunes.  I click the import cd button and Itunes goes through the motion of copying and importing the cds, but the songs are not in my music library.  I have searched everywhere to find where these cds might be, but to no avail.  Could really use some help here.  Never used to have this problem.

    Are they in the relevant artist & album folders when you look via Windows Explorer. If so something may have gone wrong with the index of the Music playlist. Download the current iTunes Free Single of the Week. I know it sounds odd, but it should fix the problem.
    If that doesn't work close iTunes and delete the hidden file sentinel from inside the main iTunes folder, then start iTunes again. It should run a consistency check when it starts up.
    tt2

  • How to create popup window with radio buttons and a input field

    Hi Guys,
    Can somebody give some directions to create a stand alone program to create a window popup with 2 radio button and an input field for getting text value. I need to update the text value in a custom table.
    I will call this stand alone program from an user exit. 
    Please give me the guidance how go about it or please give any tutorial you have.
    Thanks,
    Mini

    Hi,
    There are multiple aspects of your requirements. So let's take them one at a time.
    You can achieve it in the report program or you can use a combination of the both along.
    You can create a standalone report program using the ABAP Editor (SE38). In the report program you can call the SAP Module pool program by CALL Screen <screen number>. And then in the module pool program you an create a subscreen and can handle the window popup with 2 radio button and an input field for getting the text.
    For help - Module Pool programs you can search in ABAP Editor with DEMODYNPRO* and you will ge the entire demo code for all dialog related code.
    For Report and other Module pool help you can have a look at the following:
    http://help.sap.com/saphelp_nw70/helpdata/en/47/a1ff9b8d0c0986e10000000a42189c/frameset.htm
    Hope this helps. Let me know if you need any more details.
    Thanks,
    Samantak.

  • Mouse buttons and keyboard randomly stop responding on secondary display

    Hey,
    I'm facing this weird problem after a recent upgrade to Snow Leopard:
    In about half of the cases I'm switching to application windows on a secondary/external display the mouse buttons and Macbook keyboard are unresponsive. I have to keep clicking/pressing for some time or have to switch between applications to get them working, until they'll fail again after some time.
    I tested it with two different external displays with VGA and DVI adapter, different screen resolutions, I tested the mouse and mouse software, both keyboard and mouse work fine with the same applications moved to the primary laptop screen, trackpad works fine too.
    This occurred after the upgrade to Snow Leopard on a 2008 unibody Macbook. Updates to 10.6.2 didn't solve the problem.
    I'd be happy if anyone could help me with this issue.
    Thanks

    You do not provide the full model number but if it is an AMD processor you are seeing the start of video issues that plague that series. The freeze is caused by bad video memory which is a part of the video card in turn part of the motherboard. I have been getting a high percentage of people who do not respond back to posts so I am not going to write everything about your issue; it could be a book. I am happy to help further if you have any questions. There are some repair options but at the end of the day, you might want to consider a new laptop.

  • Dear apple, I am really dissapointed with you. Around January 2013, my iPhone 4s 16GB White has hardware issues, which was the Wi-Fi grey out. The wifi grey out means that I can't access the wifi on/off button, and also it has no connection. I have put up

    Dear apple, I am really dissapointed with you. Around January 2013, my iPhone 4s 16GB White has hardware issues, which was the Wi-Fi grey out. The wifi grey out means that I can't access the wifi on/off button, and also it has no connection. I have put up with it for months, until june 7 when I decided it has been long enough, and I got a replacement. I told the genius bar what happened, and I already did the so called "steps" that apple reccommended on the site, which was reset network settings, restore iPhone. The genius bar gave me a replacement phone, so I was expecting that the problem would be over, but it isn't. It seems that it's iOS 6.1.3 which is the case of most public complaints on apple iPhone products. Not even 3 weeks after I got the phone replaced, it is doing it again, so I suspect I'm just going to get a replacement again? Unfortunately I only have until 5th of july 2013 until my 1 year warranty is up. After that, any issue I have, I have to purchase apple care. People are expecting this problem to be fixed but I don't see it being solved any time soon. This is horrible and really low, because I have been a good customer, when I talk to the people at the genius bar, I show the utmost respect I can to them for the work they put into their job, but somewhere there is a problem where something has gone wrong. Because of that, people that only have a one year warranty (which i received because I purchased my apple iPhone at an Optus outlet, once that one year warranty is up, I have to pay for a problem that isn't even my fault? That isn't how it should work, you should be fixing this problem so people can be happy customers and leave happy. Obviously you don't all know how to do your jobs, because if you did, we wouldn't have this problem. I would like a replacement phone, ONCE AGAIN. If this problem occurs again, I will simply stop buying your products, and lose faith in your company, your's sincerely, Jack Maher.

    This is a user to user help forum only. You are not addressing Apple here.
    My iPhone 4S, iPhone 5, and iPad 2 are running 6.1.3 with no such problem and the same with the overwhelming majority of iOS devices running 6.1.3.

  • The itunes store wont let me download anything i click the buy button and it asks for my password but it wont download

    when i went to itunes on my computer it would start downloading the apps i purchased on my phone but would get stuck a processing file, then when i went to purchase a movie i would click the buy button and it would ask my password but then would not purchase or download. So i decided to buy the movie from my phone and then try to download on my computer from the purchased section but still wont download on my computer and it doesnt give me a reason why

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico my first language is Spanish. I do not speak English, however I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Are you putting in the address where the bank sends the monthly statement?
    Apple's servers are very picky about the format of the address. If you live in the USA, then the server is expecting the style that the US Postal Service uses. One way to do this is to use the USPS ZIP Code lookup service;
    https://tools.usps.com/go/ZipLookupAction!input.action
    Enter the address to look up the ZIP code and then copy the exact USPS output into your iTunes account information.

Maybe you are looking for