Which Component or container in Swing allow to Display new Windows

Which Component or container in Swing allow to Display new Windows as like property windows , nevigator windows as with most of IDE (like netBeans)and also when windows is closed that space is utilized by existing open other windows, if new window open than it adjust to existing open widow so that both window open side by side, vertically or horizontally
I want it
help me

hi!
JDesktopPane - JInternalFrame - JLayeredPane
http://java.sun.com/docs/books/tutorial/uiswing/components/layeredpane.html
:)

Similar Messages

  • AFC Display Property URL does not allow scrolling in new window

    I have a field that is a checkbox.  In the Display Properties General tab, I select "Add a Button", enter Button Text and the "URL:" where the htm form is stored.  It looks good and my customers really like it.  However, when the button is selected, a new pop-up window displays and there are no scroll capabilities to view the bottom of the document.  I can stretch the window to an entire screen, but the information on the bottom of the screen does not display.  Is there something else I need to do to get the pop-up window to scroll?  Does anyone have a solution for this?

    workaround: select some text on the form and then drag down
    This "bug" is in many popups in the product

  • Which driver on the Snow DVD allows the track pad to scroll?

    I successfully installed 64-bit Win 7 Pro on my MacBook Pro 3.1, and I can right click, but I can’t scroll by dragging. Now, since this MBP is from before multi-finger gestures were introduced, save for scrolling with two fingers and right-clicking by placing two fingers on the pad and clicking with the button, which of the drivers on the Snow DVD will install scrolling like I can with Mac OS X? Peace.

    Yes Windows can, Leopard comes with the drivers for Windows to view HFS+. It does not need 3rd party software anymore as I have personally done this on another mac in the office. I went through and installed ALL drivers all at the same time though, so I don't know which one is the one that allows this. In Windows, it displays the MAC partitions as drive letters and you can read the partitions, you cannot write, just like NTFS.

  • Which component if any can do this?

    Hi,
    i wanted to build a html editor, something like dreamweaver or frontpage, but on a smaller scale. what i wanted to know is there a java swing component i can use to allow the user to edit html code, or is jtextarea the only choice? and is there an editor which i can use to then display the html page to the user? if so which one, and if possible can you point me to a tutorial on it?
    Thank you.

    To do what you want you'll have to use JTextPane or JEditorPane.
    Check out this link, it should help you to get started:
    http://manning.com/sbe/files/uts2/Chapter20html/Chapter20.htm

  • Determing which component from a custom TreeCellRenderer was clicked on

    hi,
    i've been experimenting with finding which component has been clicked on in a JTree which has a custom tree cell renderer. I've got a piece of code that appears to work, but am unsure if this is the proper way to go about doing this, and whether it might fail under some circumstances.
    any help appreciated,
    asjf
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    public class JTreeTest1 {
       public static void main(String[] arg) throws Exception {
          final JTree tree = new JTree();
          final TreeCellRenderer renderer = new MyRenderer();
          tree.setCellRenderer(renderer);
          tree.addMouseListener(new MouseAdapter() {
             public void mouseClicked(MouseEvent e) {
                int x = e.getX(), y = e.getY();
                int row = tree.getRowForLocation(x,y);
                TreePath path = tree.getPathForLocation(x,y);
                if(path!=null) {
                   Object o = path.getLastPathComponent();
                   Rectangle r = tree.getPathBounds(path);
                   // how to detect what component has been clicked on?
                   // simplification: pretend all boolean state has no effect on renderer (which is true for the renderer below)
                   Component renderedComponent = renderer.getTreeCellRendererComponent(tree, o, false, false, false, row, false);
                   renderedComponent.setBounds(r);
                   int _x = (int) ((double)e.getX() - r.getX());
                   int _y = (int) ((double)e.getY() - r.getY());
                   Component clickedUpon = SwingUtilities.getDeepestComponentAt(renderedComponent, _x, _y);
                   if(clickedUpon instanceof JLabel) {
                      JLabel jl = (JLabel) clickedUpon;
                      System.out.println(jl.getText());
          JFrame frame = new JFrame("JTreeTest1");
          frame.getContentPane().add(tree);
          frame.pack();
          frame.setVisible(true);
    class MyRenderer extends JPanel implements TreeCellRenderer {
       JLabel custom;
       public MyRenderer() {
          super(); // flow layout
          add(new JLabel("Hello"));
          add(custom = new JLabel());
          custom.setOpaque(true);
          custom.setBackground(UIManager.getColor("Tree.background"));
          custom.setForeground(UIManager.getColor("Tree.foreground"));
          add(new JLabel("World"));
       public Component getTreeCellRendererComponent(JTree tree, Object value, boolean isSelected, boolean expanded,
                                                     boolean leaf, int row, boolean hasFocus)
          custom.setText("("+value.toString()+")");
          return this;
    }

    My only advice would be to remember that rendered components are not actually added to the tree, so they are not a child of the tree... they actually cannot be clicked on. The rendered components are quickly used just to paint and specific image and then discarded (which is why you don't typically want to create new ones each time). When you click on the tree, there is no "rendered component" there, just an image that was painted.
    Hope this helps
    Josh Castagno
    http://www.jdc-software.com

  • Where is the "done" button in Flash CS4 when using Flash Builder 4's new flash component or container?

    The documentation for Flash Builder 4 beta says that after opening flash from flash builder, I should click a "done" button in flash and flash should close and what I created in flash should be included as a component or container in Flash Builder.  Using the Flash Builder 4 beta on Windows, when I click on the "create in flash" button on the properties panel for either the new flash component or container, Flash CS4 opens, I create something in Flash and no "done" button is present.  Nor is anything present in the menus resembling a "done" option.  Where is it?

    Hi Jeffrey:
    Still no done button.  Now under commands in Flash I can convert symbols to flex components and containers and these show up in the Flash library.
    Thanks:
    Jim
    Date: Wed, 30 Sep 2009 09:58:10 -0600
    From: [email protected]
    To: [email protected]
    Subject: Where is the "done" button in Flash CS4 when using Flash Builder 4's new flash component or container?
    Hi,
    You may need to install FlexComponentKit.mxp to your Flash CS4 beforehand.
    Jeffrey
    Date: Tue, 29 Sep 2009 17:04:36 -0600
    From: mailto:[email protected]
    To: mailto:[email protected]
    Subject: Flex Where is the "done" button in Flash CS4 when using Flash Builder 4's new flash component or container?
    I apparently didn't get one.  I've looked under various workspace configurations.  Another thing that seems odd is that when Flash opens I get the opening panel that allows me to select the type of file and version of AS I want to use.  I select new file with AS3.  Any ideas on why the "done" button wouldn't be present and if the opening panel is what I should expect on opening Flash after clicking the "create in Flash" button?
    >
    >

  • OIM-How can i set a password policy which does not contain any space?

    How can i set a password policy which does not contain any space?
    I put space at Characters not allowed but it is not working.
    Can anyone help me out?

    You can go to Settings>Messages and turn off Messages. Then go to Settings>General>Restrictions and turn on the the Restriction that prevent changing accounts.
    I just verified that it works.

  • Find out which component on the UI is listening and changing to the click event?

    Hello Forum,
    Is there a way in flex to know which component is taking the click event which is being bubbled to the topLevelApplication. I'm clicking it and some container in the parent hierarchy is invalidating/refreshing the screen on click, so the child ficker's on click.

    You need to put traces or alerts for each container till topLevelApplication, in order to know which is flickering the click...
    Hope you got my point!!!
    If this post answers your question or helps, please kindly mark it as such.

  • Is component a container

    Hi,
    I want to stream line my project's deployment process .To do that I need answers for the following questions
    I have hard time understanding(in deployment perspective) component,service unit(Service assembly) parts in JBI specifications.
    1. Is it true that a component is a container?Is JBI container is the container of different component containers?
    2. When we create a WSDL in any BC/SE, it creates a new service in that component.Where dose this new service gets created? is it in the component container or A separate process in the JBI container?
    3.What is the architecture of each new service that's get created in the componenet container? is it a process based(like CGI) or thread based(like servlet) or component based(Like EJB).
    When I was working in following scenario
    client sends SOAP-->HTTPBC-, HTTPBC-->external service (a service(adding two integers) deployed in different environment).
    4. How does component works here.is it still creates the new service in the component and that new service connects to the external service?or it directly connects to the external service
    5.Are there any deployment guidelines for JBI in general?
    Thanks,
    Jay

    Hi,
    1. Yes, component can be container.But not all components can be containers.Those components that don't either have a fixed set of services offered , or use other mechanisms to dynamically vary their behavior can become Component Containers.To become a container component should implement ServiceUnitManager Interface.
    Ex: XML transformation service engine, which uses XSLT as the way of specifying new transformation types that the component offers as a service. In this case, as new XSLT style sheets are deployed to the service engine using Service Unit. Here we are adding new service so XSLT SE component.So, XSLT SE is a container.
    2. In a JBI Environment (Correct me).
    3. Think it as a new runtime class that's get generated at the time of Service Unit startup(Correct me).
    4. No,it will not create any new service.It uses external service's WSDL(Which supplied during Service Unit Deployment) to send request to external service .
    Thanks,
    Jay

  • Which component

    Be gentle, I am new to Flex.
    On the Flex.org site, in the Showcase,
    http://flex.org/showcase/
    Which component is being used to display the list? Is it a
    styled datagrid?
    Many thanks,
    john

    Yes, I would only show the minimum needed, and leave editing/detailed views/whatever to dialog boxes.
    The layout I had in mind is actually the same you proposed, I abandoned the idea of buttons inside the list.
    My problems are more of technical nature:
    I need to be able to select an item on the list, and the component must know which element I selected, so I don't know what is better, if JList or JTable. I don't need direct editing, that can be done by separate dialogs.
    TableModel dataModel = new AbstractTableModel() {
              public int getColumnCount() { return 10; }
              public int getRowCount() { return 10;}
              public Object getValueAt(int row, int col) { return new Integer(row*col); }
          JTable table = new JTable(dataModel);this is the code I found at the JTable Sun documentation: http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JTable.html
    The problem is that the Model only has methods that read data, and not to write it. So, if f.e. I use addColumn, where is it going to add the new column?
    PS: everything was so easy and simple with GUI editors for other languages, but here everything is so different and strange, I think I'm gonna cry T_T
    Edited by: Mesh on Oct 11, 2008 8:51 AM

  • Determine which component fired an action

    I don't see anywhere where I can determine from an IWDCustomEvent which component fired the event.
    I was hoping to setup a help system and wanted one single method to handle all the help events. It was my hope to determine which component fired the event that called the method and use that to determine which text to display.
    Any help would be appreciated.

    You can use event parameter mapping for this. Example: You have 2 buttons "Button1", "Button2" and assign the same action to their "onAction" event.
    Now you can add a parameter "button" to the action, and use parameter mapping code (or declaratively, if available in your IDE).
    wdDoModifyView(...)
      if (firstTime)
        IWDButton button1 = (IWDButton) view.getElement("Button1");
        button1.mappingOfOnAction().addParameter("button", button1.getId());
        IWDButton button2 = (IWDButton) view.getElement("Button2");
        button2.mappingOfOnAction().addParameter("button", button2.getId());
    Then action handler parameter "button" will contain the ID of the button that triggered the action.
    Armin

  • Which component do I need ?

    Which component do I need ? I want to connect my iPhone/iPad/iMac over wifi to a Bose dock system. Do I need a airport extreme or apple tv

    Airport Express or Extreme if you plug it into the speaker port on the Airport.

  • Which component do I need to paste images, pictures from the clipboard.

    Hey all,
    I've made a java-application and with a click on a button, I jump to a drawprogramme.
    When I've finished my picture, copied i to the clipboard(ctrl c), I want to show it in my application.
    How can I do this and in which component must I paste it?
    Thanks.

    This is the code I use:
    Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
    Transferable transferable = clipboard.getContents(this);
    if (transferable.isDataFlavorSupported(DataFlavor.imageFlavor)) {
    try {
    //pp is my panel to paste in
    pp.image = (Image)transferable.getTransferDataDataFlavor.imageFlavor);
    pp.repaint();
    catch (Exception ex) {
    System.out.println(ex);
    Sometimes it works, but mostly I receive a black box.

  • In which IT To Date is not allowed & not having more than one record

    Hi all,
    Could you please tell me "In which IT To Date is not allowed & not having more than one record ?"
    Thanks in advance
    Regards,
    Asiya

    Hi,
    Just go through IT0003 and see if it fulfills the requirements or not.
    Param

  • Which R3 table contains the field WRSHB (Amount in FC)?

    In InfoSource 0FI_AP_4, the InfoObject 0DEB_CRE_DC is mapped with R3 field WRSHB (Amount in FC).  We try to find which R3 table contains this field, but fail to find it.   We've tried BKPF, BSEG, and PAYR, not successful.  We tried RSO2 and find that no view/table is attached to the datasource 0FI_AP_4, instead the extraction function BWFID_GET_FIAP_ITEM is used for the extraction, but inside this function, still can't find this field WRSHB.
    Any idea?
    Thanks

    hi AHP,
    Thanks for your answer to 0FI_AP_4.  Now we've got a question for 0FI_GL_4:
    Follow the similar SAP Help link for 0FI_GL_4:
    http://help.sap.com/saphelp_nw04/helpdata/en/57/dd153c4eb5d82ce10000000a114084/frameset.htm
    The above link shows the Origin Fields in the Extract Structure, however it doesn't contains the field called KNTTP, but it does exist in the datasource of 0FI_GL_4 of our R3 system, why?  Our R3 system version is 4.7.  SAP Help website should be updated, right?  Why SAP Help website doesn't contain the field KNTTP for datasource 0FI_GL_4?
    Thanks

Maybe you are looking for

  • Apple TV help

    Considering buying an ATV, but I have a few questions. First off, on iTunes, when I want to purchase a movie, it says that the movie is available in HD on ATV. Does that mean that when i download it, the movie shows in HD (720p/1080i, I assume), or i

  • Finder now has Restart and Restart... options

    I dropped my keyboard last night and picked it up and I think I accidentally hit some key combo that activated some settings. Under Finder>Apple Menu, I can now see options to Force Quit... (the ellipses are on purpose and in the menu), Force Quit Fi

  • The XPath expression  problem

    Hi everyone, I developed a workflow. I builded and deployed successfully. And I assing this workflow to a policy. I create a request, but this request gave a fail. Error in <assign> expression: <to> value is empty at line "181". The XPath expression

  • What is taking Photos space on iPad ???

    iTunes shows that 2.9 GB of space is being used for photos on my iPad (see image).  However, I do not sync any photos to my iPad, and there are no photos in Camera Roll.  Does anyone know what is consuming this space and how to free it up?

  • Unable to download every other lecture for all courses!

    As of 3/5/2012, I have been unable to download every other lecture (modulo 2) for every course and collection. I'm using an iPhone 4, with iOS 5.0.1. Only iTunes U appears to be affected. I can still stream the undownloadable lectures, but am unable