Need help combining a Layout and Graphics

Okay, I've been working on this for a long time now, and I'm getting close...but not quite.
I want to have a JApplet where I can use Graphics methods, as well as JButton, etc. However, if I set my applet to use a certain type of Layout (setLayout), it will only display the JButton and none of the graphics that I drew in paintComponent(). If I don't define a Layout at all, the JButton covers the entire applet. If I take out the JButton and the Layout, then I do see the Graphics. So, it's like the Graphics are being hidden underneath the Layout, and I don't know how to get them to show through.
Here's what I have...as you can see from the billion commented lines, I tried a lot of different things.
import javax.swing.*;       // Imports JButton, JTextArea, JTextField
import java.awt.*;          // Imports Canvas
import java.awt.event.*;    // Imports ActionEvent, ActionListener
public class HashTableApplet extends JApplet
  public void init()
    PaintStuff paint = new PaintStuff();
    Container contentPane = getContentPane();
    JButton startButton = new JButton("Start");
    //Determine the "look" of the Applet:
    contentPane.setLayout(null);
    contentPane.add(paint);
    // Add in the button:
    Insets insets = contentPane.getInsets();
    contentPane.add(startButton);
    startButton.setBounds(25 + insets.left, 5 + insets.top, 75, 20);
class PaintStuff extends JPanel
  public PaintStuff()
    //setBackground(Color.lightGray);
  public void paintComponent(Graphics g)
    super.paintComponent(g);
    //setOpaque(false);
    g.setColor(Color.yellow);
    // drawLine(x1, y1, x2, y2)
    g.drawLine(50, 50, 100, 100);
    g.drawLine(0, 200, 700, 200);
    g.drawRect(200, 200, 200, 200);
}

/*    <applet code="GraphicApplet" width="400" height="300"></applet>
*    use: >appletviewer GraphicApplet.java
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
import javax.swing.*;
public class GraphicApplet extends JApplet {
  GraphicPanel graphicPanel = new GraphicPanel();
  int colorCount = 0;
  public void init() {
    final Color[] colors = {
      Color.orange, Color.yellow, Color.pink
    final JButton button = new JButton("Change Background");
    button.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        Color color = colors[colorCount++ % colors.length];
        graphicPanel.setBackgroundColor(color);
    JPanel northPanel = new JPanel();
    northPanel.add(button);
    Container cp = getContentPane();
    // default layout for JPanel (== JApplet) is Flow Layout
    cp.setLayout(new BorderLayout());
    cp.add(northPanel, "North");
    cp.add(graphicPanel, "Center");   
   * Convenience method allows you to run this from the command line.
  public static void main(String[] args) {
    JFrame f = new JFrame("Grpahic Applet");
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JApplet applet = new GraphicApplet();
    f.getContentPane().add(applet);
    f.setSize(400,300);
    f.setLocationRelativeTo(null);
    applet.init();
    applet.start();
    f.setVisible(true);
class GraphicPanel extends JPanel {
  Color bgColor;
  public GraphicPanel() {
    setBackground(Color.black);
    bgColor = Color.red;
    // add listeners here
  public void paintComponent(Graphics g) {
    super.paintComponent(g);
    Graphics2D g2 = (Graphics2D)g;
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                        RenderingHints.VALUE_ANTIALIAS_ON);
    int width = getSize().width;
    int height = getSize().height;
    int cx = width/2;
    int cy = height/2;
    int diameter = Math.min(width, height)*2/3;
    g2.setPaint(bgColor);
    g2.fill(new Rectangle2D.Double(width/8, height/8, width*3/4, height*3/4));
    g2.setPaint(Color.blue);
    g2.draw(new Rectangle2D.Double(cx - diameter/2, cy - diameter/2,
                                   diameter, diameter));
    g2.setPaint(Color.green);
    g2.draw(new Ellipse2D.Double(cx - diameter/2, cy - diameter/2,
                                 diameter, diameter));
  public void setBackgroundColor(Color color) {
    this.bgColor = color;
    repaint();
}

Similar Messages

  • Need help with Page Layout and Background Scaling

    hello, everyone.
    I am in the process of designing a new website for myself,
    and while I was researching nicely designed pages to use as
    inspiration, I stumbled upon this site:
    http://www.jeffsarmiento.com/
    obviously, the design is very impressive, but it also
    incorporates a lot of web mechanics that I have been trying to
    figure out, so I will use this page as an example.
    one thing I need help with is backgrounds. as you can see in
    the posted website, the creator used a seamlessly tiled paper
    texture to display the bulk of his content on. also make not of the
    pattern that is located to the left of the paper texture. how do I
    create seamless backgrounds like this that will scale to fit any
    amount of content or any resolution? I can't imagine that the guy
    that made that site created a new size background every time he
    made an update, so there has to be an easier way.
    the second thing that I am having trouble with is general
    site layout. I have read that most sites used series of invisible
    tables to organize there content, but when I open the source of
    this page in dreamweaver, he was using something different. div
    tags? should I be using these? who do I use them? are there any
    general layout tips that someone could pass on to me? perhaps a
    link to a good tutorial?
    please help me. i am very confused.
    thanks so much.

    IMO not a good site to emulate. To wit:
    Top background image:
    http://www.jeffsarmiento.com/images/bg-top.jpg;
    745px
    x 350px 137K
    Main background image:
    http://www.jeffsarmiento.com/images/bg-tile.jpg;
    745px x 950px 130K
    Total page size: 454K (Check here:
    www.websiteoptimization.com)
    Website usability experts routinely recommend a maximum page
    size of ~80K
    Check out the We We Scale @ www.FutureNowInc.com/wewe/ where
    they suggest,
    "You speak about yourself approximately 0,003 times as often
    as you speak
    about your customers. Might that have an impact on your
    effectiveness?"
    That is 100% consistent with the #1 Web Design mistake:
    "Believing people
    care about you and your web site." or to phrase more
    expansively, "Our site
    tries to tell you how wonderful we are as a company, but not
    how we're going
    to solve your problems."
    www.sitepoint.com has some excellent books on making a
    website actually
    attractive and usable at the same time.
    Walt
    "beWILLdered_" <[email protected]> wrote in
    message
    news:[email protected]...
    > hello, everyone.
    > I am in the process of designing a new website for
    myself, and while I was
    > researching nicely designed pages to use as inspiration,
    I stumbled upon
    > this
    > site:
    >
    http://www.jeffsarmiento.com/
    > obviously, the design is very impressive, but it also
    incorporates a lot
    > of
    > web mechanics that I have been trying to figure out, so
    I will use this
    > page as
    > an example.
    > one thing I need help with is backgrounds. as you can
    see in the posted
    > website, the creator used a seamlessly tiled paper
    texture to display the
    > bulk
    > of his content on. also make not of the pattern that is
    located to the
    > left of
    > the paper texture. how do I create seamless backgrounds
    like this that
    > will
    > scale to fit any amount of content or any resolution? I
    can't imagine that
    > the
    > guy that made that site created a new size background
    every time he made
    > an
    > update, so there has to be an easier way.
    > the second thing that I am having trouble with is
    general site layout. I
    > have
    > read that most sites used series of invisible tables to
    organize there
    > content,
    > but when I open the source of this page in dreamweaver,
    he was using
    > something
    > different. div tags? should I be using these? who do I
    use them? are there
    > any
    > general layout tips that someone could pass on to me?
    perhaps a link to a
    > good
    > tutorial?
    > please help me. i am very confused.
    >
    > thanks so much.
    >

  • I need help importing navigation bars and rollover buttons from fireworks?

    I need help importing navigation bars and rollover buttons from fireworks, drop down menus and rollover states won't work!
    Thanks

    In my experience, the code created by graphics apps is less than satisfactory. And image based menus are very awkward for several reasons. 
    #1 If you decide to change your menu later, you must go back to your graphics app and re-craft the whole thing.  After 2-3 times of this, it gets old in a hurry.
    #2 Image based menus cannot be "seen" by search engines, screen readers and language translators.
    #3 CSS styled text menus are better for your site's visibility, accessibility and they are a snap to edit in Dreamweaver.
    That said, if you're still married to image based menus, use Fireworks to create images only. Use Dreamweaver's Image Rollover Behaviors to create your rollover scripts.
    Nancy O.

  • I need help, yesterday I installed and reinstalled the Yosemite system and take long to turn on my laptop, the bar takes to fill, and I'm worried. Can you help? thank

    I need help, yesterday I installed and reinstalled the Yosemite system and take long to turn on my laptop, the bar takes to fill, and I'm worried.
    Can you help? thank

    revert back to Maverick that is what I had to finally do. This was the worst upgrade I have ever seen. Hopefully you have Time Machine backup and can revert back. It was pretty painless except for a few issues. I will wait until Apple gets their stuff together on this upgrade or may never will.

  • Need help with Blog, Wiki and Gallery

    Hi Team,
    Need help with Blog, Wiki and Gallery startup. I have newly started visiting forums and quite interested to contribute towards these areas also.
    Please help.
    Thanks,
    Santosh Singh
    Santosh Singh

    Hello Santhosh,
    Blog is for Microsoft employees only. However, you can contribute towards WIKI and GALLERY using the below links.
    http://social.technet.microsoft.com/wiki/
    http://gallery.technet.microsoft.com/

  • Need help FLASH not launching and not uninstalling "licensing for this product has stopped working".

    Need help FLASH not launching and not uninstalling "licensing for this product has stopped working" and " you can only install one adobe product at a time please complete the other installation"  Flash was working absolutely fine before, I have no idea why this happened.

    I am having similar problem.  Can't open any of CS3 programs after trying to download Dreamweaver Trial, which wouldn't work because "couldn't remove DLM extention" error message.  So now I can not run Illustrator, Photoshop, or even Adobe Reader.  These are properly licensed for about a year. I get "License for product has stopped working".  Have 2 pending cases open with Adobe support (one for Dreamweaver trial, one for license problem) since 8/3 with NO ANSWERS - It says answers within 1-3 business days.  Was on phone support hold today for over 3 hours before line went dead with no help.  What is up with adobe support?  Can anyone help?

  • Need Help with complex query and computing values

    I have an issue trying to combine data from several tables. I need help trying to compute the "Total Hours", "Max Pressure" ,"Average Pressure" while displaying the "Manufacturer",
    "Part Type" , "Serial Number", "District", "Status","Truck Type",and "truck number" for a certain Part on all Trucks. I need to be able check and see if the serial number was on
    a particular job and calculate the hours of that serial number if it was on that job and the jobdate falls between the install date and removal date. Ive tried but keep getting either
    repeating rows, total hrs of the truck instead of the serial number. Ive considered doing a pivot to display it but have been having trouble putting it together.
    table 1
    (*records of parts*)
     Contains  serial number,truck number, part type, part number, install date, removal date, status
    table 2
    (*records of Jobs*)
    contains Jobnumber, JobStartdate, Max pressure, average pressure, and Totalhrs
    table 3
    (records related to jobs and trucks)
    contains jobnumber, district , and truck numbers
    Table 4
    (records of manufacturers and part numbers)
    contains partnumber, manufacturer name, and truck type
    I would like to get it to show like below
    SerialNo   PrtType       
    MFG      TruckNo  
     TrkType    TtlHrs 
       MaxPr   AvgPr 
      Status    
    Dst
    AB345     1200series  
    NGK        2G34        
    Boss X       400     10,000 
     9500  NonOp    
    NE
    Thanks in advance

    Hope this helps
    Note: (Date of Mar 1 2014 was just extended to a further date so the system would know that its still operating when calculating current hours)
    Table 1
    SerialNo    TruckNo  InstallDate RemovalDate      Status       PartNo      PartType
    BJ1002       F917   2013-09-17   2014-03-01   Oper         L871235       BJ 3000 GL
    CWS1002   F104   2012-11-21   2013-03-29   NonOper   L76088-450   CWS 2000
    CWS1003   F104   2013-04-24   2013-08-01   NonOper   L76088-450   CWS 2000
    CWS1005   F187   2012-11-21   2013-04-04   NonOper   L76088-450   CWS 2000
    CWS1006   F187   2013-04-24   2013-06-30   NonOper   L76088-450   CWS 2000
    CWS1007   F187   2013-06-30   2013-03-01   Oper         L76088-450   CWS 2000
    CWS1009   2F60   2013-05-05   2013-03-01   Oper         L76088-450   CWS 2000
    CWS1011   F809   2013-05-28   2013-08-28   NonOper   L76088-400   CWS 2000
    CWS1013   F990   2013-06-11   2013-10-29   NonOper   L76088-450   CWS 2000
    CWS1015   F783   2013-06-28   2013-03-01   Oper         L76088-450   CWS 2000
    Table 2
    JobNumber    Date                 District         PrAvTreat PrMaxTr TotalHrs
    553811287    2012-01-19    Fairmount    7337        8319     1.53
    652110088    2012-08-20    San Antonio  6340       7075      0.47
    652110090    2012-08-21    San Antonio  6134       7131      0.62
    652110091    2012-08-22    San Antonio  6180       2950      0.58
    652110092    2012-08-23    San Antonio  5959       6789      0.64
    652110093    2012-08-23    San Antonio  6165       7466      0.62
    Table 3
    TruckNo District    JobNumber
    1F01      Odessa   10011012329
    1F01      Odessa   10011012333
    1F01      Odessa   10011014831
    1F01      Odessa   10011014834
    1F01      Odessa   10011012332
    1F01      Odessa   10011012328
    1F01      Odessa   10011014829
    Table 4
    PartNumber    Manufacturer  TruckType
    L322020-2     Jimmy Dean   Ford T
    L322738-2     Lucas             Ford T
    L47869-1       Jimmy Dean   Ford T
    L76070-650   NGK               Ford T   
    Sam Howard

  • Need Help with particular layout

    Hi,
    I need help with a particular layout with jsf.
    I dont be able to get this layout with checkbox and inputtext.
    label checkbox
    label checkbox
    label checkbox
    label checkbox
    label checkbox labelinputtext inputext
    with panelgrid I obtain only this one
    label checkbox
    label checkbox
    label checkbox labelinputtext inputext
    label checkbox
    label checkbox
    But I want place inputext and its label next to the last checkbox.
    Could someone help me? Thanks

    <h:panelGrid columns="2">
         <h:selectManyCheckbox layout="pageDirection" styleClass="styled">
              <f:selectItem itemLabel="Ischemica" itemValue="Ischemica"/>
              <f:selectItem itemLabel="Ipertensiva" itemValue="Ipertensiva"/>
              <f:selectItem itemLabel="Valvolare" itemValue="Valvolare"/>
              <f:selectItem itemLabel="Cardiomiopatia" itemValue="Cardiomiopatia"/>
              <f:selectItem itemLabel="Altro" itemValue="Altro" />
         </h:selectManyCheckbox>     
         <h:panelGrid columns="2" styleClass="tableA" >
              <h:outputText value="Specificare" />
              <h:inputText value="" styleClass="styled2" />
         </h:panelGrid>
    </h:panelGrid>     
    In my css I insert class
    .tableA{
    vertical-align: bottom;
    }

  • Need help with show/hide and layers moving

    I'm more of a designer, so I don't know code or CSS well at
    all. I'm doing an online portfolio for a class and need help with
    layers not staying in place in different browsers. The portfolio is
    created with a table, but I wanted to use the show/hide function
    for thumbnails of work. Are layers the only way you can use this
    function? I read layers don't work well with tables, so how else
    can I make it so when you mouse over a thumbnail, the larger image
    appears in another cell?

    > I don't know code or CSS well at all.
    That's unfortunate.
    > layers not staying in place in different browsers.
    Layers don't move. But the rest of your page does.
    Before you get too wrapped up in layers, though, please read
    this -
    http://www.great-web-sights.com/g_layerlaws.asp
    They are not good when be used as a primary layout method.
    > I read layers don't work well with tables
    They work fine with tables - but you have to understand both
    tables and
    layers to use them.
    Why not show us your page, so we can see what you are
    struggling with?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Bobbi67" <[email protected]> wrote in
    message
    news:ertd9h$h3m$[email protected]..
    > I'm more of a designer, so I don't know code or CSS well
    at all. I'm doing
    > an
    > online portfolio for a class and need help with layers
    not staying in
    > place in
    > different browsers. The portfolio is created with a
    table, but I wanted to
    > use
    > the show/hide function for thumbnails of work. Are
    layers the only way you
    > can
    > use this function? I read layers don't work well with
    tables, so how else
    > can I
    > make it so when you mouse over a thumbnail, the larger
    image appears in
    > another
    > cell?
    >

  • Need help with Airport Express and so on.

    Ok so my main problem before getting into what I need help with here is that our MacBooks and now my iPhone 6 plus isn't staying online. Keep getting booted off and then I either have to select the network again or it will eventually go back on. If anyone has a solution or so please feel free to answer that as well. I'm running on Roadrunner with a Netgear 600 wireless router and a motorola modem. Both of which I'll leave the link to below for a better look.
    My Main Question: So I'm looking at a new wireless router mainly and possibly a new modem. I know Apple products are trustworthy but how good is the Airport Express and other Airport products. Also what is the Maximum speed and Maximum data speed for the cheapest express station and if anyone knows the speeds of the other devices it would be greatly appreciated.

    DSL Router to Netgear 5-port Switch and I used the switch to connect to Airport Extreme, TV, Blue-Ray DVD player and DirecTV Receiver.
    The AirPort Extreme base station (AEBS) is a router so it will do what you need.
    You need to reconfigure your setup. Connect the WAN port of the AEBS to the DSL router. Then connect the Netgear switch to one of the LAN ports on the AEBS. The AEBS will properly share the connection.

  • FCP Novice needs help with video quality and FCP 5!!

    Hi,
    I have a real problme that I cannot seem to fix. I think its because I am doing something really wrong!
    I have a Sony HC42E MiniDV Camcorder which by default records video in full widescreen. I recorded several tapes this way and have now begun trying to edit them in FCP 5.04 (Tiger 10.4.6). Whenever I log and capture my clips they appear to be fuzzzy and unclear on the Mac monitor whilst being totally crisp and sharp on the camcorder viewfinder. I tried capturing using the DV PAL 48Khz Anamorphic Preset which keeps everything the right size (the final output needs to be true widescreen and not with black bars added) but the resulting video on screen is blurry and bitty. I then tried capturing using the DV PAL 720 x 576 normal preset and the video is a little clearer on the screen (for both presets I have chosen lower field dominance) but when I play back it plays back in widescreen on the mac canvas window but at 4:3 on the camera's viewfinder.
    I then assumed that maybe this is just becuase the mac screen (CRT by the way) doesn't use fields. So I exported the sequence as a QT movie using DV PAL 16:9 and used quicktime (OS9 Classic - my compressor has never worked because of the dreaded "unable to connect to baackground process" problem which I've never managed to correct) to convert it to MPEG2. When I import this as an asset into DVD Studio pro 4 and set the track size to 16:9 it comes through at the right aspect ratio. However it looks blurry on screen. Thinking that this will be fine on a TV I burned the disc - inserted it into my DVD player (a good one!) and watched it on my new 32" widescreen TV (a good one!) and the picture qualitty is poor. Its so much blurrier and bittier than the original footage looks when played through the camcorder's viewfinder!
    The final footaage looks like an old VHS recording that's a year or two old!
    Does anyone know how I can capture my footage in FCP with the maximum quality, edit it without quality loss and the export it for DVD again without such significant quality loss whilst all the time keeping it at proper 16:9 widescreen?
    Is there some presets I should be working to?
    I'm tearing my hair out! Help!

    Hi Guys,
    thanx for your replies.
    here's the latest:
    Brian, I followed your instructions and the DVD burned successfully. However the video quality of the dvd when viewed on my TV ('ve tried on all 3 of my tvs now) is still a lot poorer than the quicktime movie that was imported into DVDSP4. When I play the original QT Movie on my Mac CRT monitor it looks a little blurry and grainy because I guess its non interlaced however when viewed on an external Video monitor it looks great - very sharp.
    When I view the burned DVD on my television the picture quality looks like the non interlaced version of the original QT Movie that appeared on my Mac CRT and not the sharp interlaced (lower field) version that appeared on my external video monitor.
    Its almost like taking a sharp jpeg into Photoshop and applying a gaussian blur of about 0.3 followed by jepg compression compressing it down to 5% quality!
    I'm totally mystified. Can the conversion to Mpeg2 be removing all interlacing so that you get the less sharp computer monitor look? I just want the video on my final DVDs to be as good as the original source footage! I appreciate that along the way there might be loss of some quality but surely not that much?
    Does this make sense to you guys or am I still doing something very wrong?
    Robert: I have tried setting all manner of drives including a fresh external firewire HD with nothing on it (clean out of the box) but it doesn't seem to help.
    Brian: I tried the no network suggestion a few months back but I'm not sure if I got it right. At the moment I have broadband through an external speedtouch usb modem and am also connected (occasionally although not for the last 3 months) via a crossover cable to my PCs ethernet card. When I last tried the No Network solution I had immense trouble getting my internet to work again! Can you please help me by directing me to the best ay to do this while protecting my internet settings?
    any more help guys would be greatfully appreciated.

  • I need help understanding export options and optimizing for web

    I have been using FCP X for a short while now and have a pretty good grasp on the editing capabilities. What I'm having a horrible time figuring out is the export/share options. The videos I create are typically approximately 1 minute in length and get posted to a web site (we have our own CMS and video player so I'm not using YouTube or Vimeo or anything like that). In order to post them I need them to be MP4s and then I have to create .webm and .ogv files. The source material I work with is generally great, high quality stuff, so I end up with very large output files from the initial FCP share master file options.
    When I use MPEG Streamclip to make my MP4s I end up with files that are still quite large and I can't seem to ever get the file size manageable without losing tons of quality. I do not have Compressor, though if that will solve my problem I will put in for the expense of it. What I'm trying to understand is what sorts of settings I should be trying out to get my file sizes to be manageable without completely compromising my quality. And I know this can be done, because the company I work for pays for a great quantity of video work each year (from an outside production firm) and the clips provided are beautiful in quality and small in file size -- for example, I recently worked on a video and got it into the 40MB range before quality went to crap, working off the same material the production company we do work with had theirs down into the teens and looking beautiful!
    To throw an even greater wrench in the works, I am working off a mac. But when my boss, on a pc, saves the mp4s I create (raw files -- not what is posted to the web) locally on his machine and views them from there the sound is always off a tad and the people in the videos look like they're lip synching.
    Any advice on either of these is MUCH appreciated. I've been trying to figure this out properly for months, and only today decided to stop seeing if someone else had the same question and just post my own.
    Bronwyn

    Thank you Karsten, this was helpful I have utilized the Quality slider and the frame size options before though with limited results. I've never messed with the Limit Date Rate option as I don't know what I'm doing with it, I see you put 5Mbps. Is that a typical setting that I could use?
    Using stream info, here's info on my original source file:
    Stream: Charles_0023_2.mov
    Duration: 0:00:51
    Data Size: 96.51 MB
    Bit Rate: 15.77 Mbps
    Video Tracks:
    H.264, 1920 × 1080, 29.97 fps, 15.64 Mbps
    Audio Tracks:
    MPEG-4 Audio stereo, 48 kHz, 127 kbps
    Stream Files:
    Charles_0023_2.mov (96.51 MB)
    As a comparison, here's the info on a similar clip that the company we sometimes use created:
    Stream: Charles_0019_4.mp4
    Duration: 0:00:49
    Data Size: 4.66 MB
    Bit Rate: 0.80 Mbps
    Video Tracks:
    JVT/AVC Coding, 710 × 400, 29.97 fps, 635 kbps
    Audio Tracks:
    MPEG-4 Audio stereo, 48 kHz, 162 kbps
    Stream Files:
    Charles_0019_4.mp4 (4.66 MB)
    I'm fine with bringing the frame size down some and modifying the limit data rate, but sometimes I feel like I'm forcing my video into something it's not and the quality suffers -- this is where my understanding of video work breaks down LOL. Any suggestions of how I can get my .mov into something like the the .mp4 above?
    Also have you had any experience with mp4s not playing back properly on pcs?
    Again, thank you!
    Bronwyn

  • Beginner needs help with css layout

    i'm new to using dw (cs3) and css, though i have some
    background in html and coding. i'm creating a page using the "one
    column elastic, centered, header and footer" layout and i have a
    banner header with a horizontal spry menu bar at the bottom of the
    header. the background color of the buttons on the menu bar is red,
    and there's a yellow 5px border on the top and bottom of the red
    menu bar, so it looks like there's red bar with yellow piping above
    and below it, and this bar is between the header and body section
    of the page. i've set these colors in the "ul.MenuBarHorizontal a"
    rule.
    now, the issue i have is that my menu bar does not extend
    across the entire column, so there's empty space to the right of my
    menu bar (between the end of the menu bar and the far right
    column). i'd like the look of the red and yellow menu bar to extend
    all the way across, but i can't figure out how to do this in css.
    do i:
    extend the menu bar all the way across the width of the page?
    i can't figure out how to do this.
    insert an image to make it appear as though the red and
    yellow bar keeps extending to the right? if so, how will that image
    remain elastic along with my page?
    or is there a better solution?
    i'm very new to css and i'm doing my best to figure out how
    everything fits together. the last web site i built was in 1997 and
    it was done in notepad. any help would be tremendous. i'm in
    kinshasa, in the democratic republic of congo, and truth be told
    there aren't a lot of dw gurus out here.
    thanks in advance...

    Can you post a link to your page, please?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "charliemooreiv" <[email protected]> wrote
    in message
    news:[email protected]...
    > i'm new to using dw (cs3) and css, though i have some
    background in html
    > and
    > coding. i'm creating a page using the "one column
    elastic, centered,
    > header
    > and footer" layout and i have a banner header with a
    horizontal spry menu
    > bar
    > at the bottom of the header. the background color of the
    buttons on the
    > menu
    > bar is red, and there's a yellow 5px border on the top
    and bottom of the
    > red
    > menu bar, so it looks like there's red bar with yellow
    piping above and
    > below
    > it, and this bar is between the header and body section
    of the page. i've
    > set
    > these colors in the "ul.MenuBarHorizontal a" rule.
    >
    > now, the issue i have is that my menu bar does not
    extend across the
    > entire
    > column, so there's empty space to the right of my menu
    bar (between the
    > end of
    > the menu bar and the far right column). i'd like the
    look of the red and
    > yellow menu bar to extend all the way across, but i
    can't figure out how
    > to do
    > this in css.
    >
    > do i:
    >
    > extend the menu bar all the way across the width of the
    page? i can't
    > figure
    > out how to do this.
    >
    > insert an image to make it appear as though the red and
    yellow bar keeps
    > extending to the right? if so, how will that image
    remain elastic along
    > with
    > my page?
    >
    > or is there a better solution?
    >
    > i'm very new to css and i'm doing my best to figure out
    how everything
    > fits
    > together. the last web site i built was in 1997 and it
    was done in
    > notepad.
    > any help would be tremendous. i'm in kinshasa, in the
    democratic republic
    > of
    > congo, and truth be told there aren't a lot of dw gurus
    out here.
    >
    > thanks in advance...
    >

  • IPhone 5 screen wont turn on. (Need help or info, please and thank you.)

    So i got an Iphone 5, and i accedently droped it in the sink. i took it out, whipped it off,  i put it in my pocket and left it alone.
    the next day the screen was not working, moments later, it(Iphon5) turned off.  tried turnng it back on but it wouldnt work.
    so, again i left it. everything still works, its just that the screen wont turn on, i could still play music snapshot stuff,
    but my screen wont tun on.
    I NEED HELP.

    I don't beleive this is a known problem and you should probably bring your phone to a local Genius Bar (make an appointment here) as this is likely a hardware issue (a problem with your phone realizing that you removed it from your ear).
    If you're willing to tinker with it a bit, you can determine if this is a software issue by backing up your iPhone (separately ensure your photos, videos and music is backed up) and then "Restore" your phone. If the restoration solves the problem, you're dealing with a software issue. If the problem still exists, you're almost definitely dealing with a hardware issue.

  • Need help connecting to 360 and pc with internet

    im new to using routers and i lost the manual and the box and i need help using the router the model number is NH1005,V2 fast ethernet 10/100 5-port Hub and it is a linksys so can someone help me im confused and i need the ip addreess or something
    thanks in advance

    Hi....
             A network HUB is a network device that is used to connect multiple computer so that they can share the resources. In more general way a hub can be defined as a common connection point for devices in the network.
                There are hubs that can be managed by an administrator. In case of NH1005 it is not a manageable HUB. Connect the devices to the HUB and if the devices are properly configured they will communicate with each other.

Maybe you are looking for

  • Remote Cube Performance

    Hello BW Experts, 1)  Is it advisibe to use remote cubes ( not for the user purpose, but for internal data reconciliation purpose). ? 2) tables we are looking at are the vbak, vbap, vbrk, vbrp from SAP and comparing them to the base Sales and billing

  • Dashboard prompt filter navigating to different tabular reports

    Hi, I was able to implement this halfway. My Dashboard prompt has 4 filters, the fourth filter has three drop down values. "Report with Sales Amount" "Report with Purchase Amount" "Report with both Purchase and Sales" when the user selects the first

  • Where are the Mail files located?

    Can some one guide me to the location of the mail boxes, files on my hard drive so that I can back them up. I could do this with outlook, entourage but unable to find those files with Mail.app. MacBook 10.5.1

  • How can I copy and paste a URL address?

    How can I copy and paste a URL address?

  • I get an error when installing Call To Call

    I always get this error when installing the Skype Call To Call toolbar: "The installer has encountered an unexpected error installing this package,this may indicate a problem with this package.The Error code is 2738" Help anyone?