Themes with CDE/Motif ?

Hi there,
concerning: Swing GUI.
I like to use the CDE/Motif LnF, but have to customize the color settings in our application.
Without changes, the default background is a nasty grey, the frame color is an ugly violett ...
Now, I know there is a themes mechanism, but AFAIK only for the Metal LnF.
Does anybody how to change these application wide color resources without setting the color properties for every single JComponent ?

Thank you for the reply,
maybe I have to give some more explanation of what I want to do:
Say, I have 15 components (Buttons, Labels, CheckBoxes ...). Now, when I display them within a container using the CDE/Motif LnF, they all come up with a particular default background color, in my case grey. I like to set one single property somewhere to change the background color for all the components at once. I think this is the purpose of the Theme concept available for the Metal LnF. But I couldn't find anything like themes for CDE/Motif. Is there any other way to achieve the same effect without having to use Themes, or do Themes exist for CDE/Motif, for example as extension to Java Swing ?
Thank you for help
AE

Similar Messages

  • JTree in CDE/Motif!

    In JTree component in CDE/Motif look and feel, when I press arrow keys, the focus moves but the selection isn't move. How can I let them synchronize, just like Motif look and feel.
    Thanks a lot!!!

    Look at the example for the use of getPathForLocation(evt.getX(), evt.getY():
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    * @version 1.0 11/09/98
    class ToolTipTreeNode extends DefaultMutableTreeNode {
    private String toolTipText;
    public ToolTipTreeNode(String str, String toolTipText) {
    super(str);
    this.toolTipText = toolTipText;
    public String getToolTipText() {
    return toolTipText;
    public class ToolTipTreeExample extends JFrame {
    public ToolTipTreeExample() {
    super("ToolTipTreeExample");
    String[][] strs = {{"swing", "boat" }, // 0
    {"platf", "paltform"}, // 1
    {"basic", "fortran" }, // 2
    {"metal", "heavy" }, // 3
    {"JTree", "three" }}; // 4
    ToolTipTreeNode[] nodes = new ToolTipTreeNode[strs.length];
    for (int i=0;i<strs.length;i++) {
    nodes[i] = new ToolTipTreeNode(strs[0],strs[i][1]);
    nodes[0].add(nodes[1]);
    nodes[1].add(nodes[2]);
    nodes[1].add(nodes[3]);
    nodes[0].add(nodes[4]);
    JTree tree = new JTree( nodes[0] ){
    public String getToolTipText(MouseEvent evt) {
    if (getRowForLocation(evt.getX(), evt.getY()) == -1) return null;
    TreePath curPath = getPathForLocation(evt.getX(), evt.getY());
    return ((ToolTipTreeNode)curPath.getLastPathComponent()).getToolTipText();
    tree.setToolTipText("");
    JScrollPane sp = new JScrollPane(tree);
    getContentPane().add(sp, BorderLayout.CENTER);
    public static void main(String args[]) {
    ToolTipTreeExample frame = new ToolTipTreeExample();
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {System.exit(0);}
    frame.setSize(300, 150);
    frame.setVisible(true);

  • Newbie with a Motif ES8 - optimum setup with a minimalistic approach?

    hi,
    I'm trying to decide on the optimum setup with a minimalistic approach!
    I a newbie with the Motif ES8 and am at cross roads deciding on the type of computer setup for my VST.
    PC + Cubase vs. MAC + Logic Pro or Logic Pro Express?
    With MAC, how far do I need to go;i.e. MACBook Pro a must?
    how many USB ports (types 400 vs 800), etc?
    With Logic Pro, is Express going to be sufficient for a full soup to nuts recording and mastering given that this is for a home studio setup though with an idealist running it?
    I'm a one woman show and so don't need too many inputs/outputs. I'd be recording a track at a time and my songs take up less than 16 tracks.
    I would really appreciate any and all responses.
    Roya
    macbook pro   Mac OS X (10.4.7)  

    thanks for the detailed response PK
    so, the extra USB port on the HD would facilitate a
    hub type interface i.e. once you hook up another\
    device to the HD via USB, you're really hooked up to
    the computer.. right? and so, if I get a powered USB
    Hub, this wouldn't really matter.. correct?
    For the most part, you have to be careful hooking
    too many devices up to a computer WHEN you are trying
    to do some sound work. When they say a computer
    can do ABC we sometimes think that should include D.
    As for the sound interface, I already have an
    Audiophile that has midi in/out, firewire to
    computer, RCA jack for i/o. I know its not the high
    end stuff but I hope to do a stepwise upgrade here if
    at all possible..
    That actually might work, if it supports at least
    16 bit 44.1 khz that is the lowest you want to go.
    Ideally it should be 24 bit to take advantage of Logics
    24bit environment. You might be able to run the ES8
    straight into those RCA jacks if they are SPDIF and your
    keyboard has the same on the back.
    There are a bunch of people on Motifator discussion
    groups that warn against Apple's lack of support for
    Logic. Not sure if the concern is only regarding the
    combination of Yamaha (Motif) and Apple (Logic).
    I went and read that thread, here are some of my thoughts
    on some of this.
    Can't comment on MAC, but a dear friend of mine who is an audio engineer said >he had walked away from Logic after Apple bought them out. "Straight downhill" >I think is how he put it.
    Many windows users just hate Apple and their products.
    I think much of it is ignorance. They will say
    Macs are junk but when I ask them why
    they never have an answer or say something
    that is false. It sounds like this "professional"
    did not even wait to see that Logic did get better.
    Apple charges 200.00 for support of it's Professional
    applications. You really do not need it since there are
    so many experienced Logic users here that I never had
    a question go unanswered. I've noticed on those forums
    the same small group of people do most of the problem
    solving. I am not overly impressed with Yamaha's support.
    I had my questions about my keyboard answered quicker
    by those forums. So I guess both companies need work
    in this area. Frankly, for recording, I think the Motif
    and Logic are a Killer combination. Both have steep
    learning curves but once you get up to speed I think
    the results speak for themselves. The main difference
    in my opinion is that the Motif is the ultimate
    performance tool and Logic is the ultimate studio toolshop.
    After having a Motif for over a month, I am convinced
    it has a steeper learning curve than Logic take for instance
    that thread on getting your keyboard to record it's own
    audio output. The list of things to do each time is as long
    as my arm. In case you did not read it here it is.
    First thing – STORE your MIX setup and SAVE the Song to SmartMedia (or USB mass storage device) before resampling it so you have a backup. You would create a mix to balance the instruments the way you like them.
    * Select a target track, then press the [INTEGRATED SAMPLING] button.
    Setup the parameters for resampling:
    * Press [F1] DEST
    * Select a TRACK and [KEYBANK] (note) into which you will record the resampled data. You can target either an empty track or the track on which you are going to play (if you are going to play along). If all tracks are full, don't worry, you can still resample anyway.
    * Press [F2] SOURCE. Set the source parameters as follows:
    - Type = Sample - with this type the Integrated Sampling Sequencer will not create any NOTE-ON data in your sequencer, it will just simply add a new sample waveform to the waveform list
    - Source = Resample
    - Mono/Stereo = Stereo
    - Next = OFF
    - Frequency = 44.1k
    * Press [F6] REC This will place the sampling sequencer in Standby mode. Set the TrggrMode paramter to Manual
    * Press Start on the sequencer and check your levels. If too low set the REC GAIN higher +6bB or +12dB, if the level is to high (clipping- you will see a lightning bolt) lower the GAIN to -6dB or -12dB. When you have checked the levels, press STOP and return to the top of the SONG.
    * Press F6 REC to start the Resample, Press [>] (play) to begin recording the resample. The Motif ES will draw the wave as it samples.
    * When the song is over press [F6] STOP. The Motif ES will take a few moments to gather the data.
    To create the .wav file:
    * Press [FILE]
    * Press [F1] CONFIG
    * Press [SF1] CURRENT
    * If you will be saving the resampled song to a SmartMedia Card set the Current parameter to CARD. To save to a USB device, set this parameter to USB
    * Press [F2] SAVE
    * Set the data TYPE field to WAV
    * Cursor down and Name the wave
    * (If desired, navigate to the subdirectory where you want to save the *.wav file.)
    * Press [ENTER]
    * The ES will ask you which TRACK and NOTE to save as a wave file. Enter the values you selected as the sample destination in the procedure above.
    * Press and hold the AUDITION button to make sure your sample is there.
    * Press [ENTER] and the Motif ES will export the sample as a .wav to your SmartMedia card or USB device.
    Once you have configured Logic which are takes about
    3 minutes (and only has to be done once)
    and set up the keyboard which takes 30 seconds.
    (this has to be done once for each session)
    you plug your keyboard into your audio interface then
    Hit Record
    that is the whole list, two words.
    Once it is in Logic, you have many way to edit it
    and process if needed. The midi is much
    easier to manipulate and there are more
    ways than the ES has keys. Plus you can add to the
    sounds with the internal instruments which are
    as sophisticated and as high quality as the ES.
    Then if your happy with it you can create MP3's
    and burn Red book compliant CD's for
    commercial duplication.
    It really is a complete setup.
    But at any rate I'm going to do some more research on
    another scenario, i.e. what about MAC and Cubase? As
    you may know Yamaha just acquired Cubase..
    I dont think I would be the best to comment on that.
    Maybe ask one of the Gurus on the unofficial
    website for Cubase, The Cubinator.
    Sorry, I just couldn't resist.
    you've been very helpful - thanks again
    cheers,
    Roya
    Cheers!
    P.S. I agree with Dave, If you have a Macbook
    Pro you dont need another computer. If you
    wanta desktop whatever reasons I understand
    Oh and btw, what's QWERTY?
    They are the first 6 keys (top row/left to right)
    on your computer keyboard

  • Hi how do i delete voice memos from my iPhone 4 after I have synched them with iTunes?

    Hi how do i delete voice memos from my iPhone 4 after I have synched them with iTunes?

    Hi James thanks so much for your reply
    What I was trying to do though was to mass delete the voice memos from the phone, and I was told that one can do that via iTunes. Problem is that when I do open iTunes, I am not able to locate a TAB thats says ON THIS IPHONE
    I was told that one could click on this and then select multiple Voice Memos and delete this way.
    Thanks again for your assistance

  • HT5731 How can I download my TV episodes to my Macbook Pro. I bought them from my iPad2, and I looked for them with the same AppleID on iTunes Store and they wont download to my iTunes.

    How can I download my TV episodes to my Macbook Pro. I bought them from my iPad2, and I looked for them with the same AppleID on iTunes Store and they wont download to my iTunes.

    What country are you in ? Depending upon what country that you are in then you might be able to redownload them on your Mac's iTunes via the Purchased link under Quicklinks on the iTunes store homepage
    If you're not in a country where TV programmes can be redownloaded then connect the iPad to your Mac's iTunes and use the File > Devices > Transfer Purchases to copy them over from your iPad

  • My iPhone 5 won't let me use my apps until I connect them with iTunes after downloading ios7. Solutions?

    My iPhone 5 won't let me use my apps until I connect them with iTunes after downloading ios7.  There's just a thing that pops up and says that in order to activate banners and push notifications I have to connect the app with iTunes. The thing won't go away no matter how many times I push ok, and it doesn't give me another option. Solutions?

    Oh my gosh I had the EXACT same problem, and for ages I couldn't figure out how to fix it until today. Here's what I did:
    First I went onto my computer, opened itunes, and un-installed tumblr, vine and kik. These were the apps I was having problems with (it said I had them on my phone but, like you, they didn't show).
    Then I went to the itunes store, searched for each one, and it said I could update them so I did (just FYI: for tumblr a window popped up saying "please click ok to confirm you are 17 years or older", so I did that also)
    When I went back to my phone and tried installing them again (still on my computer), it worked!
    I hope this helps, because it was incredibly frustrating. Good luck!

  • Why does the default theme for firefox 4 only work with add-ons such as personas? It will allow me to preview an alternative theme with a persona but won't let me apply it without switching to the default. No option for disabled and visually impaired.

    Firefox 4 will no longer allow me to use a theme (other than the default) with a Persona. When I "try on" a skin, FF4 allows me to ''preview'' the theme with the persona but will not allow me to ''apply'' the persona without '''automatically''' switching my chosen theme (disorganizing my menu's, bookmarks, and tool-bars) back to the default. Firefox 4 also begins to load an all-default setting browser when it is first opened slowing my browsing start up. All issues were not experienced before the Mozilla Firefox 4.0 upgrade.
    *Windows Vista Home Basic
    *Google Toolbar
    *Shown Menu Bar

    Hi David,
    Thank you for your detailed question. It sounds like the real issue is pdf files. Are there any antivirus/firewalls that might be blocking this specific file type? or are there any preferences in your control panel that might be blocking this?
    Do you have any stored preferences for PDF files in Firefox?
    *[[Applications panel - Set how Firefox handles different types of files]]

  • I do not see where to enter IP addresses in the Open VPN setup. Also, how can I set it up so that I can choose different servers in the same way as I can currently choose them with my VPN app but for PPTP?

    I think I have it working on my iPhone 5. But, I do not see how I can control the exit point that I would like for the VPN. Are all the exit points shown in the VPN setting now going to work with Open VPN, or do they remain PPTP? If I am reading correctly, they look like they remain PPTP. If I cannot control the exit point for open VPN, which exit point is the default in the profile you provided me?I note that Open VPN Connect does not work with any of the new 64 bit devices like the iPhone 5S, the iPad Air, and the new iPad MIni. Is there any chance that you guys will come up with an update for your app so that open VPN can be made to work on all iOS devices? That would be nice, particularly if the Open VPN Connect app does not give me a choice of exit points.Thanks,
    I do not see where to enter IP addresses in the Open VPN setup. Also, how can I set it up so that I can choose different servers in the same way as I can currently choose them with my VPN app but for PPTP?
    Just a quick note to tell you that Open VPN has updated their app so that it is compatible with 64 bit ARM devices like the iPhone 5S, the iPad Air, and the iPad Mini Retina.That does not resolve the problem of how to easily choose among the various possibilities for the exit server. We need to find an easy way to choose.

    Thank you for trying the new Firefox. I'm sorry that you’re unhappy with the new design.
    I understand your frustration and surprise at the removal of these features but I can't undo these changes. I'm just a support volunteer and I do not work for Mozilla. But you can send any feedback about these changes to http://input.mozilla.org/feedback. Firefox developers collect data submitted through there then present it at the weekly Firefox meeting
    I recommend you try to adjust to 29 and see if you can't make it work for you before you downgrade to a less secure and soon outdated version of Firefox.
    Here are a few suggestions for restoring the old design. I hope you’ll find one that works for you:
    *Use the [https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/ Classic Theme Restorer] to bring back the old design. Learn more here: [[How to make the new Firefox look like the old Firefox]]
    *Use the [https://addons.mozilla.org/en-US/firefox/addon/the-addon-bar/ Add-on Bar Restored] to bring back the add-on bar. Learn more here: [[What happened to the Add-on Bar?]]

  • Switching themes with customized templates

    Most typical Apex applications start with a quick prototype containing most of the required functionality, get required approvals, and continue building it up.
    During all of this, the concept of "themes" is mentioned and demonstrated as a reassurance that the "look and feel" of the application can be very easily switched at any point. In other words, let's worry about designing the content and behaviour, the presentation can be easily switched.
    All this sounds very good on paper and is do-able as long as one uses the out-of-the-box Apex themes/templates. But, in my experience, any non-trivial application has lots of customized templates. That brings me to my question.
    As soon as you start to customize templates, modify them, create new ones, etc, you start to get "committed" to that specific theme. In other words, if I have a theme with 10 customized templates, 5 slightly modified ones, etc, and I switch to another theme from the Apex repository, I get all the out-of-the-box templates for that theme. I have to painstakingly re-do all my customizations for the corresponding templates in the new theme.
    And Apex does nothing to help me with this task. There is no "diff" utility between themes, no compares, no merges, nothing. I have to eye-ball the old template, copy the HTML snippets from the Builder into Notepad, pull up my new template and manually copy, paste, modify snippets into the new template. Very error-prone.
    How have people handled this sort of thing? Are there any best-practices, any procedures that people follow to make switching between themes painless?
    Thanks

    Hello,
    Second post down.
    http://wiki.shellprompt.net/bin/view/Apex/ThemeTips
    I build out themes all the time that are about 70/30 standard templates to custom templates and following that procedure makes the switches fairly easy.
    Carl

  • I have and iPad and I have and iPhone 5 my husband has another one and I singed all of them with the same Apple ID and  accound now my husband can see all the text I send and I get everything he gets how could I get his phone out of my accound

    I have and iPad and I have and iPhone 5 my husband has another one and I singed all of them with the same Apple ID and  accound now my husband can see all the text I send and I get everything he gets how could I get his phone out of my accound

    Mishijos3 wrote:
    I have and iPad and I have and iPhone 5 my husband has another one and I singed all of them with the same Apple ID ...
    Have a look here...
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l

  • How can I play music on my macbook pro (OSX Lion) through a Pioneer receiver. I've connected them with a mini display port to HDMI cable with audio support bought at the Apple Store, but there's no sound coming through. thanks

    How can I play music on my macbook pro (OSX Lion) through a Pioneer receiver? I've connected them with a mini display port to HDMI cable with audio support bought at the Apple Store, but there's no sound coming through. There are 4 HDMI-in ports on the receiver - BD, DVD, DVR/BDR and audio. In my system preferences for sound, the receiver doesn't show up as an output option. Can anyone please advise. (ps, this is my first time posting a question, so I hope I can find your answers!) thanks, JP downunder

    For sound, try the audio output port and connecting to the RCA  audio input ports on your Pioneer receiver.  Use something like this:
    http://eshop.macsales.com/item/OWC/PODCONNECTOR/
    Ciao.

  • HT201089 if child over 18 in family sharing can they purchase items themselves? Will they then be able to share them with other family group?

    if a child is over 18 in family sharing can they purchase items themselves? Will they then be able to share them with other family group members?

    If they are still part of Family Sharing, these items will be shared.

  • ı have bought second hand ipad. 17 apps which were downloaded by previous user with his or her apple id. I need to update them but when I try, ı can't update them with my own apple id. Device ask me to update with the id and password of previous user.

    ı have bought second hand ipad. 17 apps which were downloaded by previous user with his or her apple id are waiting to be updated. I need to update them but when I try, ı can't update them with my own apple id. Device ask me to update with the id and password of previous user. I tried I forgot but this didn't work.  So how can ı have my device forget the previous ID and use my own to update exsisting apps.
    <Email Edited by Host>

    Restore the device to factory settings with iTunes. 
    Then launch the App Store app on the iPad and sign in with your Apple iD and password:
    OT

  • How can I see whether songs in iCloud are also on the PC locally (so I can sync them with a Classic)?

    How can I see whether songs in iCloud are also on the PC locally (so I can sync them with a Classic)?

    In iTunes, on the View menu select 'Hide Music in the Cloud'

  • HT3819 Bought new iMac & moved (or thought so) music from old PC to new Mac. Now several hundred songs are orphaned on old PC; , I can "see" them with both machines turned on & iTunes open. "Missing" songs show in iMac Shared folder. How do I move & retir

    Bought new iMac & moved (or thought I had) all of my music from the old PC to the new iMac. Have discovered several hundred songs are orphaned on old PC; I can "see" them with both machines turned on & iTunes open. "Missing" songs show in iMac itunes Shared folder. How do I move them all so I can then & retire the old PC?

    From things you are saying, such as "shared folder" and having both machines on, it doesn't sound to me like you truly moved the whole iTunes collection. 
    iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    do not confuse moving your whole folder and library with moving just media files as in
    iTunes for Mac: Moving your iTunes Media folder - http://support.apple.com/kb/HT1449
    Quick answer if you let iTunes manage your music:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Start iTunes with the option key held down and guide it to the new location of the library.
    Macworld - How to transfer iTunes libraries between PC and Mac - http://www.macworld.com/article/46248/2005/08/shiftitunes.html

Maybe you are looking for

  • No sound through headphones/microphone ALC892

    I've been trying for days to fix this issue, and am lost.  I've got a new desktop and cannot get sound to come out my headphones, or take input from my microphone.  I believe my sound card driver is installed correctly, and that it is a pulseaudio pr

  • New to Apple--many problems--help!

    I purchased my first-ever Apple in March 2006. About 6 weeks into my learning experience, the iMac wouldn't connect to the Internet. After 2 weeks in the repair shop I got it back. Worked fine for about 2 weeks, then developed the same problem. I jus

  • Purchase Order Text Object missing in Transcation VOTXN

    Hi Experts I want Purchase Order Text Object in Transction VOTXN, for that Referring SAP Note 75144 - EKKO EKPO entries should be in table TFRM, if these two entries are missing, using the solution contained in Note 524453 to generate the missing ent

  • HT204291 an error occurred loading this content

    Help - I'm in Singapore trying to play previously downloaded Bbc I player content through my apple tv. However I connect, ipad3 iPad 1, iPhone 4s and iPhone 5, whenever I click the airplay icon and select apple tv, I get the message "an error occurre

  • Hrglobal error ORA-01403: no data found

    I am trying to run hrglobal after upgrading from 12.0.6 - 12.1.3. Some how all my workers fail FAILED: file hrrbdeib.sql on worker 1. FAILED: file hrrbdeib.sql on worker 2. FAILED: file hrrbdeib.sql on worker 3. FAILED: file hrrbdeib.sql on worker 4.