Show new Jframe in BorderLayout.CENTER

I write one JFrame with BorderLayout and Jmenu when I click Menu > Test I wana show me one new Jframe IN BorderLayout.CENTER.
new Frame2(); with BorderLayout.CENTER. Plz Can sobody show me how can I do this.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
    class JFrameIconScrollPane extends JFrame {
         private JLabel label1, label2, label3, label4, label5;
         private JMenu menu;
         private JMenuItem menuItemTest;
        JFrameIconScrollPane()
             super("JFrame Icon ScrollPane");
             setLayout(new BorderLayout(5, 5));
             label1 = new JLabel("---CENTER---");
            add(label1, BorderLayout.CENTER);
            label1.setOpaque(true);
             label1.setBackground(Color.RED);
            label2 = new JLabel("---NORTH---"); 
            add(label2, BorderLayout.NORTH);
            label3 = new JLabel("--- WEST ---");
            add(label3, BorderLayout.WEST);
            label4 = new JLabel("--- EAST ---");
            add(label4, BorderLayout.EAST);
            label5 = new JLabel("--- SOUTH ---");
            add(label5, BorderLayout.SOUTH);
      JMenuBar menuBar = new JMenuBar();
      menu = new JMenu( "Menu" );
      menuBar.add(menu);
      menuItemTest = new JMenuItem( "TEST" );
      menu.add(menuItemTest);     
// (creates a listener)
      TestListener theTestListener = new TestListener();
      menuItemTest.addActionListener(theTestListener);
       setJMenuBar(menuBar); // set menu bar for this application               
        class TestListener implements ActionListener
             public void actionPerformed(ActionEvent event)
                  new Frame2();
       public static void main(String args[])
              JFrameIconScrollPane j = new JFrameIconScrollPane();
              j.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             j.setSize(900, 600);
             j.setVisible(true);
             j.setLocationRelativeTo(null);
and new JFrame
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
    class Frame2 extends JFrame{ 
         private JLabel label1, label2, label3, label4, label5;
        Frame2() {
           setLayout(new BorderLayout(5, 5));
             label1 = new JLabel("Frame 2---CENTER---");
            add(label1, BorderLayout.CENTER);
            label1.setOpaque(true);
             label1.setBackground(Color.RED);
            label2 = new JLabel("Frame 2---NORTH---"); 
            add(label2, BorderLayout.NORTH);
            label3 = new JLabel("Frame 2--- WEST ---");
            add(label3, BorderLayout.WEST);
            label4 = new JLabel("Frame 2--- EAST ---");
            add(label4, BorderLayout.EAST);
            label5 = new JLabel("Frame 2--- SOUTH ---");
            add(label5, BorderLayout.SOUTH);
                setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                setSize(360, 350);
                setVisible(true);
                setLocationRelativeTo(null);
    }

this may be close to what you're trying to do, using a CardLayout.
clicking the menuItem changes the entire display.
if you just want the center part to change, a slight modification is required.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
class JFrameIconScrollPane
  private JLabel label1, label2, label3, label4, label5;
  private JMenu menu;
  private JMenuItem menuItemTest;
  CardLayout cl = new CardLayout();
  JFrame f;
  JFrameIconScrollPane()
    f = new JFrame("JFrame Icon ScrollPane");
    f.getContentPane().setLayout(cl);
    JPanel p = new JPanel();
    p.setLayout(new BorderLayout(5, 5));
    label1 = new JLabel("---CENTER---");
    p.add(label1, BorderLayout.CENTER);
    label1.setOpaque(true);
    label1.setBackground(Color.RED);
    label2 = new JLabel("---NORTH---");
    p.add(label2, BorderLayout.NORTH);
    label3 = new JLabel("--- WEST ---");
    p.add(label3, BorderLayout.WEST);
    label4 = new JLabel("--- EAST ---");
    p.add(label4, BorderLayout.EAST);
    label5 = new JLabel("--- SOUTH ---");
    p.add(label5, BorderLayout.SOUTH);
    f.getContentPane().add("0",p);
    f.getContentPane().add("1",new Frame2().getFrame2Panel());
    JMenuBar menuBar = new JMenuBar();
    menu = new JMenu( "Menu" );
    menuBar.add(menu);
    menuItemTest = new JMenuItem( "Other Panel" );
    menu.add(menuItemTest);
    TestListener theTestListener = new TestListener();
    menuItemTest.addActionListener(theTestListener);
    f.setJMenuBar(menuBar);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.setSize(900, 600);
    f.setLocationRelativeTo(null);
    f.setVisible(true);
  class TestListener implements ActionListener
    public void actionPerformed(ActionEvent event)
      cl.next(f.getContentPane());
  public static void main(String args[]){JFrameIconScrollPane j = new JFrameIconScrollPane();}
class Frame2
  private JLabel label1, label2, label3, label4, label5;
  public JPanel getFrame2Panel()
    JPanel p = new JPanel();
    p.setLayout(new BorderLayout(5, 5));
    label1 = new JLabel("Frame 2---CENTER---");
    p.add(label1, BorderLayout.CENTER);
    label1.setOpaque(true);
    label1.setBackground(Color.RED);
    label2 = new JLabel("Frame 2---NORTH---");
    p.add(label2, BorderLayout.NORTH);
    label3 = new JLabel("Frame 2--- WEST ---");
    p.add(label3, BorderLayout.WEST);
    label4 = new JLabel("Frame 2--- EAST ---");
    p.add(label4, BorderLayout.EAST);
    label5 = new JLabel("Frame 2--- SOUTH ---");
    p.add(label5, BorderLayout.SOUTH);
    p.setPreferredSize(new Dimension(360, 350));
    return p;
}

Similar Messages

  • How to print the JFrame In The Center Of The Page?

    hi there in the following code iam trying to print a JFrame
    but the frame appear in the printed page at the top left
    and i want it to appear in the top center of the page
    how to do that?
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.print.*;
    class PrintUIWindow implements Printable, ActionListener {
        JFrame frameToPrint;
        public int print(Graphics g, PageFormat pf, int page) throws
                                                            PrinterException {
            if (page > 0) {
                return NO_SUCH_PAGE;
            Graphics2D g2d = (Graphics2D)g;
            g2d.translate(pf.getImageableX(), pf.getImageableY()-55);
            frameToPrint.print(g);
            return PAGE_EXISTS;
        public void actionPerformed(ActionEvent e) {
             PrinterJob job = PrinterJob.getPrinterJob();
             job.setPrintable(this);
             boolean ok = job.printDialog();
             if (ok) {
                 try {
                      job.print();
                 } catch (PrinterException ex) {
        public PrintUIWindow(JFrame f) {
            frameToPrint = f;
        public static void main(String args[]) {
            UIManager.put("swing.boldMetal", Boolean.FALSE);
            JFrame f = new JFrame("Print UI Example");
            f.addWindowListener(new WindowAdapter() {
               public void windowClosing(WindowEvent e) {System.exit(0);}
            JLabel label1=new JLabel("Selling Bill",JLabel.CENTER);
            JLabel label2=new JLabel("Customer Name :Mahmoud Saleh       ",JLabel.LEFT);
            JLabel label3=new JLabel("Buying Date :29/8/2008             ",JLabel.LEFT);
            JLabel label4=new JLabel("Book Buyed :Java Printing          ",JLabel.LEFT);
            JLabel label5=new JLabel("Number : 6 Copies                  ",JLabel.LEFT);
            JLabel label6=new JLabel("Total Price :600 $                 ",JLabel.LEFT);
            label1.setFont(new Font("Courier New", Font.BOLD, 13));
            label2.setFont(new Font("Courier New", Font.BOLD, 13));
            label3.setFont(new Font("Courier New", Font.BOLD, 13));
            label4.setFont(new Font("Courier New", Font.BOLD, 13));
            label5.setFont(new Font("Courier New", Font.BOLD, 13));
            label6.setFont(new Font("Courier New", Font.BOLD, 13));
            JButton printButton = new JButton("Print This Window");
            printButton.addActionListener(new PrintUIWindow(f));               
            JPanel panel=new JPanel();
            panel.setLayout(new GridLayout(6,1));
            panel.add(label1);
            panel.add(label2);
            panel.add(label3);
            panel.add(label4);
            panel.add(label5);
            panel.add(label6);
            f.setSize(300,300);       
            f.setLocationRelativeTo(null);       
            f.add(panel,BorderLayout.CENTER);
            f.add(printButton,BorderLayout.SOUTH);
            panel.setBackground(Color.WHITE);
            f.setResizable(false);
            f.setVisible(true);
    }

    First_knight wrote:
    please tell me am i thinking right
    about this method: setImageableArea(.....)
    public void setImageableArea(double x, double y,  double width, double height);
    like I said, I've tried this method and it doesn't seem to do anything.
    the width=the JFrame Width,the height=the JFrame Height right?actually, when printing, 72 points (printing version of pixels) = 1 inch, so to do WYSIWYG, you need width = JFrameWidth * 72.0 / Toolkit.getToolkit().getScreenResolution. Ditto with height
    upper left beginningx(0)---------------------------200--------------------------------600-----------------------------------y(1000)upper right beginningyou need to do something like PageSetup.getImageableX and do Graphics.translate(x,y);
    also, if your page width = 720, that = 10 inches - that's a wide page (unless its in landscape)
    so if i want the JFrame To Be In The Center Of The Page I Would Choose From x=200 ,y=600 depending that frame width is 400Actually, it would be 300 - 700 in your example
    Because when i tried to use:setImageableArea(200, 600,  400, 200);like the above code
    no changes occurs in the printed paperYes. You need to offset the Graphics object

  • Is it possible to set Borderlayout center part minimum with or height?

    I want to preserve some space for the center part, but when the full panel size is small, the other parts will occupy most of the space and the center will be squeezed to very small space. I am wondering whether there is any method to preserve some space for center and maybe set a maximum size for south or other parts.

    Using a JFrame as the root component in a 1.6+ JRE, there is this way..
    import java.awt.*;
    import javax.swing.*;
    import java.io.File;
    import java.net.URL;
    class FrameMinimumSizeTextArea {
      public static void main(String[] args) {
        Runnable r = new Runnable() {
          public void run() {
            try {
              JFrame f = new JFrame("Minimum Size Set");
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JPanel p = new JPanel(new BorderLayout(3,3));
              File file = new File("FrameMinimumSizeTextArea.java");
              JEditorPane jep = new JEditorPane(file.toURI().toURL());
              jep.setPreferredSize(new Dimension(400,400));
              JScrollPane sp = new JScrollPane(jep);
              p.add(sp);
              f.setContentPane(p);
              f.pack();
              // this is the 1.6+ magic
              f.setMinimumSize( f.getSize() );
              f.setLocationByPlatform(true);
              f.setVisible(true);
            } catch(Exception e) {
              e.printStackTrace();
        EventQueue.invokeLater(r);
    }

  • 3rd party app alerts no longer show up in the notification center

    I upgraded my iPhone 5 to iOS7 last week and ever since alerts for 3rd party apps (like gmail and others) haven't been showing up in the notification center.  I've checked my settings for both the notification center and for my individual apps to make sure they weren't reset, made sure my apps were up to date (not all of them have had updates since iOS7 was released but some definitely have), tried toggling them on and off and rebooting, but so far nothing has helped.  The banner alerts work, but nothing pops up in the notifications.  Has anyone else experienced this or have any other ideas how to fix it?
    I've generally been pretty pleased with the new version of iOS, but I'm hating everything about the changes made to the notification center.  Even if I do get my notifications to work again, I hate that we're forced to have that "Today" tab even if you switch the summaries off!  I like the unified page from iOS6 much better.

    Hi cyn999!
    I have an article that can help address this question:
    iOS: Understanding notifications
    http://support.apple.com/kb/HT3576
    As you can see in the screenshot, the weather does show up in the notification center, but it is in text form instead of icon form in iOS 7. Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • How can I know the size of a JViewport laid out in BorderLayout.CENTER?

    I have a JPanel inside a JScrollPane. The scroll pane is laid out inside of BorderLayout.CENTER. I need to know the size of the JViewport to do stuff like centering and zooming.
    Where can I find the size? All these methods return 0 values for X and Y:
    myScrollPane.getViewport().getSize()
    myScrollPane().getSize()
    myScrollPane.getHorizontalScrollbar().getValue()
    Yes, even the scrollbars won't give me any values! It's all because of the BorderLayout!
    Any ideas? Thanks.

    Sounds like you are accessing the sizes before the views are realized (that is before a call to frame.pack()/show()) They are available only after the layoutManager had a go on it. What is available earlier are preferred/min/max, though.
    Greetings
    Jeanette

  • Please help me regarding VAR customer create new message in work center

    Hi, guru
    I have encountered with a problem regarding, for example, when VAR customer 'X' create new message in work center and specify message processor to partner no '1'  (partner no 1 has employee role with username 'A' in BP) but when username 'A' log on and open work center via SAPGUI to find a new message created to him, username 'A' did't got a new message from VAR customer 'X' whom choose specify message processor to him and work center show My Messages (0)
    why, do I set something config wrong ?
    Any recommend would be appreciated
    thank you very much

    Hi
    1) can you check in CRM_DNO_MONITOR and oepn the ticket , whethere the processor name appearing in the ticket?
    2) Does your customer assign the processor manually or any automatic support team assgnemt, if so please verify your automatic support tean assignment against the blog
    [/people/dolores.correa/blog/2007/10/06/service-desk-support-team-determination|/people/dolores.correa/blog/2007/10/06/service-desk-support-team-determination]
    3)Might be an authoraisation issue of the Processor. assign SAP_ALL access and check again
    [Service desk roles|http://help.sap.com/saphelp_sm32/helpdata/en/0a/f12c41ab78f66fe10000000a1550b0/content.htm]
    Thanks,
    Jansi

  • Get size of BorderLayout.CENTER

    I have a gif that's set to the center of a Panel using BorderLayout.
            pic = new ImageIcon(gifName);
            image = pic.getImage();
            imageWidth = image.getWidth(null);
            imageHeight = image.getHeight(null);
            label = new JLabel(){
                        public void paintComponent(Graphics g){
                            super.paintComponent(g);
                            double width = getWidth();
                            double height = getHeight();
                            Insets insets = getInsets();
                            int hInsets = insets.left + insets.right;
                            int vInsets = insets.top + insets.bottom;
                            // scale up to full image size
                            double wScale = width/(imageWidth + hInsets);
                            double hScale = height/(imageHeight + vInsets);
                            double scale = (wScale > hScale ? wScale < 1 ? wScale : 1 : hScale < 1 ? hScale : 1);
                            g.drawImage(image, 0, 0, (int)(imageWidth * scale), (int)(imageHeight * scale), this);
            };the gif scales dynamically with the size of the frame, the problem is that the gif would be fully visible if it were just added to the contentPane of the frame, but it's added to the CENTER. to the SOUTH i have a 3 x 2 GridLayout of TextFields, and this "covers up" the bottom of the gif. how do i set the gif to only extend to the bottom of the CENTER portion of the panel, instead of the bottom of the frame it is in?

    Ok, i got everything displaying now, but i still have the residual problem that when i open an internal frame with a circle in it, and then open an internal frame with a rectangle in it--the circle becomes stretched horizontally. to explain via an example:
    -- i open a circle image that is inscribed within a 10 x 10 internal frame. the circle fills up the frame.
    -- i then open a rectangle image that is inscribed in a 20 x 10 internal frame. the image of the circle now takes on the width:height ratio of the rectangle. furthermore, when i initially open these images, they are displayed at 1/2 the dimensions of the actual .GIF file, but after opening this second frame, the first one (after i resize a little to update the image) takes on the max size of the most recently opened one (rectangle in this case).
    So my circle image is 600 x 600. i open it--it displays as 300 x 300. my rectangle image is 487 x 265. i open it and it displays at ~244 x 133 simultaneously my circle image now looks like an oval. i try to resize it and it jumps to 487 x 265. the reverse occurs if i open the rectangle first, then open the circlei.e. the rectangle assumes the size of the circle, and becomes a square. How do I fix this?
            toolPanel.setSize(new Dimension((int)(imageWidth*.5), (int)(imageHeight*.5)));    
            System.out.println("tool size--w x h: "+toolPanel.getWidth() + " "+toolPanel.getHeight());
            label = new JLabel(){
                        public void paintComponent(Graphics g){
                            super.paintComponent(g);
                            double panelWidth = toolPanel.getWidth();
                            double panelHeight = toolPanel.getHeight() - myPanel.getHeight(); //may need to stick myPanel above this code
                            double labelWidth = label.getWidth();
                            double labelHeight = label.getHeight();
                            System.out.println("pw: "+panelWidth+" ph: "+panelHeight+" lw: "+labelWidth+" lh: "+labelHeight);
                            double wScale = (panelWidth/imageWidth > 1 ? 1 : panelWidth/imageWidth);
                            double vScale = (panelHeight/imageHeight > 1 ? 1 : panelHeight/imageHeight);
                            double scale = (wScale < vScale ? wScale : vScale);
                            int x = (int)(labelWidth - (int)(imageWidth * scale))/2;
                            int y = (int)(labelHeight - (int)(imageHeight * scale))/2;
                            g.drawImage(image, x, y, (int)(imageWidth * scale), (int)(imageHeight * scale), this);                       
            setSize((int)((imageWidth*.5)), (int)(imageHeight*.5));//initial frame size, before any resizing is done              
            ComponentListener l = new ComponentAdapter() {
                double scale = ((imageWidth)/(double)(imageHeight)); //the -90 kind of works with circle
                public void componentResized(ComponentEvent e) {
                    Dimension size = getSize();
                    Insets insets = getInsets();
                    int hInsets = insets.left + insets.right;
                    int vInsets = insets.top + insets.bottom;
                    // height being resized
                    if(size.width/(double)size.height < scale && size.width < imageWidth + hInsets)
                        setSize((int)(size.height * scale), size.height);
                    // width being resized
                    if(size.width/(double)size.height > scale && size.height < imageHeight + vInsets)
                    //if(size.height < imageHeight + vInsets)
                        setSize(size.width, (int)(size.width / scale));
                    // max frame size constrained to imageSize
                    if(size.width > imageWidth + hInsets || size.height > imageHeight + vInsets)
                        setSize(imageWidth + hInsets, imageHeight + vInsets);
            addComponentListener(l);       
            setOpaque(false);
            //Set the window's location.
            setLocation(xOffset*openFrameCount, yOffset*openFrameCount); //changes location for each new JIF
            //scroll.setViewportView(label);
            toolPanel.add(label, BorderLayout.CENTER);
            toolPanel.add(myPanel, BorderLayout.SOUTH);       
            toolPanel.setOpaque(false); //works
            contentPane.add(toolPanel);

  • Proper Way to Call a New JFrame

    Hello,
    I have a main application JFrame. There's a menu bar with an item Edit-->Settings. When I click on Settings, I want a new JFrame to open up for a SettingsGUI which is contained in another class. What is the proper way to do this?
    In all the examples, the createAndShowGUI() method is always private. In the comments it says "For thread safety, this method should be invoked from the event-dispatching thread." What does that mean exactly?
    Thank you.

    GetInfoFrame.java
    again produces a JPanel, mainPanel that's available via getMainComponent()
    import java.awt.Dimension;
    import java.awt.Window;
    import java.awt.Dialog.ModalityType;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JDialog;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    public class GetInfoFrame
      private static final Dimension FRAME_SIZE = new Dimension(400, 200);
      private JPanel mainPanel = new JPanel();
      private JTextField textfield = new JTextField(10);
      private GetInfoDialog infoDialog = new GetInfoDialog();
      public GetInfoFrame()
        textfield.setEditable(false);
        JButton openDialogBtn = new JButton("Show Get Info Dialog");
        openDialogBtn.addActionListener(new ActionListener()
          public void actionPerformed(ActionEvent e)
            showGetInfoDialog();
        mainPanel.setPreferredSize(FRAME_SIZE);
        mainPanel.add(textfield);
        mainPanel.add(openDialogBtn);
      protected void showGetInfoDialog()
        Window windowAncestor = SwingUtilities.getWindowAncestor(mainPanel);
        // create my dialog when I need it
        JDialog dialog = new JDialog(windowAncestor, "Info Dialog", ModalityType.APPLICATION_MODAL);
        // add my infoDialog's JPanel into the dialog's contentPane
        dialog.getContentPane().add(infoDialog.getMainComponent());
        dialog.pack();
        dialog.setLocationRelativeTo(null);
        dialog.setVisible(true);
        // when dialog returns, extract the text from it and set JFrame's text to same
        String text = infoDialog.getText();
        textfield.setText(text);
      public JComponent getMainComponent()
        return mainPanel;
    }GetnInfoFrameTest.java
    creates a small test program that creates a JFrame, places JPanel from above into it
    import javax.swing.JFrame;
    class GetInfoFrameTest
      public static void main(String[] args)
        java.awt.EventQueue.invokeLater(new Runnable()
          public void run()
            JFrame frame = new JFrame("GetInfoFrame");
            // create new GetInfoFrame object and place its JPanel into
            // frame's contentPane
            frame.getContentPane().add(new GetInfoFrame().getMainComponent());
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
    }

  • Open/Save Dialog does not show new files?

    Say you are working on a logic file in a folder and you have
    a few audio and movie files in that folder, and you launch
    Logic and via the open/save dialog window you add a few
    files to your song and in that dialog window you can see
    all the files in that folder.
    Then, in the Finder you add a few more files and movies to
    that folder and again use the open/save dialog window to
    add more files BUT the new files you added since launching
    logic are NOT SHOWN in the dialog window ! ?
    What's the deal with that?
    Every other app can show files added since the launch of the
    application, why not Logic?
    PowerBook G4 1GHz   Mac OS X (10.3.9)  

    project manager
    um, yeah.
    Should not need the project manager simply to see new files added to a directory in a Open/Save dialog window since last opening the app.
    I did a scan, a extended scan, opened all the little turn down arrows of the
    full path to the directory I knew there to be the new files and yes, Logic
    shows them there in the "Project manager".
    BUT Logic still does not show the files in the Open/Save dialog windows.
    This is strange because even simple app like TextEdit can show
    new files in it's Open/Save dialog function windows without the need of
    a project manager.
    I have to quit and re-launch each time to see any new files?

  • Facebook notifications won't show up on the notification center?

    Facebook notifications won't show up on the notification center?

    I have the same problem since i upgrade my mid 2012 macbook pro from mountain lion to maverics.In mountain lion all facebook notifications were show up in the notifications area.I saw many videos in youtube and read many articles in internet how to fix this problem.My facebook account is active and checked in the system preferences.I dont know what else to try.Any help???
    P.S
    All other notifications(itunes,calendar,etc) working fine.

  • How do I get a "transfer images" button to show up in the solution center?

    How do I get a "transfer images" button to show up in the solution center for my officejet 6500 709a on XP?
    Scan buttons are displayed and work, as does print.

    What installing the twain plug-in, you mean? Go to your applications folder. Find the Adobe Photoshop Elements 11 folder. Look in there for a folder called support files, then for a folder called optional plugins. In the Optional Plugins folder, there should be a folder called ImportModules. Just drag that from the Optional Plugins folder to the regular Plugins folder.
    This will be infinitely easier to do if you put your applications folder window into list view, not the default icon view. To do that, click this button at the top of the window:

  • Getting a permission error clicking "Show new posts since last visit".

    If I click "Show new posts since last visit" after I have read a thread, I will get a "You do not have permission to access this page.". This is starting to get a bit annoying. Please look into it.
    Birger

    http://bbs.archlinux.org/viewtopic.php?id=83076

  • Can anybody help me? How to set the position of a pop up window(new Jframe)

    in my program, there is a functionality such as this: user clicks the button and then system generate a new window(new Jframe),
    but the posistion in the screen where the window was generated is fixed, everytime it pops up at the left side of my main frame, I am just wondering is there a way of seting the posistion of the window which will pop up?
    thanks for your reply

    Sure. Read the JFrame API. Look at all the setXXX methods and you will find one that allows you to set the location of the frame on the desktop.

  • How do I get facebook birthdays displayed in my calendar to show up in the notification center?

    How do I get facebook birthdays displayed in my calendar to show up in the notification center?

    Thank You! The birthdays are still showing up in the drop down menue. Between the stocks and the weather widgets. Is there a fix for that???

  • TS3276 I have an old version, 10.5. A few days ago, my Inbox stopped showing new messages received, although they are coming in and show under Messages on Server.  How can I get the messages on the server to go to my Inbox so I can access them?

    I have an old version, 10.5. A few days ago, my Inbox stopped showing new messages received, although they are coming in and show under Messages on Server.  How can I get the messages on the server to go to my Inbox so I can access them?

    Make sure Mail is selected in System Preferences > iCloud

Maybe you are looking for

  • IPod Touch "already synced with another library", Corrupt Backup?

    I plugged my iPod into the only PC it's ever been plugged into today, and it came up with "This Ipod is already synced with another library" when I tried to sync it. I tried a variety of solutions I found on the internet, but none seemed to work. So,

  • 500 Internal Server Error in iFS

    I tried to modify the login screen image and ended up with an error, thereby losing access to ifs login web interface. I stumbled across a similar question on TechNet that expressed the same problem (editing the login page and then losing it). The qu

  • How to fetch post goods issue date and sales order creation date

    Hi All, How to find out the difference between SD Sales Order Item Creation Date and final Post goods issue Date. I would like to know how to fetch those dates and what is the relationship between the tables from which i will get the dates. Please le

  • Message redelivery with non-transactional message bean JMS standard or weblogic standard?

    It is my understanding (or maybe my assumption) that a message is           re-queued only if the transaction attribute of a container-managed           message bean is set to "Required" and the message is PERSISTENT. So if           it's set to "Not

  • Slow folder synchronization on windows 8.1 LR4.4

    Hi there, I need a small feedback from you. I have LR4.4 installed on both Mac OS 10 (MacBook air) and Win8.1 and I see that mac version is able to access my photos on network storage (synology disk station) much faster than windows version. The diff