Solaris CDE raises Fonts on JComponents

Hi,
I have an application written in swing. No matter what look and feel i use, when i run it on Solaris with CDE, all compents with text get "stretched" to be tall enough to hold two lines of text, even though there is only one line.
so check boxes look something like this:
text
[x]
with the text raised too high. the same effect happens with buttons that have icons.
its mostly just really ugly, but in some components, like JTable, the text is shifted up, but the table cell is not stretched, so the top half of the text gets cut off.
any help would be greatly appreciated!
-jl

my collegue has just informed me that it only happens when the application is launched over X11, with X11 server (the computer viewer the application) running on a solaris machine. It does not happen if you run it locally on a solaris machine.
and its not just on CDE.
again, any help would be greatly appreciated!
-jl

Similar Messages

  • Capturing Alt Space in Solaris CDE

    Hello.
    I have this table in an application. I need to popup a menu when the user presses "Alt + Space", when a row has focus. Obviosly, one should use getInputMap(..), getActionMap(..) methods to register the desired action for this particular keystroke. It works fine in Windows, fvwm window manager. However, in Solaris CDE, the frame's menu pops up.
    Question1: Is it possible to capture "Alt + Space" such that it works in CDE too?
    I beleive that the application is not getting the event at all. When I press Alt, a keylistener in the table does get the event. However, the moment i press "Space", the frame's menu gets activated.
    Question2: Is this order of event handling?
    OS gets the event ---> gives it to Window Manager ---> gives it to application?
    Any help would be appreciated.
    Thanx
    Prasanth.
    PS: This is the relavant code snippet.
                final String ALT_SPACE_COMMAND = "ALT_SPACE";
                InputMap keyMap = getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
                // Alt + Space shows the popup.
                KeyStroke ALT_SPACE = KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, KeyEvent.ALT_MASK);
                keyMap.put(ALT_SPACE, ALT_SPACE_COMMAND);
                actionMap.put(ALT_SPACE_COMMAND, new AbstractAction()
                         public void actionPerformed(ActionEvent e)
                              showPopupMenuForSelectedRow();
                    });

    You need to remove a default event from the space bar most probably, look on the api in the keymap class there is a predefined method there

  • Font related issue in JEditorPane on Solaris platform

    Hi,
    I am loading a HTML file which contains tables and in which table header text is in bold . Now when I see the output in the JEditorPane on Solaris, no bold font is seen there...only plane simple font is available for each word.
    This is happening on Solaris platform only. On Windows, its working fine. Please help me out in getting a workaround for the same. I want the table header words in bold format in JEditorPane on Solaris too.
    Thanks,
    gshankar

    well that depends how u are using your text. an XML can be
    easiliy shown in Dynamic text box. there are some issues when you
    mask it,
    although do one thing, if you are using Arial try not to
    embed and then see what happens, if it still raises a problem, let
    me know

  • Uifonts.ali/barcode font aliasing on Solaris

    Hello folks..
    I'm running Oracle Reports 10g on a Solaris box. I am needing to print barcodes on PDF reports I generate. I have installed a TrueType font on my Windows box called Code39Azalea.ttf and did the same thing on the Solaris box.
    On the Solaris side the font was installed using font administrator and the font works fine, same goes on the Windows side.
    I created a plain jane report with some text in it "*12345*" and used the Code39Azalea.ttf font. In preview it looks like a barcode as it should. When I run the report on the web I just see the text "*12345*" and not the barcode.
    In uifonts.ali located in /export/home/10gproduct/guicommon/tk/admin, in the PDF section I created the following:
    Code39Azalea = code39azalea
    No barcode. I even changed it to equal times and various other fonts and it seems as though its not picking up the change. Yes I did restart the jobs to make sure the alias file is being picked up.
    What should I set the alias to?
    Code39Azalea = ?
    Thanks in advance.

    Hello,
    What is the font name used in the PDF file ?
    (Search for /BaseFont in the PDf file
    Example :
    /BaseFont /Helvetica-BoldOblique
    The font name specified at the left of the equal sign must be the font name after the font aliasing. To find this font name, generate a HTML output (DESTYPE=FILE DESNAME=/tmp/fontname.html DESFORMAT=HTML) and check the font name used in the HTML output
    Regards

  • Font issue on Solaris 10

    Hi,
    We are trying to run a flash application on solaris, but the fonts are showing up weird.  Attached is a screen shot.  Any ideas?

    I was able to work around this using the article available at:
    http://www.linuxgazette.com/node/797
    I am still wondering why these aliases were not generated on installation.

  • Print font size too small

    When printing in Safari, the print size is tiny, both in email and web sites, smaller than it appears on screen. When using Internet explorer or Firefox it prints the right size. If I go to Safari edit, preferences, then appearance, and raise font size, it will print larger, but all font sizes on web pages are way big. How can I just increase the print font size. My IP is Comcast. OS is Win XP sp3.

    It should print the same size. Click View -> "Make text bigger" before printing.

  • How to identify default browser through a 'C' program on solaris 8

    I have a requirement to display a html page in the default browser installed on solaris 8 machine through a C program.
    through a C program,
    1. How to identify the default browser installed on a solaris machine?
    2 How to get the path of the default browser installed on solaris machine?
    thanks in advance.

    Thaks a lot for the help,
    When Internet Explorer is installed on solaris as a default browser, it does not change
    the user-prefs.dt file. But still when a HTML document is double clicked from the file manager of solaris CDE, it opens the HTML page in Internet Explorer.
         Internet Explorer copies a file called IE.dt in /etc/dt/appconfig/types/C. Just by copying a file how does the CDE file manager is able to open any html file in Internet Explorer??
         Further the installation path of the Internet Explorer is not fixed as that of netscape. Our application need to display the HTML help in user's default browser.
    On Windows-NT this can be implemented just by passing the html file as an argument to a win32 API ShellExecute(FindExecutable can also be used.
    How this can be achieved on solaris??
    Regards,
    Atul.

  • Update oracle 10.2.0.2 to oracle 10.2.0.3 on solaris 32-bit box

    Hi Every One,
    I am using a test machine which running on solaris 10 32 bit. i installed oracle 10.2.0.2 and its working good.
    I am planning to upgrade this database to 10.2.0.2. to 10.2.0.3.
    So i am searching for the correct patch in metalink. but i unable to find the patch or patch number.
    Kindly any one tell me correct patch number, so i will download and try to finish my task.
    Another question : : : there is no 32 bit verison patch in metalink, if 64 bit patch will work in 32 bit???
    Kindly help me..
    Many Thanks.
    Kumar

    Senthil kumar wrote:
    Hi Every One,
    I am using a test machine which running on solaris 10 32 bit. i installed oracle 10.2.0.2 and its working good.
    I am planning to upgrade this database to 10.2.0.2. to 10.2.0.3.
    So i am searching for the correct patch in metalink. but i unable to find the patch or patch number.
    Kindly any one tell me correct patch number, so i will download and try to finish my task.
    Another question : : : there is no 32 bit verison patch in metalink, if 64 bit patch will work in 32 bit???Yes you are right.. there is no 32 bit version solaris patch available..
    For 10.2.0.3 upgrade patch number is Patchset 5337014 .
    However 10.2.0.4 Patchset 6810189 is available on metalink... May be you can try to upgrade to 10.2.0.4.
    Regarding 10.2.0.3 patchset for 32bit solaris, please raise SR with OSS
    For all upgrades please follow below note id:
    Oracle Database Upgrade Path Reference List [ID 730365.1]
    Regards
    Rajesh

  • HTML output on NT and solaris are diffierent for a report

    Hi,
    I have created a report on win2000
    and did the deployment on Solaris box.
    When i call a report from a nt box HTML
    looks fine but if i call same report from solaris box the font size is changed and also the formatting.
    This also affects the PDF format.
    Any help will be highly appreciated.
    Shailesh

    hello,
    when moving form NT to UNIX (or vice versa), you have to take in
    account, that the fonts you were using on one plattform might
    not be availble on the other one.
    for that reason, reports provides you with font-substituion
    functionality in form of the UIFONTS.ALI file, where you can
    define substitution rules. if you have not set up this file, the
    fonts will be substituted by a default font, which most likely
    will not be the same metrics as your original font.
    but be aware, that the metrics of fonts are different, so you
    might want to check which font on plattform A is best
    represented by which font on plattform B.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • What CDE parameters must be set for LabVIEW 6i Sun?

    We are running LabVIEW 6i Sun using the Common Desktop Environment (CDE). We are unable to bring windows to front reliably, either through LabVIEW property nodes, the "Window" front panel pulldown menu, or by clicking an inactive window with the mouse. We suspect a CDE windowing parameter is not set properly. Any suggestions?

    CDE is a window manager that runs on top of X. X is dumb and requires a Window Manager such as CDE (others include tvm, olvm, olwm, fvwm, and many more) - maybe you can try another window manager? I think Sun used to allow you to change the window manager, but I have not used it for a while.
    Can you reproduce this problem on multiple machines with a fixed pattern that always produces the error? If so, we would look at it ([email protected]) if you get all the version numbers (Solaris, CDE, X, and so forth), attach the VI and any instructions to reproduce this issue. The more details the better, it makes it easier for us to reproduce.
    thanks, hope it works out
    ben schulte
    national instruments

  • Problem with printing the code

    Hi ,
    I m having problems in printing my source code . I use emacs as a text editor. Is there any settings that need to be made before printing . Because when i try to print it didn't print my whole code. And when i try to print it from some where else it gives me error saying printer not found on LPT1. Is it something about the port or what. Plz tell me about it ASAP , because i need to submit my project.
    Bye
    Waiting for reply

    Hello gotchya11,
    If you are using a Unix environment, you can use the "lp" print command to send a document to printer. The "-d <device name>" flag is where you specify which printer to sent the document to. You can do a
    "man lp"
    from the command line to get more info on how to print. Perhaps you need to specify the destination where the file is to be printed. What you can do if you need to print the doc is to just copy and paste your code into a text editor and print from some other program if you are running Solaris CDE or Windows.
    Hope this helps,
    Ming
    Developer Technical Support
    http://www.sun.com/developers/support

  • Changing default monitor refresh rate

    Hello-
    I have just installed x86 Solaris8 on my system at home. I have a TNT2 Ultra card and I am using the default Nvidia TNT2 drivers included with the install on a Hitachi Superscan Monitor. I am capable of displaying the Solaris CDE at 1600x1200 but I have display issuesthat force me to reset my vertical and horizontal positioning every time I turn on the monitor or ever time the screen resolution changes.
    This problem has existed ever since I got my videocard back whenI still had Win98 on the machine. The only way to correct it was to set the default refresh rate for all resolutions to 60Hz.
    Is it possible to do this in Solaris8 and how?
    Any assistance will be greatly appreciated!
    Thank you,
    Daniel J. Noah

    stop the dtlogin, login on the text console, and run kdmconfig.
    In kdmconfig, choose the video card menu entry, don't make changes
    to the video card but use on of the multifrequency monitor entries.
    For example, the multifrequency monitor entry upto 110kHz should give
    ~85 Hz refresh rate at 1600x1200, use one of lower freq. entries to
    tune down the refresh rate...

  • How to hide table header?

    I can hide the table header in metal look and feel.
    but not in solaris cde look and feel.
    How to do this.
    Thanks a lot!

    I haven't tried but: The table header is displayed in the column header of the enclosing scrollpane. When adding the table to the scrollpane it calls scrollPane.setColumnHeaderView(getTableHeader()). I guess you can remove it by calling scrollPane.remove( mytable.getTableHeader() ).

  • First steps in GUI development

    Hi,
    i have some experience in Win32 development (SDK and MFC) and i have to write an application for Solaris/CDE/Motif.
    So what i need are manuals/tutorials for Motif programming, a kind of hello world with some buttons to click on etc. So far i haven't found much on docs.sun.com what could be useful for me, so it would be very kind if you could point me to some links or books etc.
    Thank you,
    Chris

    Hi Chris!
    To make a Motif application is "a bit" different than a Win32 SDK application.
    You should get your hands on the following books from O'Reilly & Associates:
    Vol. 1 Xlib programming manual
    Vol. 2 Xlib Reference Manual
    Vol. 4 X Toolkit Intrinsics programming manual, Motif edition
    Vol. 5 X Toolkit Intrinsics reference manual (motif)
    Vol. 6A Motif programming manual
    Vol. 6B Motif reference manual
    Each book is about 500-900 pages. You could stick to the "minimum" with Vol. 4,5,6A,6B. But to understand what is going on, you would need vol. 1 and 2 as well.
    Vol. 6A contains many nice "Hello World" examples.
    Take a look under the "X Window" section on this page:
    http://unix.oreilly.com/
    Lars-Inge
    Norway

  • Converting ascii to iCal?

    I currently use Solaris CDE with Calendar details kept
    in ascii format. If I am going to use iPlanet's latest
    version of Calendar I need a way of importing all of ascii files for users into iCal. Otherwise I'm left resubmitting all details for the year.

    Hello I need some help.
    I need to convert the ASCII data to Binary form. Like
    if i have the character 'A' and its ASCII is 65 then
    its binary would be 01000001.
    If there is any function/method available in java to
    convert ascii to binary, i would be really thanful.
    byte ascii = 65;
    String binresult = "";
    for(int i=0;i<8;i++) {
      if(ascii%(2^i)=0) binresult += "0";
      else binresult += "1";
    }

Maybe you are looking for