Switching JFrame's contentPane

Hi folks,
I've had a problem trying to switch the contentPane of a JFrame. Basically, I'd created a class to manage my application, that at construction time sets up the application's main window ( JFrame mainWindow ), and then have a method to switch the contentPane
public void switchContentPane( JPanel newContent )  throws Exception {
  newContent.setOpaque( true );
  mainWindow.setContentPane( newContent );
}The problem was that every time the switchContentPane() were invoked, the GUI would be updated only if the window were resized. I've tried many things to solve this problem:
- call mainWindow.repaint() after setContentPane();
- call mainWindow.revalidate() after setContentPane();
- invoke switchContentPane using SwingUtilities.invokeLater();
None of this worked for me. The same behavior was ocurring. What worked for me was to invoke mainWindow.getRootPane().updateUI() after mainWindow.setContentPane(). This solution was just a guessing. I don't have the minor idea of why this works, adn would like to know if someone could explain this. I would really appreciate it.
Thanks,
Alexandre

I've tried many things to solve this problem:
- call mainWindow.repaint() after setContentPane();
- call mainWindow.revalidate() after setContentPane();
- invoke switchContentPane using SwingUtilities.invokeLater();
The solution is to call validate() and then repaint(), as with any time when you modify an on-screen component hierarchy. The code below works perfectly.
JFrame doesn't even have a revalidate() method so I'm not sure how you managed to try that one.
I haven't tried this, and I'm no Swing expert, but I haven't seen content panes being switched like that before.
It's a perfectly decent way of doing it, and I would suggest a better way - why have an arbitrarily-configured panel sitting there doing nothing except ruining the semantics of placing your content into a frame?
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
public class TestCP implements Runnable
     private JFrame frame = null;
     private int swaps = 0;
     public static void main(String[] args)
          SwingUtilities.invokeLater(new TestCP());
     public void run()
          this.frame = new JFrame();
          updateContent();
          this.frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          this.frame.pack();
          this.frame.setLocationRelativeTo(null);
          this.frame.setVisible(true);
     private void updateContent()
          JLabel l = new JLabel("Swaps: " + this.swaps, JLabel.CENTER);
          JButton b = new JButton(new Swap());
          JPanel p = new JPanel(new BorderLayout());
          p.add(l, BorderLayout.CENTER);
          p.add(b, BorderLayout.SOUTH);
          this.frame.setContentPane(p);
          this.frame.validate();
          this.frame.repaint();
     private class Swap extends AbstractAction
          private Swap()
               putValue(NAME, "Swap");
          public void actionPerformed(ActionEvent e)
               swaps ++;
               updateContent();
}

Similar Messages

  • Switch JFrame setUndecorated On and Off, help

    i need to make a frame so that if the user hits f4 the frame decorations
    disappear.
    If i open the frame with setundecorated(true) the frame works fine.
    The same with the default setUndec(false).
    However it is unable to switch from one to the other.
    A jframe can only be undecorated when it is undispalayble.
    How do i make it undisplayable but displayed?
    If i call removeNotify() (the only way i know to make the frame
    undisplayable - otherwise setundec throws an error) the frame closes.
    Anyone have any suggestions? this is really important! thanks alot!

    Here's a slight modification. Notice I had to re-map action and keyStroke.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class UndecoratedFrameTest extends JFrame {
        private boolean unDecorated = false;
        private DecorateAction action;
        private JPanel mainPanel;
        public UndecoratedFrameTest() {
            action = new DecorateAction("Toggle");
            buildGUI();
        private void buildGUI() {
            mainPanel = (JPanel) getContentPane();
            mainPanel.setLayout(new BorderLayout());
            JPanel centerPanel = new JPanel();
            centerPanel.add(new JLabel("Center"));
            mainPanel.add(centerPanel, BorderLayout.CENTER);
            setUndecorated(unDecorated);
            JButton decButton = new JButton(action);
            mainPanel.add(decButton, BorderLayout.SOUTH);
            mainPanel.getActionMap().put("toggle", action);
            mainPanel.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_F4, 0), "toggle");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            pack();
            setLocationRelativeTo(null);
        private void toggleDecoration() {
            dispose();
            setUndecorated(!unDecorated);
            mainPanel.getActionMap().put("toggle", action);
            mainPanel.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_F4, 0), "toggle");
            setVisible(true);
            unDecorated = !unDecorated;
        public static void main(String[] args) {
            Runnable runnable = new Runnable() {
                public void run() {
                    UndecoratedFrameTest undecoratedFrameTest = new UndecoratedFrameTest();
                    undecoratedFrameTest.setVisible(true);
            SwingUtilities.invokeLater(runnable);
        private class DecorateAction extends AbstractAction {
            public DecorateAction(String name) {
                super(name);
            public void actionPerformed(ActionEvent e) {
                toggleDecoration();
    }Cheers
    DB

  • Problem with JFrame , please help !

    hello , all !
    I define a JFrame1 as ancestor
    I set the JFrame's contentPane Layout to borderLayout ,
    and add some component in south , north , and add a menu , in its constructor
    then I define a new JFrame2 inherit from JFrame1, I also add a Jpanel component
    to contentPane center in its constructor !
    but something a wrong , I can't see the Jpanel , only see the components which add in JFrame1?
    this is why ?
    thanks
    /* source code */
    public class JFrame1{
    public JFrame1(){
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    private void jbInit() throws Exception {
    contentPane = (JPanel) this.getContentPane();
    contentPane.setLayout(borderLayout1);
    statusBar.setBorder(BorderFactory.createEtchedBorder());
    statusBar.setText("Hello , Young follow! ");
    contentPane.add(statusBar, BorderLayout.SOUTH);
    toolbar = new Toolbar_DataEntry(this);
    contentPane.add(toolbar, BorderLayout.NORTH);
    menubar = new Menu_DataEntry(this);
    this.setJMenuBar(menubar);
    public class JFrame2 extends JFrame1 {
    public JFrame2() {
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    /**Component initialization*/
    private void jbInit() throws Exception {
    contentPane = (JPanel) this.getContentPane();
    JPanel bodyPane = new JPanel();
    bodyPane.setDataModule(queryDataSet1);
    queryDataSet1.Opendatabase();
    bodyPane.setBorder(null);
    this.setTitle("Frame Title");
    bodyPane.setBounds(new Rectangle(4, 5, 427, 114));
    contentPane.setPreferredSize(bodyPane.getPreferredSize());
    contentPane.setMinimumSize(bodyPane.getMinimumSize());
    Frame_Resize();

    The problem is that the constructor for JFrame2 does not automatically call the constructor for JFrame1. Therefore the JFrame1 constructor never gets called.
    You must do this yourself with the super() method.
    public JFrame2() {
    super();
    try {
    jbinit();
    catch( Exception e )
    e.printStackTrace();
    Remember that this rule applies to all descendent classes.

  • Problem with JFrame, it goes blank

    i
    My problem is with JFrame, when it's carrying operation which takes a bit of time, if somethhing goes on
    top of the frame the frame goes blank, all the components vanished and when the operation is completed the components bacome visible. I dont know why this is happening,. The code is below, since my code is very complicated I am sending some code whcih shows the problem I have, when you press the button it execute's a for loop, whcih takes some time. If you minimize the frame and maximize again, you'll see what I mean.
    Please help!!!
    Many Thanks
    Lilylay
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Frame1 extends JFrame {
    JPanel contentPane;
    JButton jButton2 = new JButton();
    /**Construct the frame*/
    public Frame1() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    /**Component initialization*/
    private void jbInit() throws Exception {
    //setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]")));
    contentPane = (JPanel) this.getContentPane();
    contentPane.setLayout(null);
    this.setSize(new Dimension(407, 289));
    this.setTitle("Frame Title");
    contentPane.setBackground(SystemColor.text);
    contentPane.setForeground(Color.lightGray);
    jButton2.setText("Press me!");
    jButton2.setBounds(new Rectangle(107, 111, 143, 48));
    jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mousePressed(MouseEvent e) {
    jButton2_mousePressed(e);
    contentPane.add(jButton2, null);
    /**Overridden so we can exit when window is closed*/
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
    void jButton2_mousePressed(MouseEvent e) {
    for(int i=0; i<256898; i++){
    for(int j=0; j<5656585; j++){
    System.out.println("hello");
    public static void main(String [] args){
    Frame1 frame=new Frame1();
    frame.show();
    }

    The reason this is happening is because your loop is so intensive that your program doesn't have time to refresh its JFrame. There is no great way to get past this stumbling block without decreasing the efficiency of your code. One possible solution is to call repaint() from within your loop, but of course this slows down your loop.
    Hope that helps

  • One JPanel is missing after adding two JPanels to a JFrame

    I have two classes, ScoreTableView and CardView, which both extends the JPanel class. ScoreTableView is used to show one table only, and CardView is to show a set of cards for a memory game. My objective is to separate the development of the panels, so that it will easier to modify either of them later. I add instances of these two class to the contentPane of my top level JFrame object. However, I can only see the ScoreTableView(which is supposed to show me a table only) on the top part of the frame, and the CardView panel never show up.
    ScoreTableView.java
      public ScoreTableView(int numberOfPlayer){
    //      Create a model of the data.
            scoreTable = new JTable();//this scoreTable is a JTable object
            scoreTable.setModel(scoreTableData);  //scoreTableData is my data    
            JScrollPane jsp = new JScrollPane(scoreTable);          
            p = this;
            p.setLayout(new BorderLayout());
            p.add(jsp, BorderLayout.CENTER);
        }CardView.java
    public CardView(int w, int h){
            cardWidth = w;
            cardHeight = h;
            JPanel cardPanel = new JPanel();
            cardPanel.setLayout(new GridLayout(cardWidth,cardHeight)); 
            CardImageButton[][] cardsButtons = new CardImageButton[cardWidth][cardHeight];
          // ... more other none GUI coiding 
             }Here's what I have in my main
            Container contentPane = jf.getContentPane();//jf is the JFrame object          
            contentPane.setLayout(new BorderLayout()); 
    //      create the score panel                 
            ScoreTableView scoreTableView = new ScoreTableView(4);
          contentPane.add( scoreTableView, BorderLayout.NORTH);
            //create the cards panel
            CardView cardPanel = new CardView(4,4);
            contentPane.add(cardPanel, BorderLayout.CENTER);
            jf.pack();
            jf.setVisible(true);      

    Sorry, but I copied the wrong files. Now both panels can show up, but the score table is on the NORTH, and the card panel is on the SOUTH(although I set it to CENTER and wish it can occupy the rest of the window), but the center part of the window has nothing. How can I get rid of the white space, so that the score panel can can 30% of the top part of the window(even after resize), and the card panel can occupy the remaining 70%? I can't attach pictures here, otherwise I can upload some screenshot to show you what's the problem I have. Thank you in advance.
    This is my CardView class, I didnt' copy all of them upstair.
    public class CardView extends JPanel{
        private int cardWidth;
        private int cardHeight;
        private CardModel cm;
        private JPanel cardPanel;
        public CardView(int w, int h){
            cardWidth = w;
            cardHeight = h;
            cardPanel = this;
            cardPanel.setLayout(new GridLayout(cardWidth,cardHeight)); 
            CardImageButton[][] cardsButtons = new CardImageButton[cardWidth][cardHeight];
            int[][] list  = init(cardWidth, cardHeight);       
            cm = new CardModel(list);
            int count = 0;
            for(int i=0;i<cardWidth;i++){
                for(int j=0;j<cardWidth;j++){
                    cardsButtons[i][j] = new CardImageButton("Press me"+count, cm, i, j, 0);
                    cardPanel.add(cardsButtons[i][j]);
                    count++;               
    public int[][] init(int n, int m){
            int[][] list  = {
                    {1, 2, 1, 1},
                    {2, 1, 2 , 2},
                    {1, 2, 1, 1},
                    {2, 1, 2 , 2} };
            return list;
        }This is from my main.
           //setup the content panel
            Container contentPane = jf.getContentPane();          
            contentPane.setLayout(new BorderLayout()); 
    //      create the score panel                 
            ScoreTableView scoreTableView = new ScoreTableView(4);
          contentPane.add( scoreTableView, BorderLayout.NORTH);
            //create the cards panel
            CardView cardPanel = new CardView(4,4);
            contentPane.add(cardPanel, BorderLayout.CENTER);
            jf.pack();
            jf.setVisible(true);   ScoreTableView.java
      public ScoreTableView(int numberOfPlayer){
    //      Create a model of the data.
    scoreTable = new JTable();//this scoreTable is a JTable object       
    scoreTable.setModel(scoreTableData);  //scoreTableData is my data            
    JScrollPane jsp = new JScrollPane(scoreTable);                  
    p = this;       
    p.setLayout(new BorderLayout());       
    p.add(jsp, BorderLayout.CENTER);   
    }

  • Several Jpanels in a JFrame

    Hi,
    I have three buttons in Jtoolbar and a JPanel inside a JFrame. Now my program is supposed to work in the follwoing way-
    when I click a button a new JPanel containing general information comes in that fixed Jpanel place in that JFrame.
    When I press another button "a form" should come.
    When I press the third button then the a Jtable will come.
    Now all these should come in the same place inside that JFrame. So, when I press the JToggleButtons then how to call and set up so that the Jpanels replace each other?
    Please post some example if possible along with your advice.
    Thanks a lot in advance.

    I figured what the heck, here's a trivial example of card layout:
    import java.awt.BorderLayout;
    import java.awt.CardLayout;
    import java.awt.Font;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.BorderFactory;
    import javax.swing.JButton;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    * main jpanel that is added to a jframe's contentPane
    * this main panel uses a borderlayout and places a label
    * in the north position, a swap button in the south
    * position, and a jpanel in the center position that uses
    * the cardlayout. 
    * @author Pete
    public class CardPracticeMainPanel extends JPanel
        private static final long serialVersionUID = 1L;
        private JButton swapButton = new JButton("Swap Panels");
        private CardLayout cardlayout = new CardLayout();
        private JPanel cardLayoutPanel = null;
        public CardPracticeMainPanel()
            int ebGap = 20;
            setBorder(BorderFactory.createEmptyBorder(ebGap, ebGap, ebGap, ebGap));
            setLayout(new BorderLayout());
            cardLayoutPanel = createCardLayoutPanel();
            add(createNorthPanel(), BorderLayout.NORTH);
            add(cardLayoutPanel, BorderLayout.CENTER);
            add(createSouthPanel(), BorderLayout.SOUTH);
        public void addCard(JPanel panel, String string)
            cardLayoutPanel.add(panel, string);
        private JPanel createNorthPanel()
            JPanel p = new JPanel();
            JLabel titleLabel = new JLabel("CardLayout Practice Program");
            titleLabel.setFont(new Font(Font.DIALOG, Font.BOLD, 24));
            p.add(titleLabel);
            return p;
        private JPanel createCardLayoutPanel()
            JPanel p = new JPanel();
            p.setLayout(cardlayout);
            return p;
        private JPanel createSouthPanel()
            JPanel p = new JPanel();
            p.add(swapButton);
            swapButton.addActionListener(new SwapButtonListener());
            return p;
        private class SwapButtonListener implements ActionListener
            public void actionPerformed(ActionEvent arg0)
                cardlayout.next(cardLayoutPanel);
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.EventQueue;
    import javax.swing.BorderFactory;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    * the "driver" program that creates a JFrame and places a
    * CardPracticeMainPanel into the contentpane of this jframe.
    * It also adds JPanel "cards" to the CardPracticeMainPanel object.
    * @author Pete
    public class CardPracticeTest
        private static Random rand = new Random();
        private static void createAndShowGUI()
            // create the main panel and add JPanel "cards" to it
            CardPracticeMainPanel mainPanel = new CardPracticeMainPanel();
            for (int i = 0; i < 4; i++)
                JPanel card = new JPanel();
                card.setPreferredSize(new Dimension(600, 400));
                card.setBorder(BorderFactory.createLineBorder(Color.blue));
                String panelString = "panel " + String.valueOf(i + 1);
                card.add(new JLabel(panelString));
                mainPanel.addCard(card, panelString);
                card.setBackground(new Color(
                        127 * rand.nextInt(3),
                        127 * rand.nextInt(3),
                        127 * rand.nextInt(3)));
            JFrame frame = new JFrame("CardLayout Practice Application");
            frame.getContentPane().add(mainPanel); // add main to jframe
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        // let's show the jframe in a thread-safe manner
        public static void main(String[] args)
            EventQueue.invokeLater(new Runnable()
                public void run()
                    createAndShowGUI();
    }

  • Resizing JFrames and JPanels !!!

    Hi Experts,
    I had one JFrame in which there are three objects, these objects are of those classes which extends JPanel. So, in short in one JFrame there are three JPanels.
    My all JPanels using GridBagLayout and JFrame also using same. When I resize my JFrame ,it also resize my all objects.
    My Problem is how should i allow user to resize JPanels in JFrame also?? and if user is resizing one JPanel than other should adjust according to new size ...
    Plese guide me, how should i do this ...
    Thanknig Java Community,
    Dhwanit Shah

    Hey there, thanx for your kind intereset.
    Here is sample code .
    In which there is JFrame, JPanel and in JPanel ther is one JButton.Jpanel is added to JFrame.
    I want to resize JPanel within JFrame,I am able to do resize JFrame and JPanel sets accroding to it.
    import java.awt.*;
    import javax.swing.*;
    import com.borland.jbcl.layout.*;
    public class FramePanel extends JFrame {
    JPanel contentPane;
    GridBagLayout gridBagLayout1 = new GridBagLayout();
    public FramePanel() {
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    public static void main(String[] args) {
    FramePanel framePanel = new FramePanel();
    private void jbInit() throws Exception {
    contentPane = (JPanel) this.getContentPane();
    contentPane.setLayout(gridBagLayout1);
    this.setSize(new Dimension(296, 284));
    this.setTitle("Frame and Panel Together");
    MyPanel myPanel = new MyPanel();
    this.getContentPane().add(myPanel);
    this.setVisible(true);
    class MyPanel extends JPanel {
    public MyPanel() {
    this.setSize(200,200);
    this.setLayout(new FlowLayout());
    this.setBackground(Color.black);
    this.setVisible(true);
    this.add(new JButton("Dhwanit Shah"));
    I think i might explained my problem
    Dhwanit Shah
    [email protected]

  • Switching Frames (cardsLayout), doing something, waiting for button

    Hi,
    I am switching JFrames in my application and each frame is to call a specific function and then wait for a button click.
    so the code would be:
    function(){
            cardsLayout.show();
            doSomeCalculations();
            waitForButtonClick
            continueWithSomething //depending on which Button was clicked
    }My problem is, how to realize the waitForButtonClick?
    What would you suggest? I have heard about synchronize. Is this the way to go, or is there an easier/better way?
    Besides a while(notClicked) way ;-)
    Thanks!

    pir wrote:
    it is not that I do not want to learn Java. Please understand that Java is not with what I am earning my living, it is a tool for me, to make some task easier, which I would have otherwise have to do step by step by hand. I will never be as good as someone who spends his time with Java every day. I also have only a specific task to perform in a given time, so I need only specific information - which I am definitely willing to learn - and not all there is about Java and Swing.You must understand that at its core, your question is not about anything specific but rather it boils down to: "how to create an event driven program in Swing".
    The only reasonable answer to this is to send you to the Swing tutorials where, if you have the interest, ability, and inclination, you can learn the tools needed to do Swing and event programming. If you choose not to do this, no one in this forum can help you. Period.
    I hope this clarifies the situation enough, to allow someone to have a heart and point me in the right specific direction, even knowing that I might use this knowledge only once.And once again, I recommend that you hit the Sun Swing tutorials and start learning. Accept this and follow this recommendation and you will find success. If not, well,... it's your choice.
    Thank you in advance for any specific help.This is as specific as it's going to get at this stage. Much luck.

  • Listening for mouse move from JFrame?

    Hi
    I'm facing a problem when I wanted to use the JFrame's method: addMouseListener( ) to listening for the mouse whether it moves from a JFrame.
    In my code the JFrame containts three components:
    public class NFrame extends JFrame{
    JPanel contentPane = (JPanel)super.getContentPane();
    contentPane.setLayout(new BorderLayout());
    JMenuBar jMenubar=new jMenuBar();
    JTabbedPane jTabPane=new JTabbedPane(JTabbedPane.LEFT,JTabbedPane.WRAP_TAB_LAYOUT);
    JPanel bottonPane=new JPanel();
    contentPane.add(jMenuBar,BorderLayout.NORTH);
    contentPane.add(jTabPane,BorderLayout.CENTER);
    contentPane.add(bottomPane,BorderLayout.SOUTH);
    addMouseListener(new MouseAdapter() {
    public void mouseExited(MouseEvent e) {
    System.out.println("Mouse remove from JFrame");
    Because the JTabbedPane has a default mouse Listener, thus the mouse event is caught by jTabPane and the application does not print the above message when mouse moves from jTabPane.
    Could anybody give me some hints?
    Thanks!

    In this case there should probably not be a sleep()
    at all. You might want to do that sort of thing when
    you have a new thread whose job is to have
    non-GUI-related functionality (like a clock ticking,
    or sprites moving in a game independently). For
    standard GUI interaction, the GUI thread takes care
    of things and you don't need to wait at all. You're
    already waiting, basically.Oh, I see! The OP is doing quite useless things!
    I didn't see such f**lish things in the past!
    The OP should learn the basics for GUI and event mechanism.
    http://java.sun.com/docs/books/tutorial/uiswing/

  • JFrame (resize -- disallow certain size)

    Hi,
    I have some code that disallows a JFrame from being resized smaller than a certain width and height. (see code below)
    But my problem is that this code allows the frame to be resized for a split second before it resizes it back to the defined minimum. My question is:
    Is there a way I can get the frame to NOT be resized below a certain width and height? Hence, when the user grabs the corner of the JFrame and tries to make the window smaller than the minimum defined width and height, the frame just stops moving (i.e. it becomes rigid and not elastic).
    The main reason for this question is that everything works great most of the time but since the frame is allowed to resize to a very small size for a split second some of my components get squished. I have set their min, max, and preferred size too, but it still squishes them and they are un-squishable after it happens. This would never occur if there was a way to do what I propose above.
    public final static void lockInMinSize(final JFrame frame, int width, int height){
       final int origX = width;
       final int origY = height;
       frame.addComponentListener(new ComponentAdapter() {
          public void componentResized(ComponentEvent event) {
             frame.setSize((frame.getWidth() < origX) ? origX : frame.getWidth(),
                 (frame.getHeight() < origY) ? origY : frame.getHeight());
    }

    The main reason for this question is that everything works great most
    of the time but since the frame is allowed to resize to a very small size
    for a split second some of my components get squished.As a rule, I place all of my panels into one large "content" JPanel. This content panel is then placed in a JScrollPane. It's the scroll pane that gets added to the JFrame's contentPane. The scroll policy (both horizontal and vertical) on the scrollPane is SCROLL_AS_NEEDED.
    After calling pack() on the frame, the frame comes up perfectly without visible scrollBars, since I've been diligent in giving each individual widget (JTextFields, JLists, etc.) a preferredSize.
    As the frame gets stretched, the fields adapt accordingly and still look fine. As the frame is shrunk, the fields squish only to their original positions. Anything more would cause the scrollBars kick in.
    So, I always size all of the individual fields, but never the panels or frames.
    Keep in mind that different layout managers rely on different sizes for the components. Since I use GridBag for the individual panels, I make sure to give each component a preferredSize
    I guess as an alternate, after construction is complete you could pack the frame, then call getSize to capture its "natural" size. Use this natural size for comparison in your componentResized method.
    Hope this helps. Good luck.

  • How to add JFrame within JFrame

    Hi,
    I want to add jFrame within JFrame just like JInternalFrame, But I don't want to use JInternalFrame.

    Im not really sure why you would want to do this, but what you could do is add the JFrame's contentPane to a JPanel, and then put it in the other one.
    So lets say you have two JFrame objects: frame1 and frame2
    JPanel frame2Content = new JPanel();
    frame2Content.add(frame2.getContentPane());
    frame1.getContentPane().add(frame2Content);Depending on your layout manager, that would allow you to put frame2's components, as a panel, somewhere in frame1.

  • Stop JPanel auto positioning and resizing in Netbeans

    Hi,
    I'm working on a Swing application in Netbeans. In my program I had several JPanels. At any one time, only one JPanel is visible.
    I dragged my JPanels to the JFrame in the Swing editor. Each time the user clicks on the switch function button, another JPanel should be displayed.
    However, the new panel does not display correctly. It remained at the position where I had dragged (randomly) on Netbeans, instead of the new size and location I set it to prior to setting it visible. I tried to tinker with it, and realized that Netbeans helped me reposition my JPanel back to its original position. For my function to work, I suspect I should disable auto positioning and resizing.
    How do I turn it off?
    Thanks in advance,
    eddy05

    eddy05 wrote:
    That's what the JComponent.setSize() and JComponent.setLocation() do right, to resize and relocate JComponents and its subclasses.This only sets the properties of that particular JComponent. The layout manager of the container that holds it can choose to use these properties or not depending on what layout manager is being used.
    I wanted to perform the above functions, but Netbeans' behaviour keeps interfering, hence my request on how the behaviour can be turned off =)By dropping a JPanel into your JFrame (the JFrame's contentPane actually), NetBeans is by default going to use the GroupLayout, and the properties of the JComponent noted above will be ignored. One solution alluded to above is to have the JFrame's contentPane use a null layout, but while this might work in the short run, in the long run it will hurt you. Better is to read up on the various layout managers available for your use in the Sun Swing tutorials and start to play with them in your code.

  • Please Help/ GUI Calculator

    I'm trying to create a GUI Calculator but cannot get my program to compile. Please could someone assistm, thanks.
    import java.io.*;
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class CalculatorFrame extends JFrame
         private Container contentPane;
         //The componenets used in the calculator
         private JTextField display;
         private JButton addition;
         private JButton subtract;
         private JButton multiply;
         private JButton divide;
         private JButton mod;
         private JButton enter;
         private JButton [] digits;
         //End of components
         //Integer representations for the arithmetic operations needed
         private final static int ADD = 1;
         private final static int SUB = 2;
         private final static int MUL = 3;
         private final static int DIV = 4;
         private final static int MOD = 5;
         //ENd of arithmethic operations
         //Integer holding the operator that the user requested
         private int op;
         //Boolean variable to help perform the calculations
         private boolean firstFilled;
         private boolean clearScreen;
         //Constructor for the class
         public CalculatorFrame()
         contentPane=new Container();
         this.setSize(400,300); //sets the size of the frame
         this.setTitle("MIS 222 Calculator"); //sets the title of the frame
         //allows the "X" box in the upper right hand corner to close the entire application
         this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         contentPane=this.getContentPane(); //gets the content pane
         //Methods
         addDisplay();
         addDigits();
         addDigitActionListeners();
         addOperation();
    private void addDisplay()
         JLabel displayLab = new JLabel("Answer");
         JPanel north = new JPanel();
         north.add(displayLab);
         contentPane.add(north, "North");
    //diplay was already declared above the constructor
         display = new JTextField(25);
    //adding the components to the panel
         north.add(displayLab);
         north.add(display);
    //adding the panel to frame's content pane
         contentPane.add(north, "North");
    //Declaring the global digits array
    private void addDigits()
         //Add 1 large panel to hold the 3 inner panels
         JPanel digPanel = new JPanel();
         //Set the panel's preferred size so that it will keep everything in line
         digPanel.setPreferredSize(new Dimension(200, 275));
         //Initialize the top 3 digits' JPanel and set its preferrd size
         JPanel topDigits = new JPanel();
         topDigits.setPreferredSize(new Dimension(200,60));
         //Initialize the middle 2 digits' JPanel and set its preferred size
         JPanel midDigits = new JPanel();
         midDigits.setPreferredSize(new Dimension(200,60));
         //Initialize the bottom digits' JPanel and set its preferred size
         JPanel botDigits = new JPanel();
         botDigits.setPreferredSize(new Dimension(200, 75));
         //Initialize the JButton array
         digits = new JButton[11];
         //Initialize each of the top Panel's digit buttons, and add it to the top panel
         for(int i=1; i<4; i++)
              String lab=(new Integer(i)).toString();
              digits=new JButton(lab);
              topDigits.add(digits[i]);
              //Adding the top Digit Panel to the overall digit panel
              digPanel.add(topDigits, BorderLayout.CENTER);
              //Adding the middle Digit Panel to the overall digit panel
              digPanel.add(midDigits, BorderLayout.CENTER);
              //Adding the bottom Digit Panel to the overall digit panel
              digPanel.add(botDigits, BorderLayout.CENTER);
              //Add the overall digit Panel to the Frame's contentpane
              contentPane.add(digPanel, BorderLayout.CENTER);
              //Method created to add the DigitAction Listeners
              addDigitActionListeners();
    //Method created to add all of the DigitActionListeners
    private void addDigitActionListeners()
              for(int i=0; i<10; i++)
                   digits[i].addActionListener(new DigitActionListener(i));
              digits[10].addActionListener(new DigitActionListener("."));
    //DigitActionListener class
    public class DigitActionListener implements ActionListener
         private String myNum;
         public DigitActionListener(int num)
              myNum=""+num;
         public DigitActionListener(String num)
              myNum=num;
         public void actionPerformed(ActionEvent e)
              if(display.getText().equals("Please enter a valid number")|| clearScreen)
                   clearScreen=false;
                   display.setText("");
    //OperatorActionListener class
    public void OpActionListener implements ActionListener
         private int myOpNum;
         public OpActionListener(int op)
              myOpNum=op;
         public void actionPerformed(ActionEvent e)
         {  //Checks to see if the user has already enterd a number
              if(!firstFilled)
              try{
                   //Parse the number entered
                   String number=display.getText();
                   dNum1=Double.parseDouble(number);
                   //Sets the flag for the firstFilled to true
                   firstFilled=true
                   //Sets the op variable so when the "Enter" button is pressed, it will know which operation to perform
                   op=myOpNum;
                   //Clears the textbox
                   display.setText("");
                   catch(Exception er)
                        display.setText("Please enter a valid number");
         //This is the second number being entered
              else{
                   try{
                        String number=display.getText();
                        String result;
                        dNum2=Double.parseDouble(number);
                        firstFilled=true;
                        op=myOpNum;
                        display.setText("");
                   catch(Exception er)
                        display.setText("Please enter a valid number");
    private void addOperation()
         JPanel opPanel=new JPanel();
         opPanel.setPreferredSize(new Dimension(75,200));
         JButton clear = new JButton("C");
         JButton addition = new JButton("+");
         JButton subtraction = new JButton("-");
         JButton multiply = new JButton("*");
         JButton divide = new JButton("/");
         JButton mod = new JButton("%");
         JButton enter = new JButton("Enter");
         addition.addActionListener(new OpActionListener(ADD));
         subtraction.addActionListener(new OpActionListener(SUB));
         multiply.addActionListener(new OpActionListener(MUL));
         divide.addActionListener(new OpActionListener(DIV));
         mod.addActionListener(new OpActionListener(MOD));
         clear.addActionListener(new ActionListener()
              public void actionPerformed(ActionEvent e)
                   display.setText("");
                   firstFilled=false;
         enter.addActionListener(new ActionListener()
              public void actionPerformed(ActionEvent e)
                   double result;
                   String answer="";
                   String number = display.getText();
                   dNum2 = Double.parseDouble(number);
                   dNum1=Double.parseDouble(number);
                   switch(op)
                        case ADD:
                             result = dNum1 + dNum2;
                             break;
                        case SUB:
                             result = dNum1 - dNum2;
                             break;
                        case MUL:
                             result = dNum1 * dNum2;
                             break;
                        case DIV:
                             result = dNum1 / dNum2;
                             break;
                        default:
                             result= -1.0;
                             break;
                        if(result==(int)result)
                             answer=(new Integer((int)result)).toString();
                        else
                             answer=(new Double(result)).toString();
                        display.setText(answer);
                        clearScreen=true;
                        firstFilled=false;
                        dNum1=0;
                        dNum2=0;
              opPanel.add(clear);
              opPanel.add(addition);
              opPanel.add(subtraction);
              opPanel.add(multiply);
              opPanel.add(divide);
              opPanel.add(mod);
              opPanel.add(enter);
              contentPane.add(opPanel, "East");
         //Creating the frame object
         public class CalculatorMain
              public void main(String[] args)
                   CalculatorFrame cf=new CalculatorFrame();
                   cf.show();
    ERRORS THAT I HAVE!!:
    javac calculatorframe.javacalculatorframe.java:150: '(' expected
    public void OpActionListener implements ActionListener
    ^
    calculatorframe.java:7: class CalculatorFrame is public, should be declared in a file named CalculatorFrame.java
    public class CalculatorFrame extends JFrame
    ^
    calculatorframe.java:54: cannot resolve symbol
    symbol : method addOperation ()
    location: class CalculatorFrame
    addOperation();
    ^
    3 errors
    >

    Hi, actually it's all written there:
    >
    ERRORS THAT I HAVE!!:
    javac calculatorframe.javacalculatorframe.java:150: '(' expected
    public void OpActionListener implements
    ActionListenerpublic void ... is part of a possible method signature. That's probably why the compiler expects '(' as this is need for a method.
    To define a class use:
    public class ... (or better: private class ..., if the class is not used outside of this file.
    ^
    calculatorframe.java:7: class CalculatorFrame is
    public, should be declared in a file named
    CalculatorFrame.java
    public class CalculatorFrame extends JFrame
    ^As it says, you defined a class CalculatorFrame in a file calculatorframe.java. But the file name should be the same as the class name (case sensitive). Java classes should start with capital letters, so rename the file to:
    CalculatorFrame.java
    calculatorframe.java:54: cannot resolve symbol
    symbol : method addOperation ()
    location: class CalculatorFrame
    addOperation();
    ^
    3 errors
    >You didn't declare the method 'addOperation' (-> cannot resolve symbol; which simbol: method addOperation (); where: location: class CalculatorFrame; you see it's all there)
    Note there is a method called 'addOperation' in the class OpActionListener, but not in CalculatorFrame.
    Note I didn't read the code, just the error messages. I hope this helps.
    -Puce

  • GUI Calculator

    Hello everyone! I'm trying to create a GUI Calculator but cannot get my program to compile. Please could someone assist me, thanks.
    import java.io.*;
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class CalculatorFrame extends JFrame
    private Container contentPane;
    //The componenets used in the calculator
    private JTextField display;
    private JButton addition;
    private JButton subtract;
    private JButton multiply;
    private JButton divide;
    private JButton mod;
    private JButton enter;
    private JButton [] digits;
    //End of components
    //Integer representations for the arithmetic operations needed
    private final static int ADD = 1;
    private final static int SUB = 2;
    private final static int MUL = 3;
    private final static int DIV = 4;
    private final static int MOD = 5;
    //ENd of arithmethic operations
    //Integer holding the operator that the user requested
    private int op;
    //Boolean variable to help perform the calculations
    private boolean firstFilled;
    private boolean clearScreen;
    //Constructor for the class
    public CalculatorFrame()
    contentPane=new Container();
    this.setSize(400,300); //sets the size of the frame
    this.setTitle("MIS 222 Calculator"); //sets the title of the frame
    //allows the "X" box in the upper right hand corner to close the entire application
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    contentPane=this.getContentPane(); //gets the content pane
    //Methods
    addDisplay();
    addDigits();
    addDigitActionListeners();
    addOperation();
    private void addDisplay()
    JLabel displayLab = new JLabel("Answer");
    JPanel north = new JPanel();
    north.add(displayLab);
    contentPane.add(north, "North");
    //diplay was already declared above the constructor
    display = new JTextField(25);
    //adding the components to the panel
    north.add(displayLab);
    north.add(display);
    //adding the panel to frame's content pane
    contentPane.add(north, "North");
    //Declaring the global digits array
    private void addDigits()
    //Add 1 large panel to hold the 3 inner panels
    JPanel digPanel = new JPanel();
    //Set the panel's preferred size so that it will keep everything in line
    digPanel.setPreferredSize(new Dimension(200, 275));
    //Initialize the top 3 digits' JPanel and set its preferrd size
    JPanel topDigits = new JPanel();
    topDigits.setPreferredSize(new Dimension(200,60));
    //Initialize the middle 2 digits' JPanel and set its preferred size
    JPanel midDigits = new JPanel();
    midDigits.setPreferredSize(new Dimension(200,60));
    //Initialize the bottom digits' JPanel and set its preferred size
    JPanel botDigits = new JPanel();
    botDigits.setPreferredSize(new Dimension(200, 75));
    //Initialize the JButton array
    digits = new JButton[11];
    //Initialize each of the top Panel's digit buttons, and add it to the top panel
    for(int i=1; i<4; i++)
    String lab=(new Integer(i)).toString();
    digits=new JButton(lab);
    topDigits.add(digits);
    //Adding the top Digit Panel to the overall digit panel
    digPanel.add(topDigits, BorderLayout.CENTER);
    //Adding the middle Digit Panel to the overall digit panel
    digPanel.add(midDigits, BorderLayout.CENTER);
    //Adding the bottom Digit Panel to the overall digit panel
    digPanel.add(botDigits, BorderLayout.CENTER);
    //Add the overall digit Panel to the Frame's contentpane
    contentPane.add(digPanel, BorderLayout.CENTER);
    //Method created to add the DigitAction Listeners
    addDigitActionListeners();
    //Method created to add all of the DigitActionListeners
    private void addDigitActionListeners()
    for(int i=0; i<10; i++)
    digits.addActionListener(new DigitActionListener(i));
    digits[10].addActionListener(new DigitActionListener("."));
    //DigitActionListener class
    public class DigitActionListener implements ActionListener
    private String myNum;
    public DigitActionListener(int num)
    myNum=""+num;
    public DigitActionListener(String num)
    myNum=num;
    public void actionPerformed(ActionEvent e)
    if(display.getText().equals("Please enter a valid number")|| clearScreen)
    clearScreen=false;
    display.setText("");
    //OperatorActionListener class
    public void OpActionListener implements ActionListener
    private int myOpNum;
    public OpActionListener(int op)
    myOpNum=op;
    public void actionPerformed(ActionEvent e)
    { //Checks to see if the user has already enterd a number
    if(!firstFilled)
    try{
    //Parse the number entered
    String number=display.getText();
    dNum1=Double.parseDouble(number);
    //Sets the flag for the firstFilled to true
    firstFilled=true
    //Sets the op variable so when the "Enter" button is pressed, it will know which operation to perform
    op=myOpNum;
    //Clears the textbox
    display.setText("");
    catch(Exception er)
    display.setText("Please enter a valid number");
    //This is the second number being entered
    else{
    try{
    String number=display.getText();
    String result;
    dNum2=Double.parseDouble(number);
    firstFilled=true;
    op=myOpNum;
    display.setText("");
    catch(Exception er)
    display.setText("Please enter a valid number");
    private void addOperation()
    JPanel opPanel=new JPanel();
    opPanel.setPreferredSize(new Dimension(75,200));
    JButton clear = new JButton("C");
    JButton addition = new JButton("+");
    JButton subtraction = new JButton("-");
    JButton multiply = new JButton("*");
    JButton divide = new JButton("/");
    JButton mod = new JButton("%");
    JButton enter = new JButton("Enter");
    addition.addActionListener(new OpActionListener(ADD));
    subtraction.addActionListener(new OpActionListener(SUB));
    multiply.addActionListener(new OpActionListener(MUL));
    divide.addActionListener(new OpActionListener(DIV));
    mod.addActionListener(new OpActionListener(MOD));
    clear.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    display.setText("");
    firstFilled=false;
    enter.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    double result;
    String answer="";
    String number = display.getText();
    dNum2 = Double.parseDouble(number);
    dNum1=Double.parseDouble(number);
    switch(op)
    case ADD:
    result = dNum1 + dNum2;
    break;
    case SUB:
    result = dNum1 - dNum2;
    break;
    case MUL:
    result = dNum1 * dNum2;
    break;
    case DIV:
    result = dNum1 / dNum2;
    break;
    default:
    result= -1.0;
    break;
    if(result==(int)result)
    answer=(new Integer((int)result)).toString();
    else
    answer=(new Double(result)).toString();
    display.setText(answer);
    clearScreen=true;
    firstFilled=false;
    dNum1=0;
    dNum2=0;
    opPanel.add(clear);
    opPanel.add(addition);
    opPanel.add(subtraction);
    opPanel.add(multiply);
    opPanel.add(divide);
    opPanel.add(mod);
    opPanel.add(enter);
    contentPane.add(opPanel, "East");
    //Creating the frame object
    public class CalculatorMain
    public void main(String[] args)
    CalculatorFrame cf=new CalculatorFrame();
    cf.show();
    ERRORS THAT I HAVE!!:
    javac calculatorframe.javacalculatorframe.java:150: '(' expected
    public void OpActionListener implements ActionListener
    ^
    calculatorframe.java:7: class CalculatorFrame is public, should be declared in a file named CalculatorFrame.java
    public class CalculatorFrame extends JFrame
    ^
    calculatorframe.java:54: cannot resolve symbol
    symbol : method addOperation ()
    location: class CalculatorFrame
    addOperation();
    ^
    3 errors
    >

    Here I did this for someone in the 'new to' forum about 2 weeks back. They had some really awful code they say they got from a java book -cannot recall the author, but I do know his work should be burned and the person executed with a mercy killing (I still haven't recovered from the shock of this and I think most of the regular contributors in these forums could write FAR BETTER books than this clown)
    Hmm... I do rant sometimes. Erm, you're welcome - this is their rebuild;-import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Calculator extends JFrame implements ActionListener{
       JButton []buttons = new JButton[25];
         private JTextField display= new JTextField("0.0",12);
       String status = "    Status : ";
       JLabel label = new JLabel(status);
         private double sum    = 0.0d;
         private String nums   = "";
         private double arg    = 0.0d;
         private double tot    = 0.0d;
         private boolean start = true,div,mult,add,sub;
         private String memory = "0";
       java.text.DecimalFormat df=new java.text.DecimalFormat("#,##0.0####");
       Font f = new Font("Times New Roman", Font.BOLD,14);
       Color midBlue  = new Color(20, 15, 140);
    public Calculator(){
         super();
         setTitle("Java Calculator");
       JPanel mainPan = new JPanel();
       mainPan.setLayout(new BorderLayout() );
       JPanel textPanel = new JPanel();
       textPanel.setBackground(midBlue);
       textPanel.setLayout(new BorderLayout());
       display.setHorizontalAlignment(JTextField.RIGHT);
       label.setForeground(Color.white);
       display.setFont(new Font("",0,14));
       display.setEditable(false);
       display.setBackground(Color.white);
       label.setFont(new Font("Arial",0,12));
       JPanel emptyPan = new JPanel();
       emptyPan.setBackground(midBlue);
       JPanel emptyP1 = new JPanel();
       emptyP1.setBackground(midBlue);
       JPanel emptyP2 = new JPanel();
       emptyP2.setBackground(midBlue);
       textPanel.add("North", label);
       textPanel.add("Center", display);
       textPanel.add("South",emptyPan );
       textPanel.add("East",emptyP1 );
       textPanel.add("West",emptyP2 );
       JPanel butPanel = new JPanel();
       butPanel.setBackground(midBlue);
       butPanel.setLayout(new GridLayout(5, 5, 10, 10));
       String []str = {"","","","CE","C","1","2","3","/","RM","4","5","6",
                      "*","CM","7","8","9","+","M+","0",".","=","-","M-"};
       for(int j=0; j<25; j++) {
          if(j<3) {
             buttons[j] = new JButton(str[j]);
             butPanel.add(buttons[j]);
          else {
             buttons[j] = new JButton(str[j]);
             buttons[j].addActionListener(this);
             buttons[j].setFont(f);
               buttons[j].setBorder(BorderFactory.createRaisedBevelBorder());
             butPanel.add(buttons[j]);
       JPanel emptyPan1 = new JPanel();
       emptyPan1.setBackground(midBlue);
       JPanel emptyPan2 = new JPanel();
       emptyPan2.setBackground(midBlue);
       JPanel emptyPan3 = new JPanel();
       emptyPan3.setBackground(midBlue);
       mainPan.add("North", textPanel);
       mainPan.add("Center", butPanel);
       mainPan.add("South", emptyPan1);
       mainPan.add("East", emptyPan2);
       mainPan.add("West", emptyPan3);
       getContentPane().add(mainPan);
    public void actionPerformed(ActionEvent e){
       String s = e.getActionCommand();
          if ((s.equals("1"))||(s.equals("2"))||(s.equals("3"))||(s.equals("4"))
            ||(s.equals("5"))||(s.equals("6"))||(s.equals("7"))||(s.equals("8"))
            ||(s.equals("9"))||(s.equals("0"))||(s.equals("."))){
               nums += s;
               display.setText(nums);
          if (s.equals("/")){
             arg=Double.parseDouble(display.getText());
             nums="";
             div=true;
          if (s.equals("*")){
             arg=Double.parseDouble(display.getText());
             nums="";
             mult=true;
          if (s.equals("-")){
             arg=Double.parseDouble(display.getText());
             nums="";
             sub=true;
          if (s.equals("+")){
             arg=Double.parseDouble(display.getText());
             nums="";
             add=true;
          if (s.equals("=")){
             tot=Double.parseDouble(display.getText());
             if(div)tot=arg/tot;
             if(mult)tot=arg*tot;
             if(add)tot=arg+tot;
             if(sub)tot=arg-tot;
             display.setText(df.format(tot));
             div=mult=sub=add=false;
    public static void main(String[] args){
        Calculator frame = new Calculator();
        frame.setVisible(true);
        frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
          Image onFrame = Toolkit.getDefaultToolkit().getImage("flag.gif") ;
        frame.setIconImage(onFrame);
        frame.setLocation(300, 240);
        frame.setResizable(false);
        frame.pack();
    }

  • Swapping JPanels?

    I have a question regarding JPanels in a JFrame. What I'm wondering if the source of the JPanel can be changed on an action event. For example say I have two instances of a JPanel, is it possible to switch between the two in the same JFrame on a button event?
    Thanks for your time.

    Uhm...consider that when dealing with something like a JFrame, the contentPane is the second top-most layer (sits below the glassPane). So simply doing JFrame.add() will not be enough. You can however, call JFrame.getContentPane() and then issue an add() method to the container returned; for example JFrame.getContentPane().add(your panel);However you wind up with an extra layer since what you have is a container (the content pane) that contains a panel (panel1). In reality, panel1 is meant to hold the actual content, so setting it as the contentPane reduces the number of layers. It also removes the need to remember to remove(oldPanel) before calling add(newPanel).
    So rather than having to replace via myFrame.getContentPane().remove(panel1);
    myFrame.getContentPane.add(panel2);You'd simply do it viamyFrame.setContentPane(panel2);//the previous contentPane is de-referrenced

Maybe you are looking for

  • OracleVM Manager template 2.2.0 trying change the host name

    Hi, I have installed the OracleVM Manager 2.2.0 template into an OraclVM Server 2.2.1. Reading the OracleVM Manager 2.2.0 install instructions "Readme_for_Media_Pack_B59146-01.txt" and doing the installation in the interview area, I am asked to provi

  • Spool recepient issue in ECC 6.0

    We have a scheduled background job ZD510_FILL_RATE_REPORT_ECC6.  This produces a reports and sends to a distribution group. When the group receives the report in their inbox they open it and it only shows 16 pages of the 33 pages. The user replied th

  • Is it possible to call an executable of compiled c code from within LabVIEW?

    I can compile 'genesis' (the name of the code we are planning to use) under unix: it produces an executable which can be linked to user-constructed c files which contain specific crossover and/or mutation strategies, so once a user has the executable

  • 6 plus not appearing in itunes

    Just got my new 6 plus.  When I connect it via USB, it begins charging fine, but when I launch iTunes, it doesn't show up in the top left the way it should.  I'm running off Windows 7.  Restarted my computer.  iTunes and my phone both have the most r

  • I can't buy item in game for HKD 448

    i want to buy a item (HKD 448) in game called puzzle and dragon which i downloaded in Japan itune store But it iwas failed and said that i need to contact itune store