Menu Seperator Color Change in java application

Hi all,
I am able to change the background color of the menu. But not able to change the menu sperator color.
Here is my code
menuBar = new JMenuBar();
menu = new JMenu("A Menu");
menu.setOpaque(true);
menu.setBackground(Color.RED);
menu.setForeground(Color.BLUE);
menu.setBorder(new SoftBevelBorder(SoftBevelBorder.RAISED));
menu.setFont(new Font("Lucida sans Regular",Font.PLAIN,14))
menuBar.add(menu);
menu.addSeparator();
Please help me
Thanks
Joy

Hi all,
I am able to change the background color of the menu. But not able to change the menu sperator color.
Here is my code
menuBar = new JMenuBar();
menu = new JMenu("A Menu");
menu.setOpaque(true);
menu.setBackground(Color.RED);
menu.setForeground(Color.BLUE);
menu.setBorder(new SoftBevelBorder(SoftBevelBorder.RAISED));
menu.setFont(new Font("Lucida sans Regular",Font.PLAIN,14))
menuBar.add(menu);
menu.addSeparator();
Please help me
Thanks
Joy

Similar Messages

  • Menu Bar - Color Change?

    I just installed leopard last night and now my menu bar is changing shades or gray, (see image) http://texasadvertising.net/seth/pic2.jpg .
    Any thoughts?

    That kind of opaque look is a feature of leopard - if you don't like it, open terminal and enter:
    sudo defaults write /System/Library/LaunchDaemons/com.apple.WindowServer 'EnvironmentVariables' -dict 'CINO_BACKGROUNDIMAGE' 0.8
    Standard is 0.7 (rather opaque) - 1 would be a solid white
    I've chosen 0.8 fitting my needs

  • Color changed when webdynpro application is called from Portal

    Hi,
    I have developed an Webdynpro application, but the orginal color has been changed if I call it from portal.
    Does someone have an idea how to deal with it?
    best regards

    Hi,
             The attribute name in iView configuration is 'Supply Portal Stylesheet'. It should be marked as 'No' to not to use the Portal Style Sheet.
    Ranganathan.

  • Change java application to exe file

    I want to change the java application(*.class)to the exe file in WIN OS in order to update its speed, can anyone tell me some useful infomation? thanx in advance.
    Holly

    I have been using VAJ for several months now and I have not found the option to compile a native executable. Its help system is the worst I can recall ever seeing. So can you tell me exactly how to do that with VAJ?

  • How to launch my java application in a web browser?

    Hi. I try to launch my java application, e.g. "HellowWorld.java", using web browser.
    1. How can I change my java application program to java applet in general way?
    I read "Java: An Introduction to Computer Science and Programming, Third Edition"
    by Walter Savitch and found page 803 - "Converting a Swing application to an applet".
    My question is how I can know which class should be removed or not such as using JApplet instead of JFrame. Are there general rules about this?
    2. I found "AWT only" tutorial had some example lauching application using "AppletButton".
    How can I use this method to launch "HelloWorld.class"?
    http://java.sun.com/docs/books/tutorial/information/download.html#OLDui
    (after extracting zip file) -> ../OLDui/layout/card.html
    3. (continued 2) Can I use above method to embed applet into web browser?
    For example, java Swing application -> applet using "AppletButton" -> web browser using "<applet></applet>" tag.
    I'd appreciate any partial anwers of these questions or other suggestions.
    Thanks.

    Thanks! Here is what I got from your help.
    * HelloWorldSwing.java is a 1.4 example that
    * requires no other files.
    import javax.swing.*;  
    import java.awt.*;                //for Container class    
    //  public class HelloWorldSwing {
       public class HelloWorldSwingToApplet extends JApplet {
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
    //    private static void createAndShowGUI() {
          private void createAndShowGUI() {
            //Make sure we have nice window decorations.
    //        JFrame.setDefaultLookAndFeelDecorated(true);
            //Create and set up the window.
    //        JFrame frame = new JFrame("HelloWorldSwing");
    //        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         Container frameApplet = getContentPane();
            //Add the ubiquitous "Hello World" label.
            JLabel label = new JLabel("Hello World");
    //        frame.getContentPane().add(label);
         frameApplet.add(label);
            //Display the window.
    //        frame.pack();
    //        frame.setVisible(true);
          public void init() {
           createAndShowGUI();
    /*    public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

  • Finder Bar/Menu Bar color

    So the other day, I was in Best buy and an Apple Store near me and I saw an new iMac with the Menu bar color changed to black and the font changed to a orange or gold color. Anyone know how to do this? Not necessarily those colors but something other than white. It looked really sweet.

    I think your talking about OS X's Universal Access Preference Pane in System Preferences.
    System Preferences>Universal Access>Seeing>Display>White on Black.
    Enjoy.
    JB

  • Application background color changes after sometime

    Hi All,
    We have an R12.1.1 instance on solaris and we are facing a strange problem.
    The background color of the application changes to blue suddenly and the Users are not able to properly see the links which are in blue. If we bounce Apache, it comes back to normal but after sometime the problem comes back.
    Please check the below two pictures to understand exactly how the color change is happening.
    pic 1: normal color - http://www.esnips.com/doc/f9614bb5-cb07-4d8e-83bc-9aa234240a93/1
    pic 2: changed color - http://www.esnips.com/doc/d3a759e7-f628-4390-8690-36b05e361c66/2
    Kindly help me in getting this issue resolved.
    Thanks.

    Hi Helios, following are the messages in apache error log file immediately received after starting up the Apps services.
    [Mon Oct  4 06:25:20 2010] [notice] Oracle-Application-Server-10g/10.1.3.4.0 Oracle-HTTP-Server configured -- resuming normal operations
    [Mon Oct  4 06:25:20 2010] [notice] Accept mutex: fcntl (Default: fcntl)
    [Mon Oct  4 07:25:04 2010] [error] [client 172.16.1.136] [ecid: 1286162704:10.100.1.200:19224:0:10,0] File does not exist: /db2/orasp/inst/apps/PROD_oratdb/p
    ortal/favicon.ico
    [Mon Oct  4 07:26:29 2010] [error] [client 172.16.1.136] [ecid: 1286162789:10.100.1.200:18596:0:38,0] Directory index forbidden by rule: /db2/orasp/apps/apps
    _st/comn/java/classes/
    [Mon Oct  4 07:26:36 2010] [error] [client 172.16.1.136] [ecid: 1286162796:10.100.1.200:19349:0:3,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/c
    lasses/oracle/forms/engine/RunformBundle_ar_AE.class
    [Mon Oct  4 07:26:36 2010] [error] [client 172.16.1.136] [ecid: 1286162796:10.100.1.200:19349:0:4,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/c
    lasses/oracle/forms/engine/RunformBundle_ar_AE.properties
    [Mon Oct  4 07:26:44 2010] [error] [client 172.16.1.136] [ecid: 1286162804:10.100.1.200:19355:0:6,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/c
    lasses/oracle/forms/engine/RunformBundle_ar_US.class
    [Mon Oct  4 07:26:45 2010] [error] [client 172.16.1.136] [ecid: 1286162805:10.100.1.200:19355:0:7,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/c
    lasses/oracle/forms/engine/RunformBundle_ar_US.properties
    [Mon Oct  4 08:04:06 2010] [error] [client 10.10.111.1] [ecid: 1286165046:10.100.1.200:19356:0:24,0] Directory index forbidden by rule: /db2/orasp/apps/apps_
    st/comn/java/classes/
    [Mon Oct  4 08:04:09 2010] [error] [client 10.10.111.1] [ecid: 1286165049:10.100.1.200:19224:0:30,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/c
    lasses/oracle/forms/engine/RunformBundle_ar_AE.class
    [Mon Oct  4 08:04:09 2010] [error] [client 10.10.111.1] [ecid: 1286165049:10.100.1.200:19224:0:31,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/c
    lasses/oracle/forms/engine/RunformBundle_ar_AE.properties
    [Mon Oct  4 08:04:12 2010] [error] [client 10.10.111.1] [ecid: 1286165052:10.100.1.200:18595:0:55,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/c
    lasses/oracle/forms/engine/RunformBundle_ar_US.class
    [Mon Oct  4 08:04:12 2010] [error] [client 10.10.111.1] [ecid: 1286165052:10.100.1.200:18595:0:56,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/c
    lasses/oracle/forms/engine/RunformBundle_ar_US.properties
    [Mon Oct  4 08:46:00 2010] [error] [client 10.10.11.11] [ecid: 1286167560:10.100.1.200:19356:0:59,0] File does not exist: /db2/orasp/inst/apps/PROD_oratdb/po
    rtal/favicon.ico
    [Mon Oct  4 08:47:23 2010] [error] [client 10.10.111.1] [ecid: 1286167643:10.100.1.200:18598:0:93,0] mod_oc4j: There is no oc4j process (for destination: app
    lication://forms) available to service request.
    [Mon Oct  4 08:47:23 2010] [error] [client 10.10.111.1] [ecid: 1286167643:10.100.1.200:18597:0:126,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/
    classes/oracle/ewt/alert/resource/AlertBundle_ar_US.class
    [Mon Oct  4 08:47:23 2010] [error] [client 10.10.111.1] [ecid: 1286167643:10.100.1.200:18597:0:127,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/
    classes/oracle/ewt/alert/resource/AlertBundle_ar_US.properties
    [Mon Oct  4 08:51:45 2010] [notice] Oracle-Application-Server-10g/10.1.3.4.0 Oracle-HTTP-Server configured -- resuming normal operations
    [Mon Oct  4 08:51:45 2010] [notice] Accept mutex: fcntl (Default: fcntl)
    [Mon Oct  4 08:54:39 2010] [error] [client 172.16.1.75] [ecid: 1286168079:10.100.1.200:20307:0:5,0] Directory index forbidden by rule: /db2/orasp/apps/apps_s
    t/comn/java/classes/
    [Mon Oct  4 08:54:50 2010] [error] [client 172.16.1.75] [ecid: 1286168090:10.100.1.200:20660:0:3,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/cl
    asses/oracle/forms/engine/RunformBundle_ar_AE.class
    [Mon Oct  4 08:54:50 2010] [error] [client 172.16.1.75] [ecid: 1286168090:10.100.1.200:20660:0:4,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/cl
    asses/oracle/forms/engine/RunformBundle_ar_AE.properties
    [Mon Oct  4 08:54:53 2010] [error] [client 172.16.1.75] [ecid: 1286168093:10.100.1.200:20309:0:6,0] File does not exist: /db2/orasp/apps/apps_st/comn/java/cl
    asses/oracle/forms/engine/RunformBundle_ar_US.class
    ####################################################################################

  • Issue in Oracle 11g Database Change Notification  for Java application

    Hi,
    I am trying to use Oracle's Database Change Notification in Java application.
    I followed the sample application (+DBChangeNotification.java+ , Example 29-2), provided in the following link:
    +[http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/dbmgmnt.htm#CHDEJECF]+
    I am able to see that the Registration of the SQL query is successful.
    But, when I do changes to the table registered, notifications are not received in the Listener class (+DCNDemoListener.java+).
    Ideally, the method DCNDemoListener.onDatabaseChangeNotification() should be invoked on any insert/update to the registered table. But this method is not getting invoked.
    The execution has stopped in the following line of DBChangeNotification.java Class.
    this.wait();
    +==> The application was WAITing indefinitely in this line, as the NOTIFY() from DCNDemoListener.java was not executed.+
    I am using VPN to connect to Oracel server. Remote Oracle Server is protected my firewall. Is this the reason for not sending the notifications from Oracle server?
    The version of software used are given below:
    Oracle Client - Oracle 11.1.0
    JDK - 1.6
    Oracle JDBC Driver - ojdbc6.jar
    Can someone help me to resolve this issue?
    Thanks in Advance.
    Regards
    Sam
    Edited by: Ponsu on Apr 7, 2011 10:41 PM

    Hi,
    I am having similar issue. Where you able to resolve it.
    I am also using the same example you were using.
    I am using the following version.
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    Compatibility: 11.2.0.0.0
    I do not see any notification coming back from the DB.
    Appreciate your help.
    Thanks & regards,
    Ebe

  • Can I change the nav menu text color?

    Can I change the nav menu text color? ( it's too dark for the dark background I like.)

    I have this exact same question and you have no reply and I'm wondering what the answer is.

  • How to make a Java application that will change the client box's IP address

    HI how to make a Java application( that application would be run on the client ) that will change the client box's IP address ( IP address of itself )

    If you can do that through the command line, then use Runtime.getRuntime().exec(...) to execute your command.

  • Menu background color has changed after applying Forms Patch3 (10.1.2.3.0)

    Hi,
    we have applied Patch3 on our Forms Environment.
    Now the menu background color has changed from green to gray (colorScheme is "teal" in formsweb.cfg).
    This behavior isn't documented and our customer want's to get the green menubar back...
    Any hints?
    Greetings, Florian.

    removed because of obsoleteness...
    Edited by: W1zard on Feb 2, 2009 4:57 PM

  • Change spry vertical menu background color

    After updating from 4.1 to 6.1, the background color of my
    vertical menu changed to the default grey. How do I change the
    background to my original blue.
    James

    I'm going to give you a couple links to help you out.
    http://labs.adobe.com/technologies/spry/home.html
    - this is the official Spry Homepage. Here you will find an updater
    to the Spry. Most of the documentation on the website is built
    around the latest version and this is where you will find the
    updater. Inside the package are some samples and an extension.
    Install the Extension and then restart DW and under the Sites menu
    you will see a new option to Update Spry. There is also a link to
    the official Spry forums from there.
    http://labs.adobe.com/technologies/spry/samples/menubar/MenuBarSample.html
    - This is a quick sample of different things you can do to change
    the menu bar. This does not include the basic color change. But it
    does give you an idea of how to change things in the CSS file (view
    the source of the page).
    http://labs.adobe.com/technologies/spry/articles/menu_bar/index.html
    - This is directly from the Adobe Spry documentation. If you scroll
    down a ways it will show you how to do the color customizations for
    the Spry Menu Bar.
    Lastly, if you do not have a basic understanding of CSS this
    will all be foreign to you. If that is the case I would highly
    recommend reading over the below CSS tutorial first to get a basic
    understand of the CSS code:
    http://www.w3schools.com/css/

  • May have down loaded a trojan or virus while down loading torrents.  My menu and windows change color and pattern now.  Anyone have this happen before?  I repaired the permissions and everything was fixed except one.

    My dumb *** may have down loaded a trojan or virus while down loading torrents.  My menu and windows change color and pattern now.  Anyone have this happen before?  I repaired the permissions and everything was fixed except one.
    Warning: SUID file “System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent” has been modified and will not be repaired.

    You didn't do anything wrong.
    Not malware or a virus.
    But how do you explain this?
    My menu and windows change color and pattern now.

  • Would the java applications be affected if change verison of Java 2 SDK

    This would be a very urgent information for me. Thanks a lot if you could help!!! :
    If the source codes I want to reuse is previously developed and tested with Java 2 SDK, Standard Edition (1.2.1_04) Production Release for Solaris, could I directly reuse them with Java 2 SDK, Standard Edition 1.3.1 for Windows? If not, what could I do to make the old Java application with Solaris to be able to run with Windows?

    If you application is pure Java (e.g. not running external programs or using JNI), then it should run w/o changes regardless of the platform. Of course, platform specific bugs may affect reality.

  • Hi. I've added a new page to my iWeb '08 version 2.0.4 website but can't seem to select the top menu pages to make a rollover color change. I can select them on the original pages. What am I doing wrong?

    Hi. I've added a new page to my iWeb '08 version 2.0.4 website, but can't seem to select the top menu items to make a rollover color change. I can select them on the original pages. What am I forgetting to do?

    Old Toad has a tutorial about changing the colors in the iWeb default menu...
    http://oldtoadstutorials.net/No.24.html
    If you want your website to be found by search engines you would be better to follow Ethmoid's suggestion of creating your own navigation...
    http://www.iwebformusicians.com/iWeb/Navigation.html

Maybe you are looking for

  • Idoc Monitoring - WE02

    Dear Experts, I am in the process of configuring System Monitoring in our Solution Manager system. I have to monitor Idocs coming in our ERP 6.0 system for failed messages - status 51 and status 03. Can you please provide me some info on which object

  • How to connect iphone 4S to austrian's bob Gigabyte?

    bob, the austrian cell provider  sells gigabyte datapackages, but doesn't help in iphone configuration. bob's mother company is A1 she sells iphones with internet configuration. So without service - how to connect the iphone to bob?

  • Unknown Error (-69) HELP MEEE!!

    My ipod will upload up to 200 songs, and then i get this window pop up saying some unknown error (-69) Anyone can help?

  • InDesign CC, can't export to html, can't access unneeded file

    In the latest build of InDesign CC (July 2014), the export process to HTML has changed. You used to be able to export a book directly to filtered HTML files. Now the option is no longer in the Book menu, and you must go through the main menu, which d

  • Help with container element

    Hi experts, I am creating a WF to escalate a WI to the next level of approver after a deadline is expired. So therefore I wish to create a container element that will store the value of the result of the 1st agent. To do this I created a container u2