Java Menu Troubles...

Hello,
When I click the main menu graphics on the web site I've been working on, the reloading of the java menu is causing a very noticeable flash to occur between pages.
The web site is hosted at:
http://liverdance.sheepless.net/work/index.shtml
Any suggestions are how to eliminate the flash between pages???
Is there a way to modify the java script so as to eliminate this problem while still prompting the new page (corresponding to the main menu graphic) to load?
SIL

Hi,
try to use doble-buffering: create an offline-image in memory, call getGraphics on this image, make your output operations on this graphic context and draw the offline image to the graphic context received as parameter of the paint-method.
void paint(Graphics g){
   Image bufferImage = createImage(width, height);
   Graphics buffer = bufferImage.getGraphics();
   //perform your drawing operations here
   g.drawImage(bufferImage, 0, 0, null);
}Regards,
Dimitri

Similar Messages

  • How do I display or hide a Java menu based on current url in a php page

    How do I display or hide a Javascript menu based on the current url in a php page?
    I want to specify when a java menu appears on a page based on the current url - does anyone have a script for the vars and conditional statements to make this happen - it would be something like this in natural language:
    <javascript>
    if currenturl = http://jemmakidd.com/categories.php
    then displaymenu
    else if currenturl = http://jemmakidd.com/categories.php?cat=14 (or 15,16 etc)
    then DONOTdisplaymenu
    What is needed is that, if you look at this page there is a java menu under the first category:
    http://jemmakidd.com/categories.php
    I WANT the menu to appear on that page so that is working, however if I look at one of the store categories, like on this page, I do NOT want the menu to appear - it may be that this can be done without using a java current url type function - thats why I'm asking...
    http://jemmakidd.com/categories.php?cat=14
    So to summarise:
    http://jemmakidd.com/categories.php (If this url is used DO display menu - if any other url DONT display menu)
    Thanks again...any ideas?
    Edited by: littlealex2009 on Jul 15, 2009 12:51 AM

    This is a Java forum, not a Javascript forum. Google the differences.
    kind regards,
    Jos

  • Java menu problem

    Hi,
    I have a java menu that pops up to the side on mouse over, however when the browser window is fully expanded on screen the submenu positions its self over the top of the main menu, not on the side.
    How can this be corrected?
    Image example: http://i67.photobucket.com/albums/h283/jborrach/menu.jpg

    I did solved the problem with help of my colleague....
    Thanks to who all replied to this thread .It took some delay to post my solution.May be some other developer can find this thread helpful in future i hope...
    Here is the solution code....
    package jlistproject;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Main {
        private static JPopupMenu popUp;
        public static void main(String[] args)
           JFrame frame = new JFrame("This is the Frame Window");
           frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
           frame.setLayout(new GridLayout());
           frame.setSize(500,500);
           String subject[] = {"Item1", "Item2", "Item3", "Item4","Item5","Item6"};
           final JList list = new JList(subject);
           popUp = new JPopupMenu();
           popUp.add("click 1");
           popUp.add("click 2");
           popUp.add("click 3");
           list.addMouseListener(new MouseAdapter() {
                       public void mouseClicked(MouseEvent e)
                  if (e.getButton() == e.BUTTON3)
                     JList  c =  (JList) e.getComponent();
                     int x = e.getX();
                     int y = e.getY();
                    if(!list.isSelectionEmpty()&& list.locationToIndex(e.getPoint()) == list.getSelectedIndex())
                         int count = c.getModel().getSize();
                         int cal = count * 18;
                         if(y <= cal)
                             popUp.show(list, x, y);                        
           frame.add(new JScrollPane(list));
           frame.setVisible(true);
    }Regards.
    IdealKoder

  • Horizontal java menu systems

    Does anyone have a pure java menu system for my servlet ?
    I can't have any dhtml/javascript yet I need some dynamic stuff like when u click on an item and if it has subitems it will merely drop down a list with these items.
    If u could help me or even direct/guide me in the correct direction I would be extremely happy !

    try out these examples they may help you in some way.
    http://www2.gol.com/users/tame/swing/examples/SwingExamples.html

  • Java Menu setout problems.

    Dear Everyone,
    I am currently experiencing some problems with organising a User Interface that uses menu items. This code creates a File menu and a New menu that sit side by side (with New to the right of File). I am trying to design a menu that has only File visible, with New showing below File only when File is pressed. Can anybody please suggest modifications that will make this possible. Thanks.
    Regards
    D
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    class GUI extends JFrame
    GUI()
    Toolkit tk = Toolkit.getDefaultToolkit(); //intialize the toolkit.
    Dimension sSize = tk.getScreenSize(); //determine screen size.
    Container c = getContentPane();
    c.setLayout(new FlowLayout());
    JMenuBar menuBar = new JMenuBar(); //Creates Menubar object called menuBar.
    setJMenuBar(menuBar);
    JMenu FMenu = new JMenu("File"); //File Menu object instantiated.
    FMenu.setMnemonic(KeyEvent.VK_F); //Key that activates File menu...F.
    menuBar.add(FMenu); //File Menu added to menuBar object.
    JMenuItem NewItem = new JMenuItem("New"); //Creates New sub-menu object.
    NewItem.setMnemonic(KeyEvent.VK_N); //Key that activates New sub-
    //menu....N.
    menuBar.add(NewItem);
    setLocation(sSize.width/4,sSize.height/4);
    setSize(sSize.width/2,sSize.height/4);
    setTitle("Java QuickLaunch Toolbar");
    setVisible(true);
    }

    Change
    menuBar.add(NewItem);to:
    FMenu.add(NewItem);You need to add to the menu, not to the menubar, that's why it wasn't appearing in the correct place.

  • JAVA INSTALL TROUBLE

    LSO HELLO, ON EVERY INSTALLATION OF APPLICATIONS AND GAMES FOR JAVA PLATFORM (*.JAR) IT SAYS ERROR MESSAGE "UNABLE TO INSTALL" PLEASE HELP ME I AM USING MOBILE PHONE NOKIA N95-1......IN THE ORIGINAL SELLER AND TECHNICIAN SERVICE DOES NOT HELP ME PLEASE TRY IT BEFOREHAND THANK YOU VERY MUCH MAYBE DEVELOPER NOKIA WOULD RELEASE FIX OR REPAIR PATCH FOR THIS PROBLEM OTHERWISE SYMBIAN APPLICATIONS (SIS, SISX) INSTALLS OKAY WITHOUT TROUBLES WHAT IS STRANGE..........?! HELP ME ???????? TOMAS ALIAS DOKTORXP ?! PS.: I ALSO TRIED TO INSTALL FROM WWW.FISHLABS.NET SUPER MOBILE GAME GALAXY ON FIRE 2 (1,6 MB - *.JAR) --- REPEATING SAME ERROR "UNABLE TO INSTALL" AT SYSTEM SYMBIAN IT IS ERROR FROM DEVELOPER MAYBE YES I THINK I NEED SOME GOOD SOLUTION EXTRA PLEASE ??????? PS.: I ALSO CANNOT REMOVE PROGRAMS OR APPLICATIONS FROM APPLICATIONS MANAGER PLEASE HELP ME ???????
    Message Edited by doktorxp on 12-Mar-2009 04:03 PM
    Message Edited by doktorxp on 12-Mar-2009 04:04 PM

    You need Xwindow System in your sun.

  • Rollover Menu Trouble

    I'm a bit new to the whole rollover menu concept but I think
    I'm getting the hang of it. Now, on a website I'm designing for my
    own personal use, i have the main menu system in one movie clip. In
    that movie clip there are four other movie clips which contain the
    animation and scripting for the rollover parts. The rollover part
    works fine, when i roll my mouse over the movie clips they play an
    animation, and when i roll off they reverse the animation, but I'm
    having some difficulty linking the rollover buttons to play a
    certain frame in the timeline. for the first button that happened
    to be the "contact us" button, i used
    on(release){
    _root.play();
    I used "_root." because when i just put "play()" it would
    just play the interior timeline (i couldn't think of anything else
    to call it) of the movie clip. **Remember that i'm adding
    actionscript to movieclips inside one big movie clip**. And
    "_root.play()" worked fine. It played the set of "contact us"
    frames and i added another script to the end frame so it would
    redirect me back to the main menu. the second rollover movieclip
    ("games") however, is giving me much more trouble. i added the
    actionscript
    on(release){
    _root.gotoAndPlay(284);
    because theoretically, if the first one worked this one
    should work too. Except this is were it begins to get
    perplexing...whenever i publish or preview the movie to test the
    buttons, the first "contact us" button works fine, but when i get
    to the "games" button, instead of directing me to the 284th frame,
    it directed me to the 284th frame of a completely different scene.
    the scene where the intro to my site plays.
    So forgive me for the long message but help would be much
    appreciated. I've been working with flash in my spare time for a
    little under a year now I can't help to shake the feeling that the
    problem is something obvious.

    If you mean rollover rollvers (via layered menus) it could be the player itself, they are not supported acrosss all players.
    Layer menus are here Layered Menus
    Did you assign navigation to the buttons (or are yyou only going back and foorth between two buttons?)

  • Navigation Menu trouble!

    I created a drop down Navigation Menu in Dreamweaver CS5 by using the Spry Menu Bar. After I customized the colors I noticed that the drop down tab were appearing correct, but on the left if i widend the screen all the tabs were listed off the page.I have the website I created centered so u can see the tabs to the left.
    Attached is a picture.Can someone help me what did I do wrong?

    IMO the entire layout is in trouble not just the menu.
    I would start over with a pre-built CSS layout and ditch the tables.  You really don't need tables for layouts and should only use them when displaying tabular data (spread sheets & charts).
    CSS Liquid Header & Footer with Floats
    http://alt-web.com/TEMPLATES/I-page-with-floats.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Java version troubles

    I have just installed
    jdk-1_5_0_11-linux-i586.rpm.bin
    on my linux machine. Nevertheless, when I type on a command line
    java --version
    I get ' java version "1.4.2" '.
    What do I need to do to upgrade to java 1.5? (I have troubles executing programs with parametrized types -- they compile with -source 1.5 option, but don't execute).
    Thanks a million in advance!

    Thanks for replying! How do I alter my path? (Sorry,
    I'm a complete newbie.)It's dependent on the OS that you are using, and I think it also is dependent on the shell that you are using. Google on your OS and shell and change path.
    Do also check if you have a symbolic link from java to the correct version. That's often used on unix/linux based systems, but all of this is pure OS specific and doesn't involve java at all.
    Kaj

  • Pop-up menu trouble!

    I am learning to create a website using dreamweaver, fireworks and photoshop. I created a sample website using these tools. Initially I created a layout in photoshop followed by web slices in fireworks. Later I exported my work in dreamweaver to complete the website. I saved my layout as a template so that any changes get updated automatically in all pages. To add a rollover image menu, pop-up/drop-down menu in template, I switched back to fireworks within dreamweaver. I created rollover image menu successfully and even drop-down too. It worked fine in fireworks preview window. I finished my editing in fireworks and switched back to dreamweaver and updated the changes in template. when I previewed that template, the rollover and pop-up menu  worked fine on all menu item(on mouse over). when i clicked a menu item/page /link, it follows to the page correctly and rollover worked still  fine and smooth but pop-up menu failed as if i never created one. I tried reloading the page but it failed.
    Again I loaded a preview from template and it worked. when I click any menu, it failed. But the rollover works well. I tried to repeat my steps from beginning and the result is the same.
    I tried for preview from individual pages, no pop-up emerged. Later I observed that pop-up javascript is located in all pages but never works on execution. It works only in the template from which I created all other pages but it still fails on clicking other links in same template preview. Please help me. This stopped me from moving to next lessons.

    Please elaborate
    which version of Dreamweaver
    the location of the lessons that you are following
    a copy of the code that you have created
    This will place us on the same footing and enable us to help you.

  • Help with a Java menu

    I am rather new to this so I appreciate any help you can provide.
    I was asked to add an additional choice to an existing drop down (mouse over) menu. I have added the additional choice and it appears when I preview it in a browser but for some reason it will not go to the "index.html" file I have set for the location. If I use the path from one of the other menu choices it works fine.
    Any thoughts?
    Message was edited by:
    DarkChii

    This is a JavaScript question isn't it?

  • Menu bar not displaying inline with logo (Spry menu troubles - Extra Credit!)

    Coding Brothers and Sisters!
    Hope you all are well - would anyone please assist me to display inline the logo and menu bar at the following page?
         http://gratefulcreative.com/Andre_Madiz/index.html
    Superbonus, Adobe All-star points for help with my Spry Menu Bar, which is not showing submenus. I get an error message saying the following:
         This document contains Javascript code for a widget that no longer exists. If you don't remove the code, the browser might display Javascript errors when loading the page. Would you like Dreamweaver to find all the
         instances of the code for you?
         Widget: var Menu Bar 1 = New.Spry.Widget.MenuBar ("MenuBar1"; {imgdown:"SpryAssets/SpryMenuBarDownHover.gif",imgRight:"SpryAssets/SpryMenuBarRightHover .gif"});
    Thank you as always!
    Ken D
    Creative Director
    Grateful Creative
    www.gratefulcreative.com

    Use CSS floats.  Posted here with inline styles for expediency.  Ideally, you should set-up some re-usable classes for floats & clearing in your external style sheet.
    <div style="float:left; width:250px">
    <a href="http://www.andremadizmma.com"><img src="images/Bulldog_logo3.png" border="0"></a>
    </div>
    More on Floats:
    http://css.maxdesign.com.au/floatutorial/
    (='.'=)
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • New to java, having trouble with classes

    I am new to java and I am having problems importing classes in my first program, please help

    hi
    please tell, what`s your problem exatly?

  • Imported java mapping trouble

    Hello.
    I'm in the process of moving all of our XI 2.0 applications to XI 3.0. One of these apps uses an imported archive as an interface mapping. I'm getting this error message: "XML not well-formed", when I try to test my mapping in IR.
    The java mapping imports the StreamTransformation class, then references the RECEIVER_NAME and RECEIVER_NAMESPACE components. However, these are always blank in the XML being created.
    This is a part of my Java mapping:
    package wtGas;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    import java.io.*;
    import java.util.Map;
    import java.util.Vector;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    public class JM_WTGas extends DefaultHandler implements StreamTransformation {
         public void setParameter (Map param){
              map = param;
         public void execute(InputStream in, OutputStream out) throws com.sap.aii.mapping.api.StreamTransformationException {
              DefaultHandler handler = this;
              SAXParserFactory factory = SAXParserFactory.newInstance();
              try{
                   SAXParser saxParser = factory.newSAXParser();
                   this.out=out;
                   saxParser.parse(in, handler);
              }catch(Throwable t){
                   t.printStackTrace();
         public void startDocument() throws SAXException {
              write("<?xml version='1.0' encoding='UTF-8'?>");
              write("<ns1:" + (String)map.<b>get(StreamTransformationConstants.RECEIVER_NAME)</b> + " xmlns:ns1=\"" + (String)map.<b>get(StreamTransformationConstants.RECEIVER_NAMESPACE)</b>+ "\">");          
    write("<TABLE2>");
         public void endDocument() throws SAXException{
    write("</ns1:" + (String) map.<b>get(StreamTransformationConstants.RECEIVER_NAME)</b> + ">")
    And this is the resulting XML file:
    <?xml version='1.0' encoding='UTF-8'?>
    <b><ns1: xmlns:ns1=""></b>
    <TABLE2>
    <item>
    <REC_TYPE>0001</REC_TYPE>
    <POSTKEY>50</POSTKEY>
    <ACCOUNT></ACCOUNT>
    <AMOUNT>0000000000000000</AMOUNT>
    <TAX_CODE>1o</TAX_CODE>
    <JURIS>camb</JURIS>
    <BUNIT></BUNIT>
    <COST_CTR></COST_CTR>
    <ORD_NO></ORD_NO>
    <ASSIGNMENT></ASSIGNMENT>
    <DET_TEXT></DET_TEXT>
    </item>
    <b></ns1:></b>
    As you can see, it's leaving out the receiver name and namespace. Can anyone tell me what's going on, please? This was working in XI 2.0.
    Thank you.
    Nicole

    Are you doing the single test in the IR ?
    If then the streamtransformation map will not be set by default...it needs to be set explicitly...on the 'Test' tab, there are in turn 2 sub tabs 'Document' and 'Parameters'....the streamtransformation values need to be set in the 'Parameters' tab...
    Thanks.

  • IDVD menu troubles

    In iDVD when I preview my video the menu works fine, but when I play it in my DVD player on the tv it skips the menu completely and goes straight to the slideshow. How do I fix this?

    If you do see the grey box in the DVD map, get rid of it.
    It says something like "drag contents here to......"
    Delete it and make sure your menu is the very first screen on this map.
    I haven't used iDVD in a very long time, but had come across this as well and, if my memory doens' fool me this fixed it.

Maybe you are looking for

  • File Content Conversion and Empty file issue

    Hello, The issue is : I have configured a file sender adapter with file Content Conversion. I have 2 kinds of records Header and Items. i have defined the 'Key Field Name' based on the first character of each line of my flat file and the values assoc

  • SAP PPM 5.0 Error

    I am getting below error on a new installation of SAP PPM 5.0, project management tab Parameter NOMENU is not supported in SAP Portfolio and Project Management 5.0. Please help Thanks and regards

  • VB6 INSERT QUERY

    Hi, Can anyone give me the correct method for inserting a record into an access 2010 db? I have the connection details but not sure how to execute the actual query. Dim cmd As New ADODB.Command     'Dim cat As New ADOX.Catalog     'Dim dbpath As Stri

  • 1 website won't open

    Hello, when trying to access one specific website, I either get a Micorsoft VB script error (below), or the blue bar stops part way in and stays there. I used to be able to get to this site fine. All other sites work fine. My daughter and son can get

  • In MB1B how to get Material description?

    Gurus, At the time of making 541 movement through MB1B referencing the PO, system should show the material Description also.Presently system shows only the Material Code but not the Material description. How do I get the Material description in MB1B