Dockable & floatable panels

can any tell me how to create the Dockable & floatable panels in JFrame..
thanks in advance

Hi,
The docable panels are not allowed but you can make use of JInternalFrames for your use.
If you want to have a look and use that sample code. Please have a look at your JDKS's demo diectory under SwingSet2 dir.
C:\j2sdk1.4.2_01\demo\jfc\SwingSet2
Hope this will help you.
Thanks,
Sandeep

Similar Messages

  • Dockable & floatable toolbars

    Want to know how to create dockable & floatable toolbars. The setFloatable() method can make it floatable, but how do I make it dockable on the frame?

    JToolBar is floatable by default.
    http://forum.java.sun.com/thread.jspa?threadID=668496&messageID=3915453#3915453
    How to Use Tool Bars:
    http://java.sun.com/docs/books/tutorial/uiswing/components/toolbar.html
    hth.

  • How to create Floatable panel!

    well, i am trying to create a floatable panel like the one in NetBean, eg. source editor; which will be float as separate window if it is dragged and it will be closed if close icon is pressed and it can be re-opened from application menu.
    i saw a lot of API out there for sale, but i am an student and i want to write it by learning. any suggestion or direction will be appreciate it. thanks a lot.

    private void detachActionPerformed(java.awt.event.ActionEvent evt)
        System.out.println("detachActionPerformed");
        this.dockingSource = this.getParent();
    //    dockingSource.remove(this);
        if (this.floatingFrame == null) {
          this.floatingFrame = createFloatingWindow(source);
        dockingSource.remove(this); // moved line hereYou are removing the panel from the container before creating your floating window. Therefore the
    Window window = SwingUtilities.getWindowAncestor(source);
    is returning null for the window, which means when you create the dialog you are passing in null as the parent.

  • AE CS5.5 Crash

    Hi, I'm using AE CS5.5. So, when I try to open a project (any project), AE crashes with this message: "unable to obtain the user language registry key at software adobe after effects... bla bla). I've seen people here had similar problems, but didn't found a solution. Support told me only phone support can help me, but lately I've spend 25 minutes talking to random people without any help, so I wouldn't like to do that, otherwise, my earnings will all go to adobe support phone bills
    I'm pretty sure what causes the problem. Scripts installed in docked UI panel. Let me just say that on PC (windows), same AE version, I never had this problems. Now I switched to Mac and I'm having these issues. When I remove scripts for dockable UI panels, and try to open any project, it opens normal. I've also disabled OpenGL to try that too, but that's not the problem.
    I also have the latest updates for both AE and OS. Using Mac Pro, dual xeons, 64gb ram.....
    Please help, I'm going mad here. (Bought production premium cs6 and after being really disapointed with AE, switched back to cs5.5)
    *frustrated*
    Thank you

    Hi Rick, thank you for the effort, I will try to answer to your questions one by one:
    Try and think about what you would want to know if you were trying to diagonse the problem. What has changed? What's different? What may be in the project that could be causing the problems. Asking the right question is the first step in finding the solution to the problem. The right question is rarely why is my app crashing?
    I do ask right questions, I know exactly when the problem occurs.
    What scripts exactly? Have you tried removing them one at a time? There could be some other issues with the extended script tool kit or other software that is installed on your machine.
    Any script that's dockable into UI panel. I have tried removing them one by one, no luck. What exactly is extended script tool kit?
    There also could be something about a project that is causing the crash. Will AE open by it's self? If you are getting a project to open with Caps Lock on and then you can continue with the project by turning off the Caps Lock we need to know what's in the project that may be causing the problem.
    Yes, ae will open by itself. When I activate caps lock, it opens with no problem. It cannot be anything in the project (I guess), because it happens with every project (again, when these scripts are in UI)
    Can you Open AE, create a project with just a solid and a text layer, save the project, start a new project, then open the simple project you just saved without a crash?
    It doesn't crash, but I can assure you that it does crash with every other, let's say "bigger" project.
    One other thing. Has this problem always been there or did it start after you have used AE for a while?
    I've switched to Mac recently, never had this problem on PC.

  • Is there a ScriptUI/ExtendScript event for project load?

    I have a dockable ScriptUI Panel that I want to load information from a project (I have looked into app.settings, but I think app.settings is for the application itself), but the ScriptUI Panels load before a project is loaded.
    Is there a message/event that I can attach to to refresh my information? onLoad perhaps?
    Thanks for any insight you may have.

    Well the label can only be changed when the VI is idle, so just read the label when the Application.state event is triggered.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Debugging Procedures using dbVarName

    It seems as though debug information is not returning the
    names of parameters called in a stored procedure. When using the
    "dockable" debug panel, the information under stored procedures
    shows data in the "type", "CFSQLType", "value" and "variable"
    columns, but nothing under the "dbVarName" column.
    Furthermore, if I run the following code snippet:
    <cfobject action="create" type="java"
    class="coldfusion.server.ServiceFactory" name="factory">
    <cfset cfdebugger = factory.getDebuggingService()>
    <cfset qEvents = cfdebugger.getDebugger().getData()>
    <cfset qEvents = duplicate(qEvents)>
    <cfdump var="#qEvents#">
    ... the name of each parameter called is nowhere to be seen
    in the resulting dump.
    I'm running:
    Update Level /C:/CFusionMX7/lib/updates/hf702-52712.jar
    Is there any way to resolve this issue?

    The other pieces we need to know are what DBMS and which
    drivers. Not all DBMSs and JDBC drivers support dbvarname. Also,
    you need the latest MM JDBC drivers - 3.5 or Microsoft's own latest
    jdbc driver for MSSQL. Oracle thin does not support it.

  • Sliding panel / Dockable window

    I am looking for sample code for implementing a sliding panel or dockable window. IntelliJ IDE has label on left "Project" which when clicked slides-in a panel (or something) which has project elements in a tree. I am looking for a similar effect for a swing based application.
    I tried using scrollpane and try setting its "setDividerLocation" property incrementally but it does not give the same effect. It "jumps" the last position, no matter how much I try repainting/updateUI etc.
    If you have any sample / hint for code please let me know.
    Thanks
    Prakash

    Perhaps using a jsplitpane with continuouslayout as true might solve your problem when you are incrementing the divider location. With continuousLayout you shouldn't get the jumping effect.
    JSplitPane sp = new JSplitPane();
    sp.setContinuousLayout(true);

  • Drag Drop Dockable Panels

    Hi there all,
    Does anybody know if there is source code/widgets/extensions
    out there to
    achieve the same effect as the BBC home page.
    http://www.bbc.co.uk/
    It's really the ability to drag/drop/dock the panels and the
    fact the panel
    positions are stored (I'm presuming via a cookie).
    Would really appreciate any help at all.
    Cheers,
    @ndyB

    @ndyB wrote:
    > Hi there all,
    >
    > Does anybody know if there is source
    code/widgets/extensions out there
    > to achieve the same effect as the BBC home page.
    >
    http://www.bbc.co.uk/
    >
    > It's really the ability to drag/drop/dock the panels and
    the fact the
    > panel positions are stored (I'm presuming via a cookie).
    > Would really appreciate any help at all.
    Try this:
    http://www.webdesignermag.co.uk/tutorial_files.php?tutorial=19
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

  • Changeing to mouse floatable in java swing object

    Hi All
    I want change to my select mouse floatable swing object functionality in java swing Application. If it mouse over functionality window or Frame based application. If anybody feel easy sloution that ,plz help solve this problem.
    Thanx to Advance.
    Bye
    ARjun...

    select mouse floatable swing object"huh?
    If it mouse over functionality window or Frame based application.double huh?
    be a little more clear..i don't think anyone here understand what you're asking for.
    here's my take on your question (guess).
    Are you asking for dockable Panel and component?
    ie)
    you have a create JComponent that is added to a JFrame, etc..
    When the user move the mouse over the component, and perform a mouse press, you want to allow the user to move the component to another location (the component is dockable??)
    There are severals Dockable panel and compoent out there for free..so i suggest that you would use them ; rather than writing your own.

  • Run a script by clicking on a button panel

    Hi,
    i am very new to scripting in after affects and in general.
    Several month ago i write severals little scripts to speeds up my workflow. I launch them via the "Launch Pad" script Panel.
    Now, i would like to put my scripts in my own panel but i'm missing the properties to link the "script part" and the "panel part".
    For the panel i have (just one button for the moment):
    win=new Window("window","new project",[0,0,500,500],{resizeable:true,});
    but_1=win.add("button",[33,16,103,36],"Sharpen3Way");
    win.center();
    win.show();
    and  my previous script that work independently.
    myComp = app.project.activeItem;
    // Selectionne la composition active
    app.beginUndoGroup("Sharpen 3 Way");              
    // Start Undo Group
    mySolid01 = myComp.layers.addSolid([100,100,100], "Sharpen", myComp.width, myComp.height,1);   // Ajoute un layer Solid
    mySolid01.adjustmentLayer = true;                                                                                             
    // Transforme le Solid en Adjustement Layer
    mySolid01.label = 5;                                                                                                                   
    // Attribue la couleur d'un Adjustement Layer
    mySolid01.opacity.setValue(40);                                                                                                  
    //  Change l'opacité du Layer
    myEffect = mySolid01.property("Effects").addProperty("Unsharp Mask").name = "Unsharp Mask Large";  
    // Ajoute un effet  sur ce calque 
    myEffect = mySolid01.Effects.property("Unsharp Mask Large")(1).setValue(10);
    myEffect = mySolid01.Effects.property("Unsharp Mask Large")(2).setValue(40);
    myEffect = mySolid01.property("Effects").addProperty("Unsharp Mask").name = "Unsharp Mask Medium";
    // Ajoute un effet  sur ce calque 
    myEffect = mySolid01.Effects.property("Unsharp Mask Medium")(1).setValue(65);
    myEffect = mySolid01.Effects.property("Unsharp Mask Medium")(2).setValue(1);
    myEffect = mySolid01.property("Effects").addProperty("Unsharp Mask").name = "Unsharp Mask Fine";    
    // Ajoute un effet  sur ce calque 
    myEffect = mySolid01.Effects.property("Unsharp Mask Fine")(1).setValue(95);
    myEffect = mySolid01.Effects.property("Unsharp Mask Fine")(2).setValue(0.5);
    app.endUndoGroup();            
    // End Undo Group
    How do i make the relation to run the script when i click on the but_1 ("Sharpen3Way")
    thanks you.

    Hi,
    if you don't have that many scripts and they are short like this, you can make them into functions, and on click events the function is called.
    A bit off topic but i think important, (1) avoid windows of type window, palettes are better, (2) you should use the keyword "var" when declaring new variables,
    (3) to make it dockable have a look at David Torno's tutorials ([Tutorial] After Effects ExtendScript Script Writing).
    Edit : And also (4) You should use matchNames (or index) to refer to properties, not english name. If you hand this script to someone who does not have AE i english, it will probably not work
    For instance myEffect should be instead: myEffect = mySolid01.property("ADBE Effect Parade").addProperty("ADBE Unsharp Mask2");
    Xavier.
    (function(){
        var win, but_1, but_2;
        win = new Window("palette","new project",[0,0,500,500],{resizeable:true,});
        but_1=win.add("button",[33,16,103,36],"Sharpen3Ways");
        but_2=win.add("button",[33+100,16,103+100,36],"Sharpen0Way");
        but_1.onClick = sharpen3Ways;
        but_2.onClick = sharpen0Way;
        win.center();
        win.show();
        function sharpen3Ways(){
            var myComp, mySolid, myEffect;
            // Selectionne la composition active
            myComp = app.project.activeItem;
            if (myComp instanceof CompItem){
                app.beginUndoGroup("Sharpen 3 Way");                  // Start Undo Group
                // Ajoute un layer Solid
                mySolid01 = myComp.layers.addSolid([100,100,100], "Sharpen", myComp.width, myComp.height,1);
                mySolid01.adjustmentLayer = true;                                                                                                      // Transforme le Solid en Adjustement Layer
                mySolid01.label = 5;                                                                                                                            // Attribue la couleur d'un Adjustement Layer
                mySolid01.transform.opacity.setValue(40);                                                                                                          //  Change l'opacité du Layer
                // Ajoute un effet  sur ce calque (unsharp mask)
                myEffect = mySolid01.property("Effects").addProperty("Unsharp Mask");
                myEffect.name = "Unsharp Mask Large";   
                myEffect(1).setValue(10);
                myEffect(2).setValue(40);
                // Ajoute un effet  sur ce calque (unsharp mask)
                myEffect = mySolid01.property("Effects").addProperty("Unsharp Mask");
                myEffect.name = "Unsharp Mask Medium"; 
                myEffect(1).setValue(65);
                myEffect(2).setValue(1);
                // Ajoute un effet  sur ce calque (unsharp mask)
                myEffect = mySolid01.property("Effects").addProperty("Unsharp Mask");
                myEffect.name = "Unsharp Mask Fine";
                myEffect(1).setValue(95);
                myEffect(2).setValue(0.5);
                app.endUndoGroup();                // End Undo Group
            else{
                // ignore or send some alert
            return;
        function sharpen0Way(){
            alert("About to do something, ... dont know yet what.");
        return;

  • Load dockable script from a script

    I'm trying to build a script that will allow you to type in the name of a script instead of going through the window or script menu.Is there a way to load a dockable script through a script? Ideally this would have the same effect as if you had loaded the script vie teh windows menu ie. a dockable script would be dockable.

    Ah I see what you're getting at.
    No, I'm not exactly able to do that. It's a dumb workaround, but it still can only load scripts that are local to your computer.
    Basically it's not "loading" the scripts from the script. All this script does is list the names of all of your scripts in your scriptUI folder as buttons (kind of like FT TOOLBAR but without icons, it's just the names on the buttons). When you click on a button, it doesn't directly launch the script. It performs app.executeCommand and searches for the script in your scriptui folder with a name that matches the button you clicked on. It's the same as clicking Window and launching a script that way, it's just a little easier. Since it's pulling it from the app.executeCommand, it'll load it as a dockable panel. If I told the script to just run the script in question, it would be a palette, not a dockable panel.
    I WISH I could write a script that just loaded a bunch of scripts from a website, would make portable AE work so much easier.

  • Dockable Javascript Palette - Is it possible?

    I have created a Javascript Palette to allow the user to perform actions on TextFrames.
    var myWindow = new Window("palette", "My Palette", undefined, {resizeable:true, closeButton:true});
    Is is possible to make it 'Dockable' with the other normal panels? e.g. (Scripts, ScriptLabel, Paragraph Styles).
    Or is it possible to create a Plugin which can then render the javascript inside of itself?
    Thanks
    Nathan Deamer

    I built something using Configurator 2, I haven't checked Configurator 3 yet. I found it useful for creating basic GUI components to run JSX scripts. If you really want to add a lot of interaction though you should go with learning CS Extension Builder. There is a learning curve, but it is a lot better than building using C++.
    I think I am going to go see what they improved with Configurator 3. The biggest weakness I saw before is that there were not URIs for InDesign to do commands, but there were for Photoshop.

  • Refreshing HTML5 panel quickly?

    I'm developing an add-on using HTML5 panels, and I am seeing the dockable panel, but currently the only way I found I can refresh the panel is closing it and then going to "window > extensions > my extension" to load it back, and that's really not as quick as pushing a keyboard shortcut.
    I didn't find a way I can assign a keyboard shortcut to the custom extension, and using the workspace keyboard shortcuts to switch between a workspace with this panel and without this panel has a visual bug in which the content of the panel isn't rendering.
    Any idea how quick-refreshing of the panel's content can be achieved?

    That´s a PC "feature". The Mac has offscreen drawing by default.
    I currently have a similar problem with a tree view, but haven´t yet found a simple way to implement offscreen drawing.
    Btw, you shouldn´t need to search your panel via application ..., instead the selection observer should be located on your panel. Observers should be aggregated where they perform their work.
    Dirk

  • Docking the "Main" and "Controller" panels

    In the past, all versions of Flash allowed you to dock the
    Main and Controller panels under or in the top portion of the
    program. CS4 doesn't seem to allow the docking of these panels any
    longer... Is this just a simple thing that they forgot or am I
    missing something? I can drag the panels to the top, but they are
    floating, not actually docked to anything. I tried moving them all
    over the program to see if they were "dockable" somewhere else and
    they are not.
    Any ideas or is this something I will have to get used to?
    Thanks

    Unfortunately those two are not panels in the same sense that
    everything else is. They were -supposed- to become panels, but for
    some reason they did not. Basically it's a bug, it's been reported
    and will have to be revised in a future version.

  • Links not getting displayed in the contextual panel

    Hi,
    I have created a contextual panel inside a transparent container. And created a method in the same view supply_values of type supply function to supply the values to the panel.Inside the method I have coded like:
    DATA TAB  TYPE WD_THIS->ELEMENTS_N_VIEW_SWITCH.
      DATA LINE TYPE WD_THIS->ELEMENT_N_VIEW_SWITCH.
      LINE-TEXT    = 'User Manual'. "#EC NOTEXT
      LINE-ENABLED = ABAP_TRUE.
      APPEND LINE TO TAB.
      LINE-TEXT    = 'Logout'. "#EC NOTEXT
      LINE-ENABLED = ABAP_TRUE.
      APPEND LINE TO TAB.
      NODE->BIND_TABLE( TAB ).
    Also in the context of the view I have created a node and supplied the method  'supply_values' in the supply function.Under the node I have 2 attributes named text and enabled. Text is of string type and enabled is of boolean type. In the properties of the contextual panel I have bound the visible property with the enabled attribute.
    Now when I am running this application , links are not getting displayed in the contextual panel. Though when I debug TAB contains the values.  Please suggest if I have missed out something or I need to look into the properties of the contextual panel. Any pointers will be really helpful.
    Regards,
    Ashutosh

    Hi,
    Can you elaborate ' ItemEnable property of ViewSwitch'.
    I have already bound the enable property of the panel with a context attribute of type wdy_boolean  but it is still not working. 
    Regards,
    Ashutosh

Maybe you are looking for