Problem when moving our app to Linux platform

Hi to all,
My app uses Java swings which will work only on windows (platform dependent).
We used Windows LookandFeel and font for labels as Arial, Tahoma... and set the size for each component according to the windows look and feel, while we developed our app.
If we change the look and feel to Metal look and feel, labels will not be displayed fully. (Instead of displaying the label as Observation, it displays Observ...). Everywhere in the view, we were facing this problem if we change the look and fell.
Now we are trying to make our app to be platform independent for which we are working with Linux.
While working with linux, there is no windows look and feel and no font called Tahoma or Arial.
Because no font called Arial or Tahoma exist and there is no windows look and feel, Instead of displaying the label as Experimenting, it is displaying as Experim..... This problem occurs everywhere in my apps.
Also wherever we used Labels in the classes (nearly some 150 class), we specified the font as Tahoma.
Is there any alternative in Java like Macros (Preprocessor) in C, so that wherever we used the word Tahoma, everywhere it will be changed, if i change it in one place.
Thanks in advance.

Bala wrote:
But how to make the components fully visible and avoid the above problem, even if we change different look and feel and runs on different platforms?IMO: the only real way is to use a cross-platform look & feel so the app looks the same on all environments - it doesn't have to be a built-in one, there are plenty of cool look & feels to be found on the net. In any other case its the same as developing a website: where you would have to create CSS and test it under each browser that you want to support, in the case of Swing you have to create the GUI with system look & feel and test it under every environment that you want to support; tinker and adjust until it works everywhere.
Another option which is even more of an overhaul is to build on top of the Netbeans platform, which is designed to display correctly in Windows, Mac and Linux (although you can probably still screw it up if you're not careful) and also gives you access to advanced features such as docking windows.

Similar Messages

  • Version 33, problems when moving tab to new window, then if you open a new tab in that window it doesn't switch to it unless you use Ctrl-Tab?

    Version 33, problems when moving tab to new window, then if you open a new tab in that window it doesn't switch to it unless you use Ctrl-Tab.

    Type '''about:preferences'''<enter> in the address bar.
    Select '''General.''' Look for '''Tabs.'''
    Turn on '''When I open a link in a new tab, switch to it immediately'''

  • Provisioning Profile - problems with installation our app build on devices

    We have problems with installation our app build on few devices. There are all in Provisioning Profile, but we don't know why we can't install the build on some devices. Any ideas?

    Apple products needing Apple love/support (athough using Adobe to compile to Apple-code may be an obvious concern since nothing beats native-code)
    The app still however requires code-signing in the correct manner - personally, the more the merrier.

  • I use captivate 8, the problem when i make app for android. the sound not heard. i use android4.4. how i do?

    i use captivate 8, the problem when i make app for android. the sound not heard.
    i use android4.4. how i do?
    i use phonegap online.
    thank you

    Yes I do spend a lot of time in China but I have had problems in other countires as well.  I am in China right now.
    I have two Gmail accounts and one Cox account.  Cox is my intranet provider back home.  I have had problems with all three accounts. 
    I have tried several outgoing port settings.  993, 995 465, 587 are some that I can remember trying.
    Sometimes my accounts will go offline without me doing anything.  This is all a mystery to me.  I don't have any idea why I have trouble like this.  A few minutes ago I changed my Cox account outgoing port and took the account on line and I got my incoming email but when I tried to forward an email that I got it would not go out. 
    Any ideas you have would be helpful.

  • Intel Macs & G5s: Problems when moving projects between them

    An earlier post* suggesting complete compatibility between the latest FCP in a G5 and in an Intel Mac may be in error.
    We are experiencing continuing crashes using our Intel Mac when we work on projects that were originally either imported or partially rendered in the G5.
    It has gotten to the point where we feel we must keep projects completely isolated from each other: Either it is a "G5 project" or it is an "Intel Mac" project. Moving projects back and forth between the two leads to problems such as:
    The Intel Mac does not recognize any renders done in the G5...
    The Intel Mac crashes when rendering 'G5' projects...
    The Intel mac crashes when compressor goes to work to export sequences to mpeg...
    The G5 works fine with Intel Mac-originated material: It is only in the Intel Mac where we have these problems.
    Both systems are up-to-the minute on their OS, security updates, and FCP versions. We are using variously 720p/30 from the JVC GY-100UA and 1080i/30 from the Sony Z1U.
    Our questions are:
    Is anyone else experiencing similar problems moving projects between a G5 and an Intel Mac?
    Is anyone moving projects between the two platforms and experiencing NO problems at all? That information would be just as valuable, and very welcome.
    Apple FCP development team: Is our experience unique or have you had other reports like this? Any idea what could be causing our problems -- and what we can do to fix them?
    * http://discussions.apple.com/thread.jspa?messageID=3604812&#3604812
    Intel MacPro Tower, 3gHz, 8mb   Mac OS X (10.4.8)   Also a G5 Tower, 2x2.5ghz, single core

    Scott,
    Welcome to the discussions!
    I have had no problems moving my G5 projects over to my MP.
    You can not move render files between machines.
    When you changed systems, did you use Migration Assistant to transfer your files over to your new Mac Pro? You might need to install from the disks in order to achieve native Intel performance. See if you installed Final Cut 5.1 on your G5 then it installed the PPC code... if you put that drive into your Mac Pro or used Migration Assistant to move the app over it is still the PPC code... When you install from the installation disk, Installer determines what system you are installing on (PPC or Intel) and that's what it installs. This goes for all of your "Universal Binary" apps...
    In the System Profiler app. under Software/Applications
    Final Cut Pro "kind" should be Universal on your MP.
    The FCP development team do not read these posts, only users do.

  • Got problem when installing air app on iphone simulator

    Hi,
    when i execute this command:
    adt -installApp -platform ios -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/S DKs/iPhoneSimulator5.1.sdk -device ios-simulator -package test.ipa
    I got a error:
    dyld: Library not loaded: @rpath/iPhoneSimulatorRemoteClient.framework/Versions/A/iPhoneSimulatorRemoteClient
      Referenced from: /Applications/Adobe Flash Builder 4.6/sdks/4.6.0_air_3.3_beta2/lib/aot/bin/isb/isb
      Reason: image not found
    /var/folders/kf/__q_f1n9789cl9thm45p4fvw0000gn/T/cmd14498987401590501.tmp: line 1:   824 Trace/BPT trap: 5       "/Applications/Adobe Flash Builder 4.6/sdks/4.6.0_air_3.3_beta2/lib/aot/bin/isb/isb" "-install" "-apppath" "/var/folders/kf/__q_f1n9789cl9thm45p4fvw0000gn/T/1f8cd5bc-d002-4fbc-8410-cf163ef2272b/Pa yload/Main.app" "-sdkpath" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/ SDKs/iPhoneSimulator5.1.sdk"
    I am a new mac user, my system is Mac OS X 10.7.3, with the xcode 4.3.1 installed. Does anybody help me? thanks.

    Have the same problem.
    dyld: Library not loaded: @rpath/iPhoneSimulatorRemoteClient.framework/Versions/A/iPhoneSimulatorRemoteClient
      Referenced from: /Users/zh/Documents/flashResources/SDKs/4.6.0 + AIR 3.3b2/lib/aot/bin/isb/isb
      Reason: image not found
    /var/folders/dw/v8kcffb17fq4386ntnmw92540000gp/T/cmd2510539742407100497.tmp: line 1:  2050 Trace/BPT trap: 5       "/Users/zh/Documents/flashResources/SDKs/4.6.0 + AIR 3.3b2/lib/aot/bin/isb/isb" "-install" "-apppath" "/var/folders/dw/v8kcffb17fq4386ntnmw92540000gp/T/512b6309-2a2d-467d-a1cc-56687aab4f4c/Pa yload/test.app" "-sdkpath" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/ SDKs/iPhoneSimulator5.1.sdk"

  • Exchange Mail Offline Problem when moving/deleting mails

    Hi there,
    I am using the Apple Mail Program to connect to my corporate Microsoft Exchange Server. This work perfectly well (also with the calendar, tasks, etc.)
    Mail also work s well while I am online.
    When I work offline (I often travel in planes in trains) I can write emails, respond to mails and those will be synchronized without any problem when I am back online.
    But the strange thins is that Mail sets back all changes in my inbox without any recognizable trigger. Meaning, I am moving emails from the inbox folder to other folders and/or deleting emails from my inbox. After switching from the inbox to another folder, or simply shortly to another program and then coming back, ALL moved and deleted emails show up again in the inbox. This is strange, because I am offline the whole time - thus the expanation that the server synch has changed everything back cannot be. At the same time, written emails stay in the outbox folder and remain there until I go online again.
    I asked an apple employee at Genious Bar but he could help me. Another friend of me who uses another corporat Exchange Server experiences the same  problem. Can anyone help?

    One thing that may help is to go to Mail Preferences, Accounts, and in your account under the Advanced tab select the check box for "Prompt me to skip messages over xxx kB" (where you indicate how many kB). This can reduce the download times by factors of 2 to 4 or more, depending on the size of the attachments.
    I think the more specific control you are looking for that is analogous to what you can do on the iPhone and iPad might not be available on the computer versions of Mail.
    Edit added: I just noticed that the above option is only available for POP accounts, but not for Exchange (IMAP) accounts, so unfortunately it may not apply to your account.
    Message was edited by: steve626

  • Problems when moving from OWB 10.1 to OWB 10.2

    Hello!
    I got some problems when I try to move from OWB 10.1 to OWB 10.2.
    In the new environment I have
    Oracle Warehouse Builder Client 10.2.0.1.31
    Oracle Warehouse Builder Repository 10.2.0.1.0
    When I try to create a dimension I got the following errors:
    VLD-0338: The hierarchy DEF in dimension D_ENGINE contains only one level ENGINE.
    For Storage Type-relational along with Deployment Option-Deploy Data Objects, dimension can consist of only one level (without any containing hierarchy).
    VLD-0339: In Relational Dimension D_ENGINE, the hierarchy DEF contains either only one level or no levels.
    Relational Dimension hierarchy should contain atleast two levels or relational dimension can contain only one level with out any hierarchy.
    When I then try to edit the dimension the Data Object Editor is not opened when I right-click and select "Open Editor". However when I double-click the Data Object Editor is opened but it is totally empty.
    Another problem I have is when I try to create a Process Flow, I can't create any tranistions. When I place the cursor on the first activity I get the arrow but when I drag it to the next no arrow is cretaed between them,
    I also like to add parameters to the start activity but I can't find the "Activity View"

    Hi,
    i don´t think that thie Version is so full with bugs, i use it since 11 month, that way...
    Some tricky Things there, thats right,
    but what heres explained as Problems, i think that might not be patched away :-)
    Lone

  • Since the last software update for mountain lion I am having a problem when moving screenshots to trash. Now a Finder box appears saying finder wants to make changes and I have to enter my password for every action.

    Since the last software update for mountain lion, I am having a problem when trying to remove any screenshots to the trash. A box appears saying "Finder wants to make changes. Type your password to allow this"
    I have checked Finder Preferences and cannot find any box that I can 'UNTICK' to resolve this. I sometimes take a lot of screenshots when I am researching something and now find I have to enter my password for every screenshot to be removed to trash.
    Anyone got a solution please, Thanks

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?

  • Keyboard Problem while running Swing App on LINUX

    Hi All,
    We have a Swing based Application running on Windows Platform. We need to run the Application on LINUX. The Application does not have any problem and runs without problems for a few minutes but after that the keyboard stops to respond inside the application. Keyboard runs fine outside the application but no key events are recognized inside the application. Mouse is working fine even after the keyboard stops responding.
    Key Points:
    �     The keyboard is a PS/2 keyboard.
    �     Read Hat Fedora 5.0 is being used.
    �     The problems occur on both KDE and GNONE.
    �     The Java Version is jdk1.5.0_09
    The application is data entry application using EJB at server side. The client UI has lot of JTables and Desktop Panes/ Internal Frames. User use ctrl+tab, ctrl+shift+tab, tab, shift+tab, and other hot keys to navigate between Components. Listeners on keyboard Focus Owner are also used. We are unable to diagnose the problem because of the undeterminable nature of the problem. The problem occurs at anytime and does not occur on any special key/ combinations press.
    Thanks and Regards,
    Nishant Saini
    http://www.simplyjava.com

    I've just installed the JDK 1.4 on my debian box. I
    can compile and run a basic Hello World app using
    System.println, but when I try to run a simple swing
    app, I get an error like:
    Exception in thread "main"
    java.lang.NoClassDefFoundError
    at java.lang.Class.forName0(Native Method)
    at java.lang.... etc, etc.
    It goes on with about 30 different classes. It
    compiles fine, with no errors, but when it comes time
    to run, that's what I get. This is what I have in my
    .bash_profile as far as environment variables go:
    export JAVA_HOME="/usr/local/j2sdk1.4.1_01"
    export PATH="$JAVA_HOME/BIN:$PATH"
    export
    CLASSPATH="$JAVA_HOME/jre/lib/:$JAVA_HOME/lib:."The code works fine in Windows, so unless there's
    something platform-specific, I don't think there's a
    problem there. I've checked to make sure I'm not
    running kaffe by accident and I'm definitely running
    the right java and javac. I'm out of ideas. Any
    suggestions would be greatly appreciated.
    -dudley
    I may just be crazy, but your PATH looks a little screwy to me. I was under the impression that the standard java installation has its executables in the 'bin' directory, not the 'BIN' directory. Unless Debian has fallen to the evil empire, then I'm fairly sure file names are case-sensitive. I don't know if that will fix your problem though. Do you compile from the command line, or do you use an IDE???

  • Problems when moving projects to different workstation.

    hi everyone,
    Im done making an application and when i moved to a different workstation, something went wrong.. i created a JPanel + database driven components, i added it to the pallete using pallete manager. every is ok until when i changed my computer, a warning message appear when i view it in design view... "WARNING: Form loaded with errors." The thing is i compiled it and nothing is wrong. the project still runs but a NoClassDefFound error occur... im using same versions of netbeans 5.5 and jdk1.6....
    am i doing the transfering of the project folder right or is on adding the jpanels to the pallete window. Or is it something else...
    im learning java but had confusions in netbeans.
    thanks...
    ieMoon

    Oops... sorry for posting in the wrong forum... thanks anyway... the problem is i missed that my app requires the GroupLayout manager classes, and was not include in the jar... anyway, sorry...
    :)

  • Path problem when moving from Mac to PC

    Adobenoob wrote:
    Hi,
    I'm trying to move our Adobe InDesign installation from Mac to PC, but I ran into a path problem. A lot of our publications/documents in Adobe InDesign have linked to pictures in the filesystem (Windows 2008 R2 server). It goes like this:
    DTP:Produktbilleder:0893ny:0893_467+468_05_Agrp frit_.tif
    And is linked like this directly from InDesign.
    The actual path is:
    /Volumes/DTP/Produktbilleder/0893ny/0893_467+468_05_Agrp frit_.tif
    On the PC I cannot use that path notation and have to go like this:
    F:\DTP\Produktbilleder\0893ny\0893_467+468_05_Agrp frit_.tif
    When the publication/document in InDesign have the Mac link "hardcoded" the PC path will not work.
    Is there a relatively easy way to get the InDesign on PC to use the Mac link or does one have to change all the "hardcoded" links in the publications/documents?
    I hope you understand my question - don't hesitate to ask for more info.
    Best Regards
    Brian

    Hi,
    I have just tested the function - and it seems that the files have to be in the same folder. It is not recursive as I see it. And since we have tens of thousand of pictures in thousands of different folders it does not seem to work.
    Any other suggestions?
    Regards

  • Problem running Java GUI apps in Linux

    When launching GUI Java apps a blank window with only a title appears and nothing more happens. Have no idea of how to deal with it..
    pvs@pvs-laptop:~$ uname -a
    Linux pvs-laptop 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux
    pvs@pvs-laptop:~$ java -version
    java version "1.5.0_14"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
    Java HotSpot(TM) Server VM (build 1.5.0_14-b03, mixed mode)

    Try wrapping the code that actually displays the GUI in a SwingUtilities.invokeLater (...)
    db

  • Audio problems when moving between chapters

    My movie consists of imported video from my camera. I have a two songs playing over the video - one at the beginning of the first chapter and one at the beginning of the last chapter. When I play the movie straight through, the audio works perfectly fine. When I skip between chapters the two with songs play correctly. However the chapters that have the original audio are distorted - the video seems to pause or stall out and the audio doesn't play for several seconds. Does anyone know what my problem might be and how to fix it?

    SteveG, I don't believe it is an 1820m issue at all. Do you have a single or multi-core processor? This behavior did not occur on my old P4 3GHz system. I only started observing it when I built this quad core system about a month ago.
    By the way, today I replaced my mobo with one of the same brand and model and the behavior still exists (to rule out a defective mobo.) I've also tried 3 different video cards (although they were all NVIDIA) and the problem remains no matter which card I use.
    Durin,
    As I was typing the first post, I verified that I was using the Emu 1820m ASIO driver in both Edit and Multitrack views. (As I was writing it, it crossed my mind that I might have it set to something else in one mode.) However, it is the same in both.
    One thing I forgot to mention is that there is one more app that behaves similarly (Reaper). All other apps (Sonar, FL Studio, eXT, Ableton Live, Sound Forge, Wavosaur) do not show this behavior and are rock solid.
    If you'd like to see my thread about this behavior in Reaper (and others who can reproduce it) see here: http://www.cockos.com/forum/showthread.php?t=19036
    I believe Sonar, FL Studio, eXT, Ableton Live, Sound Forge, Wavosaur, etc.. are doing something properly when playing back audio and/or initializing plugins that Adobe Audition and Reaper are failing to do properly with certain hardware configurations.
    -Clayton

  • Pathway problem when moving files in PSE

    I use PSE 6.0 and recently had to reload my operating system (OS).  After reloading my OS I reinstalled PSE 6.0 and restored my catalog to a new location on my hard drive.  I had my catalog backed up onto DVD's.  The restore worked and I went to link missing photos, b/c I did the PSE 'no no' and moved files outside of the PSE program.  It appeared that the missing links were reconnected.  I started to spot-check some of the file property locations and noticed that many of the photo properties had the restore location that I restored the catalog to.  I did not want to keep the photo in this location, so I went to move these folders and files to my external drive where I keep my pictures (I have two drives: one for video and one for photos).  When I try to move the files in PSE to my external drive it moves them to my external video drive instead.  The problem is that when I follow the pathway it moved them to, I do not have this link on my video drive.  The pathway, however, is identical to my photo pathway.  For example.  I have a picture with the property of C:/Documents and Settings/Amy/My Documents/Restore Adobe PSE 100111/My Picture Downloads/Pella Trip.  I tried to move this file to my external K drive (which is my photo drive).  In PSE I click on file then move then browse and moved the file to K:Micah's camera photos/2011/May/2011/05 07.  In PSE when I go to verify that the file was moved to that drive, instead in properties it tells me that the file location is M (my video external drive) and lists the pathway as M:Micah's camera photos/2011/May/2011/05 07.  When I go to START and click on that external drive to follow the pathway to find the photo, it is not on M.  M does not even have the pathway to follow as I do not even have M:Micah's camera in that location.  I have tried disconnecting my external drive M and tried to save the file from the C location to my K drive and then the file becomes an offline file and I have another problem.  So then I tried to reconnect that particular file listed on M but since it's not really on M, I follow the K pathway name and find the file where I requested it to be saved which was K:Micah's camera photos/2011/May/2011/05 07.  When I find the file and click on reconnect I get the message that the file already exists in the catalog.  Then in the dialog box it says M:Micha's camera photos/2011/May/2011/05 07 was not connected to K:Micah's camera photos/2011/May/2011/05 07.  When I click on ok to exit the dialog box my photo is then missing.  I then can't do anything with it.  The pathway in PSE won't move it b/c I can't link it.  It says the file is on my M drive, but it really isn't.  I don't know what to do next.  I would like to move my photo files/folders from C (my hard drive) to K (my external photo drive).  I do not know why PSE is moving them to M (my video drive) which doesn't take me to that file.  I have searched the forums but have found no problems similar to this.  I'm not sure what to do to fix this.  Sorry this got so long...Can anyone help me?

    Highlighting a batch of images and dragging from the PSE9 Media Browser to a folder in the left hand panel, located on external HDD works fine although I’m using Vista and Windows 7 and automatically invokes the elements Move procedure.
    Make sure the new folder has a blue icon to indicate it is being managed in Organizer. If not right click on the folder and choose Import to Organizer.
     

Maybe you are looking for