Dialog for font selection

I need to select font in the application. Is there standart dialog (how in Windows) for font selection in the Java?

Not in the standard API. But there are a few out there if you search, e.g.
http://examples.oreilly.com/jswing2/code/ch12/FontChooser.java

Similar Messages

  • Font selection view control in Web Gallery

    LR4.1 RC2
    I wanted to be able to change the font type from the UI panel using a font select popup.
    This control really only seems to exist in the inbuilt edit modes (eg: id plate and watermark) so I have tried a workround which seems to work OK so far. Maybe it will help someone else out working with webengines.
    Mac/OSX only at this stage - good source file in Windows may be font.inf but would require a bit of parsing or get a folder listing somehow.
    Basically I read in the contents of the fonts.list file - which appears in the OSX fonts folders - and then massage the contents to get a raw list of the fonts.
    This raw list is then read into a lua table and consumed by the UI popup control.
    Should there be an obvious way that I haven't seen then just give me time to find a banana to eat ... anyway here goes -
    Changing the font type for the cell index numbers.
    Grid cells use cellIndex to give the photo number and in my webengine the css class is .itemNumber       
    Data Model references -   Note:   %s is important for select to work - if %q is used select will work but font won't change ( %q adds quotes to the string ).
                ["appearance.itemNumber.font"] = function() return string.format( "%s", nonCSS.itemNumberFontSize .. "px " .. nonCSS.itemNumber.font ) end,
                ["nonCSS.itemNumberFontSize"] = 60,
                ["nonCSS.itemNumber.font"] = "inherit", 
                fontlistpath = LrPathUtils.child('/Library/Fonts','')    -- OSX Default fonts
    Code just prior to LR UI Views -
            deffonts = templatepath .. "/pgresources/" .. 'osxdeffont.txt'      -- templatepath is the root path of the webengine - this is the tweaked OSX fonts.list file
            function readFontsFile( deffonts )
                local fileLines = io.lines( deffonts ) 
                ff3 = {}           
                for line in io.lines(deffonts) do
    Filter lines here ...
    eg:   -
                    line = string.sub(line, 17)   -- remove 1st 16 chrs        (/Library/Fonts//Osaka.ttf)
                    line = string.gsub(line, "(.ttf)", "")
                    local kline = line
                       local vline = line
                       table.insert(ff3, { title =  kline ,value = vline })
                end
            end
    LR UI View for font select -
                f:popup_row {
                    title = "Font family :",
                    bindingValue = "nonCSS.itemNumber.font",
                    items =  ff3,
                    bindingEnabled = "appearance.itemNumber.display",   -- control should be disabled if display checkbox false
                    tooltip = "Choose wisely Dave!",
    Using this method is not perfect but gives a good selection of fonts - I found that to improve the success rate the default font file was copied into the webengine
    resources folder and tweaked. eg:  the default file gives Brush Script.ttf but I needed Brush Script MT to work, similarly with Arial Rounded Bold which needed changing
    to Arial Rounded MT Bold
    Basically to find the correct descriptions you could do far worse than to use the ones in the edit selections used by the ID Plate/watermarking features.
                Well there you go ...
    As an aside I did try an undocumented control which on double click popped up a system font selection dialog (the whole nine yards) but  couldn't get it to link to the css class so I didn't persist - not a good idea to use undocumented controls but can be fun to play with.
        f:font_picker {
            font = "Copperplate",     -- showed font as highlighted when picker opened.
            width = 80,
            value = "Arial",    -- appeared on control (title ??) - this value only changed according to the font selected after double-clicking on another hidden control (f:image_well)
            bindingValue = "nonCSS.itemNumber.font",  -- linkage didn't work
    Again, unless I missed it, it would be really good to have the font_picker documented and working for the web gallery views.  Fonts seem to be a murky area -
    probably accounts for the hassles I am getting with the watermarking feature as well.
    Update :
    If the font doesn't work try using the PostScript name as a value which invariably works.
    eg: Handwriting - Dakota  will not work but Handwriting-Dakota will.
         Arial Bold will not work but Arial-BoldMT will.

    I don't think that there is any option to set the default view in the web album. If anyone has found an option to do this, then I will like to know as well.
    Quite a lot of the settings in web album seams to be "hard coded" and only a few settings are available for users to control.
    Karsten

  • Using ExcelExport without opening the dialog box to select all the channels in portal by default

    Hi,
        I need to export all the data in the Data portal to an Excel file without opening the Dialog for channels selection. In the ExcelExport command, it asks for a Config (*.stp) file as one of the parameters. Is there need to create a new stp file for selecting all channels or can the same file (Example_ASC.stp ) be reused ? If so, do I need to change any content in the system stp file ?
    Thanks
    Venkatesh Murthy

    http://forums.ni.com/ni/board/message?board.id=60&message.id=8565&query.id=128811#M8565

  • Gtk2fontsel pkgbuild. Font selection preview app.

    This is acctually standard gtk2 widget for font selection/preview compiled alone.
    gtk2fontsel PKGBUILD
    pkgname=gtk2fontsel
    pkgver=0.1
    pkgrel=1
    pkgdesc="Font selection and preview tool"
    url="http://gtk2fontsel.sourceforge.net/"
    depends=('gtk2')
    source=(http://dl.sourceforge.net/sourceforge/gtk2fontsel/$pkgname-$pkgver.tar.gz)
    md5sums=('f344018b19b6a818795a4c702770cd9d')
    build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --prefix=/usr
    make || return 1
    make prefix=$startdir/pkg/usr install

    Well, let's say this is solved, though not properly.
    If you encounter a "no show" problem like mine, it may be an issue involving theme multi-compatibility with gtk2, 3, metacity and the like.
    Try switching to another theme to see if your system better "support" it, or use separate themes for gtk2 and gkt3.
    Last edited by sardina (2013-04-13 12:41:31)

  • I use classical Hebrew for my work, and Pages will only display English characters even with a Hebrew font selected. If I cut and paste Hebrew characters from another document, as long as the font is supported, it will appear in Pages.  If I type it won't

    I use classical Hebrew for my work, and Pages will only display English characters even with a Hebrew font selected. If I cut and paste Hebrew characters from another document, as long as the font is supported, it will appear in Pages.  If I type it won't continue in Hebrew.  I have tried downloading several fonts, including those from professional societies, but the only way to get Hebrew in my document is to cut and paste.  Does anyone know how to fix this?  I use an older MacBook running OS 10.9.1.  I used to do my Hebrew work in Word, but it is no longer supported by Mac OS.

    Just clarifying:
    Pages '09 has bad support for Hebrew, Arabic etc but will accept pasted text.
    Pages 5 has much better support but with bugs.
    If you have columns they are in the wrong order ie Text starts in the left column and ends in the right column.
    If you type English into Hebrew text it tends to fall in the wrong position eg instead of to the left of Hebrew punctuation it goes to the right.
    As Tom recommends the only real solution on the Mac is Mellel.
    Peter
    btw Tell Apple, they are amazingly slow to fix this running sore which has been broken since RtoL was supposedly introduced in OSX 10.2.3 over a decade ago.
    Peter

  • Even though I have LCD font smoothing disabled, Mountain Lion still uses it in PDF views, Safari's location bar, Mail's message view, and the dialogs for mounting encrypted disk images.

    Even though I have LCD font smoothing disabled, Mountain Lion still uses it in PDF views, Safari’s location bar, Mail’s message view, and the dialogs for mounting encrypted disk images. Is there any solution to this problem? Also diabled the Smoothing in the SystemPrefs and also via Terminal. Font smoothing is still there. Very annoying, especially in PDF attachments in Apple Mail.

    Try feeding Safari a user-defined CSS file with font-smoothing tweaks (including none). The filename and its filesystem location are arbitrary. Use your favorite coding editor.
    Safari > Preferences > Advanced > Style Sheet:
    Here is an example with all elements uncommented. Pick the one that works best for your Safari viewing and comment out the others:
    Preview. Try Preview > Preferences > PDF > Smooth text and line art (uncheck)

  • MY FONT SELECTION IN ELEMENTS 8 HAS WENT FROM HUNDREDS TO ABOUT 20 WITH NO WAY TO SCROLL FOR OTHERS?

    MY FONT SELECTION IN ELEMENTS 8 HAS WENT FROM HUNDREDS TO ABOUT 20 WITH NO WAY TO SCROLL FOR OTHERS? ANYONE HAVE ANY CLUES DELETED OF COMP AND RE INSTALLED AND STILL THE SAME ON WINDOWS 7

    See if this helps:
    http://helpx.adobe.com/photoshop-elements/kb/scroll-bar-missing-font-list.html

  • Unable to search for font style Italic

    In InDesign's Find/Change dialog, I click on the Find Format magnifying glass to open the Find Format Settings dialog. I click on the Basic Character Formats tab, and in the Font Style field I select 'Italic' from the dropdown menu. When I release the mouse button, the field displays 'Regular', not 'Italic'. If I key the word 'Italic' in the field, the same thing happens. The only way I've been able to get around this is to specify the Font Family as well, but I want to search for Italic Font Style regardless of the Font Family (there are several in the document). I haven't specified any other search details in either the Find/Change dialog or the Find Format Settings dialog. I'm currently using CS5.5 but I've experienced this problem dozens of times in both CS4 and CS5.5. I have a vague recollection of occasionally being able to do it, but if so it's been very rare.
    Is there a reason why this is happening? Is there any way to search for Italic Font Style regardless of Font Family?

    I'm on Mac OS 10.6.8.
    Thanks for the script, it worked fine, but on top of that it inadvertently revealed what is going on with this issue.
    When I ran the script, the Find Format field in the Find/Change dialog showed '+Italic'. However, when I went into the Find Format Settings dialog, the Font Style field said 'Regular'. When I exited the Find Format Settings dialog, the Find Format field still said '+Italic'. The Find process worked fine, that is, it found text formatted as Italic.
    I then went back to what I was originally doing, without using the script, and exactly the same thing happened. The two fields didn't match up, but the Find operation worked fine.
    I'm currently working in CS5.5, but as I recently purchased CS6, I tried it in that program and exactly the same thing happened. And just to confirm my recollection, I tried it in CS4 and it happened there too.
    I realise also why it has occasionally worked OK. Sometimes I would have entered Italic in the Font Style field and immediately clicked OK to exit the Find Format Settings dialog, and I wouldn't have noticed anything wrong. But once I got used to the problem, I started to make a habit of tabbing out of the Font Style field 'just to make sure'. I would have seen it revert to Regular, and I would have just given up and (unnecessarily) worked my way through the font families one by one.
    Anyway, now that I know what's going on, it's not a problem at all, but it's odd that it's persisted through at least three versions of InDesign. Thanks, Jongware, for your help.
    Does this happen on Windows? Has anyone else on a Mac experienced this strange behaviour?

  • How  to write code for font family using swing?

    how to write code for font family using swing?
    i tried this code.but i got only font styles.but i need font family.observ this code
    import java.awt.*;
    import java.awt.event.*;
    public class fontSelect extends java.awt.Dialog implements AdjustmentListener, ItemListener, TextListener, ActionListener {
    public Font selectedFont; //to get result
    public boolean isSelected = false;
    public Color selectedBackground, selectedForeground;
         public fontSelect(Frame parent, boolean modal) {
              super(parent, modal);
         String fntName[] = getToolkit().getFontList();
    GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    String[] names = ge.getAvailableFontFamilyNames();
              //{{INIT_CONTROLS
              setLayout(null);
              setVisible(false);
    //setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setSize(insets().left + insets().right + 380,insets().top + insets().bottom + 282);
              setBackground(java.awt.Color.lightGray);
    fontList = new java.awt.Choice();
              //fontList = new java.awt.List(0,false);
              add(fontList);
              fontList.setBounds(insets().left +25,insets().top + 50,137,144);
              //label1 = new java.awt.Label("Example:-");
              //label1.setBounds(insets().left + 220,insets().top + 36,84,30);
              //add(label1);
              exampleText = new java.awt.TextField();
              //exampleText.setText("sample string ");
              //exampleText.setBounds(insets().left + 40,insets().top + 50,84,21);
              //add(exampleText);
              label2 = new java.awt.Label("Font Family:-");
              label2.setBounds(insets().left + 25,insets().top + 30,70,19);
              add(label2);
              isBold = new java.awt.Checkbox("Bold");
              isBold.setBounds(insets().left + 320,insets().top + 90,60,18);
              isBold.setFont(new Font("Times New Roman", Font.BOLD, 12));
              add(isBold);
              isItalic = new java.awt.Checkbox("Italic");
              isItalic.setBounds(insets().left + 250,insets().top + 90,48,17);
              isItalic.setFont(new Font("Times New Roman", Font.ITALIC, 12));
              add(isItalic);
              showFont = new java.awt.Label("samplestring ",Label.CENTER);
              showFont.setBounds(insets().left + 240,insets().top +50,120,30);
              showFont.setBackground(java.awt.Color.white);
              add(showFont);
    label11 = new java.awt.Label("Size:-");
              label11.setBounds(insets().left + 290,insets().top + 120,70,19);
              add(label11);
              fontSize = new java.awt.Choice();
    add(fontSize);
              //label11 = new java.awt.Label("Example string");
              fontSize.setBounds(insets().left + 290,insets().top + 140,60,23);
              fontSize.setBackground(java.awt.Color.white);
              btnSelect = new java.awt.Button();
              btnSelect.setLabel("Select");
              btnSelect.setBounds(insets().left + 280,insets().top + 190,87,24);
              add(btnSelect);
              btnCancel = new java.awt.Button();
              btnCancel.setLabel("Cancel");
              btnCancel.setBounds(insets().left + 280,insets().top + 230,91,24);
              add(btnCancel);
              label3 = new java.awt.Label("Background:-");
              label3.setBounds(insets().left + 24,insets().top + 90,94,18);
              add(label3);
              rBackground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,255,0,0,255);
              rBackground.setBounds(insets().left + 24,insets().top +110 ,197,21);
              add(rBackground);
              gBackground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,255,0,0,255);
              gBackground.setBounds(insets().left + 24,insets().top + 135,197,21);
              add(gBackground);
              bBackground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,255,0,0,255);
              bBackground.setBounds(insets().left + 24,insets().top + 160,197,21);
              add(bBackground);
              label4 = new java.awt.Label("R");
              label4.setBounds(insets().left + 12,insets().top + 110,12,18);
              label4.setFont(new Font("Times New Roman", Font.BOLD, 12));
              label4.setForeground(java.awt.Color.red);
              add(label4);
              label5 = new java.awt.Label("G");
              label5.setBounds(insets().left + 12,insets().top + 135,12,18);
              label5.setFont(new Font("Times New Roman", Font.BOLD, 12));
              label5.setForeground(new Color(-16744448));
              add(label5);
              label6 = new java.awt.Label("B");
              label6.setBounds(insets().left + 12,insets().top + 160,12,18);
              label6.setFont(new Font("Times New Roman", Font.BOLD, 12));
              label6.setForeground(java.awt.Color.blue);
              add(label6);
              rBackValue = new java.awt.Label("255");
              rBackValue.setBounds(insets().left + 225,insets().top + 110,24,12);
              rBackValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
              rBackValue.setForeground(java.awt.Color.red);
              add(rBackValue);
              gBackValue = new java.awt.Label("255");
              gBackValue.setBounds(insets().left + 225,insets().top + 135,24,12);
              gBackValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
              gBackValue.setForeground(new Color(-16744384));
              add(gBackValue);
              bBackValue = new java.awt.Label("255");
              bBackValue.setBounds(insets().left + 225,insets().top + 160,24,12);
              bBackValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
              bBackValue.setForeground(java.awt.Color.blue);
              add(bBackValue);
              label7 = new java.awt.Label("Foreground:-");
              label7.setBounds(insets().left + 20,insets().top + 185,94,18);
              add(label7);
              rForeground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,0,0,0,255);
              rForeground.setBounds(insets().left + 20,insets().top + 205,197,21);
              add(rForeground);
              gForeground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,0,0,0,255);
              gForeground.setBounds(insets().left + 20,insets().top + 230,197,21);
              add(gForeground);
              bForeground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,0,0,0,255);
              bForeground.setBounds(insets().left + 20,insets().top + 255,197,21);
              add(bForeground);
              label8 = new java.awt.Label("R");
              label8.setBounds(insets().left + 10,insets().top + 205,12,18);
              label8.setFont(new Font("Times New Roman", Font.BOLD, 12));
              label8.setForeground(java.awt.Color.red);
              add(label8);
              label9 = new java.awt.Label("G");
              label9.setBounds(insets().left + 10,insets().top + 230,12,18);
              label9.setFont(new Font("Times New Roman", Font.BOLD, 12));
              label9.setForeground(new Color(-16744448));
              add(label9);
              label10 = new java.awt.Label("B");
              label10.setBounds(insets().left + 10,insets().top + 255,12,18);
              label10.setFont(new Font("Times New Roman", Font.BOLD, 12));
              label10.setForeground(java.awt.Color.blue);
              add(label10);
              rForeValue = new java.awt.Label("255");
              rForeValue.setBounds(insets().left + 220,insets().top + 205,24,12);
              rForeValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
              rForeValue.setForeground(java.awt.Color.red);
              add(rForeValue);
              gForeValue = new java.awt.Label("255");
              gForeValue.setBounds(insets().left + 220,insets().top + 230,24,12);
              gForeValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
              gForeValue.setForeground(new Color(-16744384));
              add(gForeValue);
              bForeValue = new java.awt.Label("255");
              bForeValue.setBounds(insets().left + 220,insets().top + 255,24,12);
              bForeValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
              bForeValue.setForeground(java.awt.Color.blue);
              add(bForeValue);
              setTitle("Choosing font");
              //{{REGISTER_LISTENERS
              exampleText.addTextListener(this);
              btnSelect.addActionListener(this);
              btnCancel.addActionListener(this);
              isBold.addItemListener(this);
              fontList.addItemListener(this);
              isItalic.addItemListener(this);
              fontSize.addItemListener(this);
              rBackground.addAdjustmentListener(this);
              gBackground.addAdjustmentListener(this);
              bBackground.addAdjustmentListener(this);
              rForeground.addAdjustmentListener(this);
              gForeground.addAdjustmentListener(this);
              bForeground.addAdjustmentListener(this);
    for (int i = 0; i < (int)fntName.length; i++)
    fontList.addItem(fntName);
              showFont.setFont(new Font(fntName[0], Font.PLAIN, 12));
    // GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    //String[] names = ge.getAvailableFontFamilyNames();
    for ( int i=0; i<names.length; i++ )
    System.out.println( names[i] );
              selectedBackground = showFont.getBackground();
              selectedForeground = showFont.getForeground();
              int i = 8;
              do {
                   fontSize.addItem(""+i);
                   if (i<=30) i+=2;
                   else if (i<=70) i+=4;
                   else i+=8;
              } while (i<150);
              try {
                   fontSize.select(2);
              } catch (IllegalArgumentException e) { }
         //{{DECLARE_CONTROLS
         //java.awt.List fontList;
    java.awt.Label label11;
         java.awt.Label label1;
         java.awt.TextField exampleText;
         java.awt.Label label2;
         java.awt.Checkbox isBold;
         java.awt.Checkbox isItalic;
         java.awt.Label showFont;
         java.awt.Choice fontSize;
    java.awt.Choice fontList;
         java.awt.Button btnSelect;
         java.awt.Button btnCancel;
         java.awt.Label label3;
         java.awt.Scrollbar rBackground;
         java.awt.Scrollbar gBackground;
         java.awt.Scrollbar bBackground;
         java.awt.Label label4;
         java.awt.Label label5;
         java.awt.Label label6;
         java.awt.Label rBackValue;
         java.awt.Label gBackValue;
         java.awt.Label bBackValue;
         java.awt.Label label7;
         java.awt.Scrollbar rForeground;
         java.awt.Scrollbar gForeground;
         java.awt.Scrollbar bForeground;
         java.awt.Label label8;
         java.awt.Label label9;
         java.awt.Label label10;
         java.awt.Label rForeValue;
         java.awt.Label gForeValue;
         java.awt.Label bForeValue;
    private Font constructFont() {
    int l;
    try {
    l = Integer.parseInt(fontSize.getSelectedItem());
    } catch (NumberFormatException e) {l = 12;}
    selectedFont = new Font(fontList.getItem(fontList.getSelectedIndex()>=0?fontList.getSelectedIndex():0 ), (isBold.getState()?Font.BOLD:0)+(isItalic.getState()?Font.ITALIC:0), l);
    selectedBackground = new Color(rBackground.getValue(), gBackground.getValue(), bBackground.getValue());
    selectedForeground = new Color(rForeground.getValue(), gForeground.getValue(), bForeground.getValue());
    return (selectedFont);
         public void textValueChanged(java.awt.event.TextEvent event) {
              Object object = event.getSource();
              if (object == exampleText) showFont.setText(exampleText.getText());
         public void actionPerformed(java.awt.event.ActionEvent event) {
              Object object = event.getSource();
              if (object == btnSelect) {
    isSelected = true;
    selectedFont = constructFont();
         dispose();
    } else if (object == btnCancel) {
         selectedFont = null;
    selectedBackground = null;
    selectedForeground = null;
    dispose();
         public void itemStateChanged(java.awt.event.ItemEvent event) {
              Object object = event.getSource();
              if (object == isBold) showFont.setFont(constructFont());
              else if (object == fontList) showFont.setFont(constructFont());
              else if (object == isItalic) showFont.setFont(constructFont());
              else if (object == fontSize) showFont.setFont(constructFont());
         public void adjustmentValueChanged(java.awt.event.AdjustmentEvent event)
              Object object = event.getSource();
    constructFont();
    showFont.setBackground(new Color(rBackground.getValue(), gBackground.getValue(), bBackground.getValue()));
    showFont.setForeground(new Color(rForeground.getValue(), gForeground.getValue(), bForeground.getValue()));
    if (object == rBackground) rBackValue.setText(""+rBackground.getValue());
              else if (object == gBackground) gBackValue.setText(""+gBackground.getValue());
              else if (object == bBackground) bBackValue.setText(""+bBackground.getValue());
              else if (object == rForeground) rForeValue.setText(""+rForeground.getValue());
              else if (object == gForeground) gForeValue.setText(""+gForeground.getValue());
              else if (object == bForeground) bForeValue.setText(""+bForeground.getValue());

    Okay, that's better. It would have been nice if the code was formatted, and if there was about 20% of that code. (Your example could have been just one JLabel and nothing else, for example.)
    Anyway, now that you've posted that code, what is your question about it? I see you are calling a "getAvailableFontFamilyNames" method; do you have a question about that? If so, what is the question?

  • AI CS4/CS5 Font selection sections

    Hello,
    I'd like to ask if there is any information available on how are the fonts in font selection dialog ordered - they are obviously grouped by script - latin, chinese, japanese, korean etc. What is the precise order of the groups? Is this order the same on every system(what if there are no fonts for a specific group installed) ?
    + Is there a possibility to swtich not just "English names" of Asian fonts, but to have both like seen in Indesign ?
    thanks,
    Alexander

    Hello Mike,
    can you perhaps answer the first query?
    What is the precise order of the groups? Is this order the same on every  system(what if there are no fonts for a specific group installed) ?
    thanks,
    Alexander

  • Maintenance dialog for table

    Hello folks,
    I had successfully created a table and I tried inserting some records in to the table using table maintenance.
    I received the following error.
    'The maintenance dialog for table zxxx is incomplete or not defined'.
    What does this mean?? And what should I do??
    I am pasting the detail help over this error.
    The maintenance dialog for ZTV_DBS_RANGE_NO is incomplete or not defined
    Message no. SV 037
    Diagnosis
    The called function with the view/table ZTV_DBS_RANGE_NO needs a special maintenance dialog which, however, either does not exist at all, or does not exist completely.
    System Response
    The called function cannot be performed.
    Procedure
    Generate the required maintenance dialog.
    Please help

    You have to create the maintenance dialog for table you would like to use with transaction SM30 / SM31.
    To do this look the transaction SE55.
    (or SE11, select the table, MODIFY, (menu) Utilities -> Maintain dialog ... )
    Regards
    Frédéric
    Message was edited by: Frédéric Girod

  • Can i change the behavior of the character menu so that the list begins with the current font selected and not at the beginning of the list?

    Im struggling with the way the font selection tab works in the character menu.
    When i scroll down the list and select minion halfway down the list, the next time i click on the font tab, the list starts back at the top of the list making me scroll down the list every time i want to look for a font.
    Can anyone offer some suggestions here?
    thanks
    jeff

    You can't do it exactly the way you want, but if you have InDesign CC or CC 2014, you can set fonts in the Character panel or Control panel Type menu to be Favorites. Click the "star" beside a font to set it as a favorite. Then at the top of the menu, click the "star" filter to show favorites in your list instead of a list of all the fonts.

  • F4 help for a selection screen parameter with filename created dynamically

    Hi All,
              I have a requirement where in an F4 help should be present for a selection screen parameter. After selecting the filepath and clicking OK button on the Dialog, the filename should be dynamically get created in the selection screen parameter field. For example:
    if the path is D:\DOCS then at the end of DOCS the filename should automatically get populated.
    Like below string:
    D:\DOCS\new.txt
    Is there any function module or method which does this kind of activity.
    Thanks in advance,
    Deepak

    this code will help:
    FORM get_filename  CHANGING p_filename.
      DATA      : lv_filename  TYPE string,
                  lv_rc TYPE i,
                  li_filetable TYPE filetable.
      CONSTANTS : lc_fname TYPE string VALUE 'ZRPP4000.XLS',
                  lc_fpath TYPE string VALUE 'C:\',
                  lc_extn TYPE string VALUE 'XLS'.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          default_filename        = lc_fname
          initial_directory       = lc_fpath
          default_extension       = lc_extn
        CHANGING
          file_table              = li_filetable
          rc                      = lv_rc
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4
          OTHERS                  = 5.
    IF  sy-subrc = 0 .
        READ TABLE li_filetable INTO lv_filename INDEX 1.
        IF sy-subrc = 0.
          p_filename = lv_filename.
        ENDIF.
      ENDIF.
      REFRESH li_filetable.
      CLEAR:lv_filename.
    ENDFORM.                    "get_filename
    " p_filename is selection screen parameter

  • How to access the Document Options dialog box to select display properties?

    How to access the Document Options dialog box to select display properties (e.g. smartcut ) for a selected document to
    be viewed in the Workspace.
    regards

    Preferences --> General --> Reset all warnings.
    Mylenium

  • Prompt for Directory Selection when deploying in WEB

    I have created a Java code to prompt for directory selection and it works when alone. When I get the code with the JavaBean in the forms 6i application, no dialog prompt appears when clicking the "Get_directory" button. The Java code is listed below.
    (A) File DDialog.java
    package oracle.forms.intex;
    import java.awt.*;
    import javax.swing.*;
    import java.beans.*;
    import java.io.File;
    public class DDialog extends Canvas {
    private String directory_name ;
    private PropertyChangeSupport pcs;
    public DDialog() {
    directory_name = "";
    pcs = new PropertyChangeSupport(this);
    public void set_directory_name() {
    JFrame frame = new JFrame("Get Directory");
    javax.swing.JFileChooser OpenDlg = new JFileChooser();
    OpenDlg.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    int returnVal=OpenDlg.showOpenDialog(frame);
    String old_directory_name = directory_name;
    if(returnVal == JFileChooser.APPROVE_OPTION)
    File selectedFile = OpenDlg.getSelectedFile();
    if (selectedFile.isDirectory())
    directory_name=selectedFile.getPath();
    pcs.firePropertyChange("directory_name", old_directory_name, directory_name);
    public void addPropertyChangeListener(PropertyChangeListener pcl) {
    pcs.addPropertyChangeListener(pcl);
    public void removePropertyChangeListener(PropertyChangeListener pcl) {
    pcs.removePropertyChangeListener(pcl);
    public static void main(String args[]) {
    new DDialog();
    (B) File DDialogPJC.java
    package oracle.forms.intex;
    import java.awt.*;
    import java.awt.event.*;
    import java.beans.*;
    import oracle.forms.properties.ID;
    import oracle.forms.handler.IHandler;
    import oracle.forms.ui.CustomEvent;
    import oracle.forms.ui.VBean;
    public class DDialogPJC extends VBean implements PropertyChangeListener{
    private Component mComp;
    private IHandler mHandler;
    private static final ID SHOWDIRECTORYDIALOG = ID.registerProperty("showdirectorydialog");
    private static final ID DIRECTORYNAME = ID.registerProperty("directoryvalue");
    private static final ID DIRECTORYCHANGEEVENT = ID.registerProperty("directorychangeevent");
    public DDialogPJC() {
    super();
    try{
    ClassLoader cl = getClass().getClassLoader();
    Object obj = Beans.instantiate(cl,"oracle.forms.intex.DDialog");
    mComp = (Component)obj;
    mComp.setVisible(true);
    mComp.setEnabled(true);
    ((oracle.forms.intex.DDialog)mComp).addPropertyChangeListener(this);
    // add the component to this
    add("Center",mComp);
    catch(Exception e){
    e.printStackTrace();
    public void init(IHandler handler)
    super.init(handler);
    mHandler = handler;
    public boolean setProperty(ID pid, Object value)
    if(pid ==SHOWDIRECTORYDIALOG) {
    ((oracle.forms.intex.DDialog)mComp).set_directory_name();
    return true;
    else
    return super.setProperty(pid,value);
    public void propertyChange(PropertyChangeEvent pce) {
    String new_directory_name=(String)pce.getNewValue();
    try {
    mHandler.setProperty(DIRECTORYNAME, new_directory_name);
    catch(Exception e) {}
    CustomEvent ce = new CustomEvent(mHandler, DIRECTORYCHANGEEVENT );
    dispatchCustomEvent(ce);
    (C) In the form, there is the button "GET_DIRECTORY" with code in WHEN_BUTTON_PRESSED trigger.
    declare
    DDialog_Bean Item;
    begin
    DDialog_Bean:=find_item('DDIALOG_BEAN');
    if not id_null(DDialog_Bean) then
    set_custom_item_property(DDialog_Bean,'showdirectorydialog',1);
    end if;
    end;
    (D) In the same form, there is the javabean area "DDIALOG_BEAN" with code in WHEN_CUSTOM_ITEM_EVENT trigger.
    declare
    DDialog_Bean Item;
    BeanValListHdl ParamList;
    paramType Number;
    EventName varchar2(20);
    directory_name varchar2(255);
    begin
    DDialog_Bean:=find_item('DDIALOG_BEAN');
    BeanValListHdl:=get_parameter_list(:system.custom_item_event_parameters);
    EventName:=:system.custom_item_event;
    if (EventName='directorychangeevent') then
    get_parameter_attr(BeanValListHdl,'directoryvalue',ParamType,directory_name);
    :directory_name:=directory_name;
    end if;
    end;
    Please advise where the problem is and fix it, much thanks.
    SK

    Hello there SK. actually i have same problem with you. i am only new to Forms6i. Itried your code DDialog.java and the DDialogPJC.java
    Ive got an error when i compile the DDialogPJC.java using the java complier.
    here is the err:
    package oracle.forms.properties does not exist
    package oracle.forms.handler does not exist
    package oracle.forms.ui does not exist
    package oracle.forms.handler does not exist
    how can i solve this problem. you said that it works properly in your machine.
    please help me on this, i also want to try fixing your problem, but i need this to be fixed first. thank you and more power

Maybe you are looking for