Title in Dialog

I create a Dialog window, extends a JDialog. But when I set the title of the window, the pack() method don't set the size of the window to see entirely the title.
Can someone give me a solution to see entirely the titre ?
Thank you for your help.
Marcel

es tu vraiment oblig� d'appeler la m�thode pack()??? tu dois pouvoir assurer une bonne mise en page sans utiliser la m�thode pack....

Similar Messages

  • How to get title in Dialog box

    How to get title in Dialog box like "Adobe® Connect™ "

    Works for me. What happened when you tried?
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #E6E6EE;
    overflow: auto;"
    title="this text can be pasted into the AppleScript Editor">
    tell application "Finder" to display dialog "I need ® or ™ in dialog box text" with title "I need ® or ™ in dialog box text" buttons {"Aha!"} default button 1</pre>

  • Problem in JavaScript - Title missing for showmodel dialog

    Hi All:
    I have a problem to get the tilte in a model window. Here is the problem in detail
    My application is in struts. I have a home page which is a JSP and opening a modalDialog one(screen1) using showModalDialog(An action forwarding to a jsp). from there(screen1) I am again opening another modal dialog(screen2) using showModalDialog(another action forwarding to a jsp).
    The problem I have is I am not able to get the title for the last window that is screen2 even though I am giving title tag in that jsp as <TITLE>Model Dialog</TITLE> as like others. Its not coming only the screen which are coming in 3rd level like screen2.
    I am using IE6 browser, its working in IE7 and firefox. But I need to make it work in IE6.
    Can any body help in this problem.
    Thanks

    In my previous answer i mentioned composer parameters actually they are the output option which u've alreeady passed.
    also u set this value
    MOVE space TO wa_control-preview.
    this sap help will also help u
    http://help.sap.com/saphelp_nw04/helpdata/en/d5/6243ea8a4111d4b605006094192fe3/content.htm
    Edited by: kartik tarla on Jan 17, 2009 10:11 AM

  • JQuery Dialog Not Working

    My application uses jQuery Dialog should display a message the first time the user goes to the screen. It does not display.
    In page 0:
    Region Dialogs HTML
    Display Point Before Footer
    Sequence 1010
    Source:
    <div id="alert-dialog" style="display:none">
    <p id="alert-dialog-text"></p>
    </div>In page 2:
    Region Instructions HTML
    Display Point Before Footer
    Sequence 1009
    Source:
    & nbsp;
    Region Footer
    <script type="text/javascript">
        firstTime = $v ('P2_FIRST_TIME');
        if (firstTime != "N" || firstTime == null)
       $("#alert-dialog-text").text("Answer each of the following questions completely to the best of your ability. Read all instructions before answering the questions. If you have any questions about completing the form, contact the attorney designated under the Code of Ethics and Financial Disclosure.");
       $("#alert-dialog").dialog('open').dialog("option","title","Instructions").dialog("option", "width", 460 );
    </script>Items
    Region: Instructions
    P2_FIRST_TIME Text Field
    It was working at one time. Then I did something (i don't remember what) to not display it temporarily.
    Now I need to display it.
    Can someone help? Jari helped me last time but if Jari is too busy and someone else can help, I would appreciate. (The 1st person that gets it right I will give him/her "Correct" Points, Others I'll give "Help" Points)
    APEX 3.2.1.00.12
    DB Oracle 10g Rel 2
    Robert
    http://apexjscss.blogspot.com

    Hi,
    Try
    <script type="text/javascript">
    $(function(){
        firstTime = $v ('P2_FIRST_TIME');
        if (firstTime != "N" || firstTime == null){
         $("#alert-dialog-text").text("Answer each of the following questions completely to the best of your ability. Read all instructions before answering the questions. If you have any questions about completing the form, contact the attorney designated under the Code of Ethics and Financial Disclosure.");
         $("#alert-dialog").dialog('open').dialog("option","title","Instructions").dialog("option", "width", 460 );
    </script>So JavaScript is run after whole HTML document is ready
    Regards,
    Jari

  • Open Dialog on item click javascript

    Hi
    I have survey page that send in data to a sharepoint list. In the list i want to be abel to click on "No Title" to open that item in a dialog how can i do that with javascript i tried a couple of tutorials i found but nothing worked.

    Hi,
    According to your post, my understanding is that you want to open Dialog on item click using javascript.
    You can use the SharePoint Dialog Framework to create your own dialog.
    function openDialog( pUrl ) {
    SP.UI.ModalDialog.showModalDialog(
    url: pUrl,
    width: 500,
    height: 500,
    title: "My Dialog"
    To open dislog when you click title, you can refer to:
    SharePoint 2013: How to open list forms in dialog box instead of navigating to
    another page
    Open hyperlink list item in modal dialog box
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Title in Modulepool

    Hi all,
    How to set title in Dialog Programming
    Thanks & regards,
    Sinha.

    Hi,
    In PBO Event
    MODULE STATUS_0100 OUTPUT.------double click -
    it will take to your driver program there
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'MENUBAR'.    " here you can set PF-status(DOUBLE CLICK --- and set the menu bar)
      SET TITLEBAR 'TIT'.(DOUBLE CLICK --- and set the Title) " here you can set title , wht you want and ACTIVATE
    Or
    If you want to set the srandard Pf-status and title , you just copy the satus(source) to target and dont forget to ACTIVATE
    Reward Points if usefull,
    Regards
    Fareedas

  • Application Dialog fonts change with change in Themes....

    Hi
    In my Application, alongwith other items like frame and dialog titles, the dialog controls like labels and buttons also change with the change in font styles and sizes.
    Expected behaviour: The texts on the buttons and other controls of the dialogs should not change....
    Please suggest...??
    I am not explicitly setting any font sizes to the controls of the dialogs (only taking the default values assigned) , do i need to set them explicitly or is there any other solution,,,?

    You can't change the fonts.
    In preferences you can modify the darkness and lightness of the whole program. Go to Edit > Preferences > User Interface and move the brightness slider. You might find a spot where the text is easier to read.

  • Open Modal Dialog in Photoshop (Mac)

    I can't seem to open a modal dialog in Photoshop on the Mac with the CS SDK. The code works fine in InDesign. In Photoshop, the modality is there (the application responds to mouse clicks with a bell) but the window is not visible. Here is my mx:WindowedApplication:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
         <mx:Script>
              <![CDATA[
                   import com.adobe.csxs.types.CSXSWindowType;
                   import mx.core.Window;
                   protected function onClick(event:MouseEvent):void
                        var w:Window = new TestDialog();
                        if (w) {
                             w.type = CSXSWindowType.MODAL_DIALOG;
                             w.resizable = false;
                             w.open();
              ]]>
         </mx:Script>
         <mx:Button x="10" y="10" label="Open Popup" click="onClick(event)"/>
    </mx:WindowedApplication>
    The Window itself is more or less copied from the "MakeSideHeads" sample project:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Window xmlns:mx="http://www.adobe.com/2006/mxml"
                 title="Test"
                 titleAlignment="center"
                 layout="absolute"
                 width="300"
                 height="100"
                 showStatusBar="false">
         <mx:Script>
              <![CDATA[
                   private function myCloseWindow():void{
                        this.close();
              ]]>
         </mx:Script>
         <mx:Canvas width="100%" height="100%" id="TestPanel" backgroundColor="#D2D2D2">
              <mx:VBox verticalAlign="middle" horizontalAlign="center" height="100%" width="100%">
                   <mx:HBox height ="90%" width="100%">
                        <mx:Text width="100%" height="100%" text="Some Text"/>
                   </mx:HBox>
                   <mx:HBox  height = "10%" horizontalAlign="center">
                        <mx:Button id="CloseButton" label="Close" click="myCloseWindow()" />
                   </mx:HBox>
              </mx:VBox>
         </mx:Canvas>
    </mx:Window>
    This seems like quite a significant bug. Or am I missing something?

    Hello,
    I've tested this one and it works.
    main.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <csxs:CSXSWindowedApplication xmlns:csxs="com.adobe.csxs.core.*"
         xmlns:mx="http://www.adobe.com/2006/mxml"
         historyManagementEnabled="false">
         <mx:Script>
              <![CDATA[
                   import com.adobe.csxs.types.CSXSWindowType;
                   import mx.core.Window;
                   import ModalDialog;
                   public function showModal():void
                        var window:Window = new ModalDialog;
                        window.type = CSXSWindowType.MODAL_DIALOG;
                        window.resizable = false;
                        window.open();
              ]]>
         </mx:Script>     
              <mx:Button label="Display Modal Dialog" click="showModal()"/>          
    </csxs:CSXSWindowedApplication>
    The following is the ModalDialog.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Window
         xmlns:mx="http://www.adobe.com/2006/mxml"
         layout="absolute"
         width="300"
         height="200"
         creationComplete="onCreationComplete()"
         title="Modal Dialog"
         >
         <mx:Script>
              <![CDATA[
                   private function onCreationComplete():void
                        //Center the window on the screen
                        var screenBounds:Rectangle = Screen.mainScreen.bounds;
                        nativeWindow.x = (screenBounds.width - nativeWindow.width) / 2;
                        nativeWindow.y = (screenBounds.height - nativeWindow.height) / 2;
              ]]>
         </mx:Script>
         <mx:VBox verticalAlign="middle" textAlign="center" horizontalAlign="center">
              <mx:HBox horizontalAlign="center">
                   <mx:Label text = "This is an example of a modal dialog box."/>
              </mx:HBox>
              <mx:HBox horizontalAlign="center">
                   <mx:Button label = "Close" click="close()"/>
              </mx:HBox>
         </mx:VBox>
    </mx:Window>

  • Dreamweaver and floating dialog

    Dreamweaver and floating dialog. You see it on a lot of websites. I am not sure if this done in JavaScript or JQuery. I was wondering if someone can point me to a sample of doing this. I need to incorporated JavaScript and JQuery into my pages .

    <!doctype html> 
    <html lang="en">
    <head>
      <meta charset="utf-8">
      <title>jQuery UI Dialog - Default functionality</title>
      <link rel="stylesheet" href="//code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css">
      <script src="//code.jquery.com/jquery-1.10.2.js"></script>
      <script src="//code.jquery.com/ui/1.11.1/jquery-ui.js"></script>
      <link rel="stylesheet" href="/resources/demos/style.css">
      <script>
      $(function() {
      $( "#dialog" ).dialog();
      </script> 
    </head>
    <body>
    <div id="dialog" title="Basic dialog">
      <p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
    </div>
    </body>
    </html>
    Also refer to the Documentation:
    Dialog Widget | jQuery UI API Documentation
    Nancy O.

  • Help with dialog list box(acrobat javascript)

    The following code is an example in the guide of acrobat. Now i want to list some names store in an array. So i did some changes.But it can't work.ther are errors with subl:{}. hope some help.
    var dialog3 = {
    name=new Array();
    name[1]=lucy;
    name[2]=lily;
    name[3]=han;
    // This dialog gets called when the dialog is created
    initialize: function(dialog) {
    this.loadDefaults(dialog);
    // This dialog gets called when the OK button is hit.
    commit: function(dialog) {
    // See the Dialog Object for a description of how dialog.load
    // and dialog.store work.
    var elements = dialog.store()["subl"];
    // do something with the data.
    // Callback for when the button "butn" is hit.
    butn: function(dialog) {
    var elements = dialog.store()["subl"]
    for(var i in elements) {
    if ( elements[i] > 0 ) {
    app.alert("You chose \"" + i
    + "\", which has a value of " + elements[i] );
    loadDefaults: function (dialog) {
    dialog.load({
    subl:
         for(i=1;i<4;i++)
              name[i]:+i
    // The Dialog Description
    description:
    name: "Adobe Acrobat Products", // Title of dialog
    elements: // Child Element Array
    type: "view",
    align_children: "align_left",
    elements: // Child Element Array
    type: "cluster",
    name: "Select",
    elements: // Child Element Array
    type: "static_text",
    name: "Select Acrobat you use",
    font: "default"
    type: "list_box",
    item_id: "subl",
    width: 200,
    height: 60
    type: "button",
    item_id: "butn",
    name: "Press Me"
    type: "ok_cancel"
    app.execDialog(dialog3);

    sorry ,the code is like this:
    name=new Array();
    name[1]='lucy';
    name[2]='lily';
    name[3]='han';
    var dialog3 = {
    // This dialog gets called when the dialog is created
    initialize: function(dialog) {
    this.loadDefaults(dialog);
    // This dialog gets called when the OK button is hit.
    commit: function(dialog) {
    // See the Dialog Object for a description of how dialog.load
    // and dialog.store work.
    var elements = dialog.store()["subl"];
    // do something with the data.
    // Callback for when the button "butn" is hit.
    butn: function(dialog) {
    var elements = dialog.store()["subl"]
    for(var i in elements) {
    if ( elements[i] > 0 ) {
    app.alert("You chose \"" + i
    + "\", which has a value of " + elements[i] );
    loadDefaults: function (dialog) {
    dialog.load({
    subl:
          for(i=1;i<4;i++)
            "name[i]":-i
    // The Dialog Description
    description:
    name: "Adobe Acrobat Products", // Title of dialog
    elements: // Child Element Array
    type: "view",
    align_children: "align_left",
    elements: // Child Element Array
    type: "cluster",
    name: "Select",
    elements: // Child Element Array
    type: "static_text",
    name: "Select Acrobat you use",
    font: "default"
    type: "list_box",
    item_id: "subl",
    width: 200,
    height: 60
    type: "button",
    item_id: "butn",
    name: "Press Me"
    type: "ok_cancel"
    app.execDialog(dialog3);

  • Confirmation Dialog setTitle

    Hello,
    Is it possible to set the title of an IWDConfirmationDialog? I want to replace the standard title "Confirmation Dialog" by my own title.
    Thanks,
    Thomas Morandell

    Hallo,
    although I have pity with your situation I insist on the following rule and not to hijack IWindow in your case:
    <u><b>Never Ever Hijack Internal Web Dynpro Classes and Interfaces</b></u>, described in https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1222. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Regards, Bertram

  • ADF launchDialog and window title

    Hello there
    is it possible to set Window title for dialog opened via
    AdfContext launchDialog?
    I am redirecting dialog to another servlet out of Faces context to show some pdf files in the browser.
    What properties are supported for the window properties parameter, except width and height?
    ferdo

    I used the handleLaunch method and then set up the url along with parameters that generates the pdf report:
    public void handleLaunch(LaunchEvent launchEvent){
    parametros = "P_CD_PARCEIRO=" + (codParceiro.getValue()==null?"":codParceiro.getValue()) + "&P_DT_INICIO=" + dtInicio + "&P_DT_FIM=" + dtFim +
    "&P_TP_DOCUMENTO=" + tpDocumento.getValue() + "&P_NU_DOCUMENTO=" + this.retiraMascaraCampo((String)("2".equals(tpDocumento.getValue())?numeroDocumentoCNPJ.getValue():numeroDocumentoCPF.getValue())) +
    "&P_CD_BANCO=" + codigoBanco.getValue() + "&P_CD_AGENCIA=" + codigoAgencia.getValue() +
    "&P_NU_CHEQUE=" + numeroCheque.getValue() + "&P_CD_CLIENTE=" + codigoUnidadeServico.getValue();
    String url = resource.getString("historicocobranca.url") + parametros;
    //Set the url value into the report page (Dialog)
    Object urlObj = url;
    launchEvent.getDialogParameters().put("url", urlObj);

  • Newbie Needs Help - PreE7 - using text/titles

    I'm learning PE7 and I'm having difficulty achieving the results I want with text - I hope someone can help...
    I have a 'visual' (screen capture) you can view here in my photoshop gallery here: http://tinyurl.com/ybeu2t9
    My Goal: To create a video from still images with occasional, black, blank clips with text in between.
    My Problem:  Some of my text is 'animated' and I don't want it to be.  I can't figure out how to remove the animation nor do I understand why it's happening in the first place.
    If you look at my 'visual', you'll see:
    item (1) is a clip where I have a still image (repositioned on a black background) with text over it.  Both the text and the image are set to fade out to the next still in the video... I'm not quite sure how I managed to achieve this but the results are what I want for this one.
    item (2) is a clip where I created a blank and then added text to it.  When I play it, the text is static (not animated at all) and this is just the way I want it to be.
    item (3) - here I tried to duplicate what I did with item 2 (though with different text), that is, create static text but when I play the video, it is faded in, which I do  not want.  I noticed that it has a little, double-photo, icon in the corner just as item 1 has so I assume it is the indicator that something is happening here but I cannot for the life of me figure out how to remove it.
    I'll appreciate any help!
    Oh, and if it's important to know, I'm using Windows Vista 64.
    Lady of the Thorns (aka Rose)

    Welcome to the forum.
    Thank you for the screen-cap. What I suspect is happening is that you are actually altering an existing Title - one with animation already appled. When you create a Title and drag it to the Timeline, or the Sceneline, you are placing an "instance" of that Tilte only. One can have unlimited instances of the same Title. If you change, say the text in that instance, you are changing it for that Title, so if you have multiple instances, they all will change.
    Now, PrE allows one to do a Title Template, and also allows one to create new Styles. To do Titles that will be the same, with only text changes, the Title Template is easy to use, but you need to do multiple ones, changing the text, as is required of each of those multiple Tiltles. They will now appear in the Project Panel as separate Titles. You can then have multiple instances of any of these.
    An example would be a Title Template with animation and a Style that you want, that says "Place Text Here." You'd bring that Template into your Project and then change that text to "Meanwhile, back at the ranch," and you want it to crawl across the screen (Animation) Now, you want that particular Title to be used in 4 places in your Timeline. You'd just drag it to the required spots. All would read, "Meanwhile, back at the ranch." All will crawl. If you change the text in one, all will update. That is not what we want. If we want a static Title to read, "Looking down on the ranch," we need to do a new Title for that. We'd not use the Template, but could use the Style that we created and saved, creating a new, static Title with our new text.
    On a sidenote, PrPro (PrE's big brother) has a similar Titler. One neat feature on it is a little icon that allows one to do a new Title, but based on the one in the Titler. When chosen, this opens a Title naming dialog box, and then creates a new Title. All attributes will be the same, and initially will have the same text. We change that, and it's in a new Title, so it does not affect any other Titles. This is a big timesaver, and I hope that PrE will add it.
    One additional thing to remember is that the PrE Title animations will affect only one line of text. If one wants animation of multiple lines of text, they need to do one Title for each line of text and then add the animation to each separate Title. These would then be placed in separate Video Tracks, one above the other, so it appears as one Title on the Timeline.
    Hope that this is your issue, and that I have helped you solve the problem. If not, please tell me where I went wrong.
    Good luck,
    Hunt

  • Keeping a JDialog Title Centered.

    Guys:
    I have a strange problem and am not sure how to get around it. I am ising setTitle() to place a title string on my JDialog. Now I toulf like to center the title. On my desk PC I do this by simply inserting enough spaces before the title to center it. When I run there the title is beautifully centered. However, when I take my code to another computer (especially one made by another manufacturer) it is totally not centered. Is there a way to insure my title stays centered no matter what machine my code is running on? SetTitle(String) takes only a String argument.
    Thank you in advance.
    Phil Rossomando

    lol, I'm talking about the WIndows OS, not java.awt.Window.
    Give this a spin, but only on a Windows machine.import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class DialogCenterTitle {
       JDialog dialog;
       JTextField textField;
       final Toolkit kit = Toolkit.getDefaultToolkit();
       final Font font = (Font) kit.getDesktopProperty("win.frame.captionFont");
       // titleHeight is a proxy for the width of the
       // square space reserved for the titlebar icon.
       final int titleHeight = (Integer) kit.getDesktopProperty(
               "win.frame.captionHeight");
       void makeUI() {
          textField = new JTextField(50);
          textField.addActionListener(new ActionListener() {
             @Override
             public void actionPerformed(ActionEvent e) {
                dialog.setTitle(getCenteredTitle(textField.getText()));
          JPanel panel = new JPanel();
          panel.addComponentListener(new ComponentAdapter() {
             @Override
             public void componentResized(ComponentEvent e) {
                dialog.setTitle(getCenteredTitle(dialog.getTitle().trim()));
          panel.add(textField);
          panel.revalidate();
          dialog = new JDialog();
          dialog.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
          dialog.add(panel);
          dialog.pack();
          String title = "Type in the text field and press <Enter> to change this title.";
          title = getCenteredTitle(title);
          dialog.setTitle(title);
          dialog.setLocationRelativeTo(null);
          dialog.setVisible(true);
       private String getCenteredTitle(String title) {
          Graphics graphics = dialog.getGraphics();
          FontMetrics metrics = graphics.getFontMetrics(font);
          int spaceWidth = (dialog.getWidth() - metrics.stringWidth(title)) / 2
                  - dialog.getInsets().left - titleHeight;
          String spaces = "";
          while (metrics.stringWidth(spaces) < spaceWidth) {
             spaces += " ";
          return spaces + title;
       public static void main(String[] args) {
          SwingUtilities.invokeLater(new Runnable() {
             @Override
             public void run() {
                new DialogCenterTitle().makeUI();
    }db

  • Notifications not working at all! [SOLVED]

    I had a feeling that notifications were not working properly in both my machines (a desktop and a laptop) for quite some time, but I never took the time or effort to really test it. Now I wanted to test a software that is all about notifications (https://launchpad.net/pydojo) but I get this error:
    glib.GError: The name org.freedesktop.Notifications was not provided by any .service files
    I decided to investigate and tried this simple script (that depends on the 'python-notify' package), which gave me the same error:
    import pynotify
    def callback_function(notification=None, action=None, data=None):
    print "It worked!"
    pynotify.init( "Some Application or Title" )
    n = pynotify.Notification("Title", "body", "dialog-warning")
    n.set_urgency(pynotify.URGENCY_NORMAL)
    n.set_timeout(pynotify.EXPIRES_NEVER)
    n.add_action("clicked", "Button text", callback_function, None)
    n.show()
    $ python notify.py
    Traceback (most recent call last):
      File "notify.py", line 11, in <module>
        n.show()
    glib.GError: The name org.freedesktop.Notifications was not provided by any .service files
    I tried reinstalling glib and hal, with no success. Is anyone having this same problem?
    I don't know if that is anything to do with this other issue, but I also can't shutdown or reboot through Gnome:
    $ gnome-power-cmd.sh shutdown
    Shutting down
    Error org.freedesktop.DBus.Error.UnknownMethod: Method "Shutdown" with signature "" on interface "org.freedesktop.PowerManagement" doesn't exist
    Failed
    $ gnome-power-cmd.sh reboot
    Rebooting
    Error org.freedesktop.DBus.Error.UnknownMethod: Method "Reboot" with signature "" on interface "org.freedesktop.PowerManagement" doesn't exist
    Failed
    EDIT:
    Sorry for that, I only had to install notification-daemon to make this work. In my defense, I must say there are not many places talking about this. I found it here:
    http://wiki.archlinux.org/index.php/Gno … creensaver
    Last edited by alexmatos (2009-06-30 07:29:41)

    Closing.
    See: http://wiki.archlinux.org/index.php/For … Bumping.27

Maybe you are looking for