Button and image layout help.

It is me again. I need some more help. I want to put the four buttons at the south border, and I want to put the image at the North Center. Now I want them obviously to be on the same panel. I would also like to add them all at once like in my code. Is there an override mechanism so that I can just put the image at the NORTH CENTER and keep the four buttons at the south border?
        QuizPanel = new JPanel();
        QuizPanel.add(label);  // I want this at the north center
        QuizPanel.add(button1);
        QuizPanel.add(button2);
        QuizPanel.add(button3);
        QuizPanel.add(button4);
        add(QuizPanel,BorderLayout.SOUTH);
* To change this template, choose Tools | Templates
* and open the template in the editor.
* @author Matt
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class mario {
     * @param args the command line arguments
    public static void main(String[] args) {
        // TODO code application logic here
        EventQueue.invokeLater(new Runnable()
            public void run()
                QuizFrame frame = new QuizFrame();
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.setVisible(true);
class QuizFrame extends JFrame
    public QuizFrame()
        setSize(DEFAULT_WIDTH,DEFAULT_HEIGHT);
        ImageIcon icon = new ImageIcon("C:\\users\\Matt\\Documents\\mario2.gif");
        JLabel label    =  new JLabel();
        label.setIcon(icon);
        JButton button1 = new JButton("one");
        JButton button2 = new JButton("two");
        JButton button3 = new JButton("three");
        JButton button4 = new JButton("four");
        QuizPanel = new JPanel();
        QuizPanel.add(label);
        QuizPanel.add(button1);
        QuizPanel.add(button2);
        QuizPanel.add(button3);
        QuizPanel.add(button4);
        add(QuizPanel,BorderLayout.SOUTH);
        QuizLabel = new JLabel("This is a test",JLabel.CENTER);
        add(QuizLabel,BorderLayout.CENTER);
    private JPanel QuizPanel;
    private JLabel QuizLabel;
    private static final int DEFAULT_WIDTH = 300;
    private static final int DEFAULT_HEIGHT = 200;
}       

I ignored some of the constraints of what you 'wanted' to do. Mostly because they were silly.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.net.URL;
public class mario {
     * @param args the command line arguments
    public static void main(String[] args) {
        // TODO code application logic here
        EventQueue.invokeLater(new Runnable()
            public void run()
                QuizFrame frame = new QuizFrame();
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.setVisible(true);
class QuizFrame extends JFrame
    public QuizFrame()
        JLabel label    =  null;
        try {
                URL url = new URL("http://forums.sun.com/im/bronze-star.gif");
                ImageIcon icon = new ImageIcon(url);
                label    =  new JLabel(icon,JLabel.CENTER);
        } catch(Exception continueWithoutIcon) {
                label    =  new JLabel();
        JButton button1 = new JButton("one");
        JButton button2 = new JButton("two");
        JButton button3 = new JButton("three");
        JButton button4 = new JButton("four");
        QuizPanel = new JPanel();
        add(label, BorderLayout.NORTH);
        QuizPanel.add(button1);
        QuizPanel.add(button2);
        QuizPanel.add(button3);
        QuizPanel.add(button4);
        add(QuizPanel,BorderLayout.SOUTH);
        QuizLabel = new JLabel("This is a test",JLabel.CENTER);
        add(QuizLabel,BorderLayout.CENTER);
        pack();
    private JPanel QuizPanel;
    private JLabel QuizLabel;
}       

Similar Messages

  • Images as Buttons and Image Resizing in mxml

    Sorry for all the questions but I've run into a problem when trying to create buttons that are just an image in mxml. When I first tried this I couldn't find a way to get the border around the button to dissapear so it ended up looking like my image had an extra black border around it. Then someone here suggested I just set the buttonMode property of an mx:Image to true which ended up working fine to a point. The problem I'm having is that even if I make the tabEnabled property of the image (that I'm using as a button) true, I can't tab over to it. Is there a way to either get rid of the black borders of a button or to make it so I can tab over to an image I'm using as a button?
    My second question has to do with image resizing. Lets say I have an image of a horizontal line that I want to put at the top of the mxml page, and I want it to extend the full length of the page, even after the user has resized the browser. Is there a way to do that? I've tried putting the width as 100% or giving the image a "left" and "right" value so that presumably it would be stretched to fit within those but nothing has worked so far. Is there no way to do this or am I doing something wrong?
    Thank you for any help you guys can give.

    Of course, sorry about that. So the following is a barebones example of how I currently implement buttons and images as buttons:
    <mx:Button id="facebookButton" icon="@Embed(source='image.png')" width="30"/>
    <mx:Image buttonMode="true" id="button" source="anotherimage.png" enabled="true" click="{foo()}"/>
    And within the image I've tried making the tabFocusEnabled property true but to no avail.
    The following is how I've tried stretching out an image across the whole page:
    <mx:Image source="yetanotherimage.png" width="100%" scaleContent="true"/>
    <mx:Image source="yetanotherimage.png" left="10" right="10" scaleContent="true"/>
    Is this more helpful?

  • How do i unfreeze my ipod when ive already tried the menu and select button and that didnt help?

    how do i unfreeze my ipod when ive already tried the menu and select button and that didnt help?

    How long did you press and hold both the Select (Center) and Menu buttons together?  Have you tried doing this procedure more than once?  Is the hold switch in the Off position?
    If nothing else, let the iPod's battery fully drain. Then charge it back up again.
    B-rock

  • Ipod touch won't turn on, tried holding the 2 buttons and still nothing help!

    I need help in getting my ipod touch to turn on. I tried holding the 2 buttons and it wont turn on.

    I would put it into a recovery mode to fix it. Try these steps:
    1. Unplug the touch from your computer
    2. Hold the Sleep/Wake switch until you see the red slider and turn the iPod off. (Note: this may not work and if it doesn't go to the next step.)
    3. Start iTunes
    4. Hold down the Home button and continue to hold it down while you plug your touch back into your computer.
    5. Continue holding it down until iTunes gives you a - "device detected in recovery mode" message.
    6. Follow the onscreen instructions to restore your iPod.

  • My phone wont turn on ive tried holding the sleep and home button and nothing happened help?

    i turned my phone off and it wont turn on ive tried holding the sleep and home button and nothing happened...i plugged it in to my computer and i didnt connect to itunes help

    The two first choices are to reboot by holding both the power and home buttons until the apple logo appears, that can take up to half a minute.  If that does not work, then more drastic is to restore using the recovery mode to connect to a computer running iTunes, described in http://support.apple.com/kb/HT1808 and summarized as:

  • Scrolling, and Adaptive Layout help

    Hi guys, I am new to edge animate,
    I would like to know, like when a person scrolls its scrolls to a cirtain point seemlessly, not like when you are using a mouse, like blobk by block.
    also I would like to know more about adaptive layout, if anyone can help me more thorught skype,
    I would me really pleased, thank you
    my skype is Kevin2019170
    Thank you

    Well, only can help you with the background image...  put this code on document.compositionReady and window.resize events:
    var imageRatio = 1.7777; // Aspect 16:9, you can use any proportion depends of your image dimensions
    var sWidth = $(window).width()
    var sHeight = $(window).height()
    if ((sWidth / sHeight) > imageRatio) {
      sym.$("imgBackground").css("width", sWidth +"px");
      sym.$("imgBackground").css("height", sWidth/imageRatio +"px");
    else {
      sym.$("imgBackground").css("width", sHeight*imageRatio +"px");
      sym.$("imgBackground").css("height", sHeight +"px");

  • Drawing and some layout help for a simple control: thin lines and application start

    I am trying to create a new, simple control. The control should act as a grouping marker much like that found in the Mathematica notebook interface. It is designed to sit to the right of a node and draw a simple bracket. The look of the bracket changes depending on whether the node is logically marked open or closed.
    After looking at some blogs and searching, I tried setting the snapToPixels to true in the container holding the marker control as well as the strokewidth but I am still finding that the bracket line is too thick. I am trying to draw a thin line. Also, I am unable to get the layout to work when the test application is first opened. One of the outer brackets is cut-off. I hardcoded some numbers into the skin just to get something to work.
    Is there a better way to implement this control?
    How can I get the fine line drawn as well as the layout correct at application start?
    package org.notebook;
    import javafx.beans.property.BooleanProperty;
    import javafx.beans.property.IntegerProperty;
    import javafx.beans.property.SimpleBooleanProperty;
    import javafx.beans.property.SimpleIntegerProperty;
    import javafx.scene.control.Control;
    * Provide a simple and thin bracket that changes
    * it appearance based on whether its closed or open.
    public class GroupingMarker extends Control {
      private final static String DEFAULT_STYLE_CLASS = "grouping-marker";
      private BooleanProperty open;
      private IntegerProperty depth;
      public BooleanProperty openProperty() { return open; }
      public IntegerProperty depthProperty() { return depth; }
      public GroupingMarker(boolean open) {
      this();
      setOpen(open);
      public GroupingMarker() {
      open = new SimpleBooleanProperty(true);
      depth = new SimpleIntegerProperty(0);
      getStyleClass().add(DEFAULT_STYLE_CLASS);
      // TODO: Change to use CSS directly
      setSkin(new GroupingMarkerSkin(this));
      public boolean isOpen() {
      return open.get();
      public void setOpen(boolean flag) {
      open.set(flag);
      public int getDepth() {
      return depth.get();
      public void setDepth(int depth) {
      this.depth.set(depth);
    package org.notebook;
    import javafx.scene.Group;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.FillRule;
    import javafx.scene.shape.LineTo;
    import javafx.scene.shape.MoveTo;
    import javafx.scene.shape.Path;
    import com.sun.javafx.scene.control.skin.SkinBase;
    * The skin draws some simple lines on the right hand side of
    * the control. The lines reflect whether the control is considered
    * open or closed. Since there is no content, there is no
    * content handling code needed.
    public class GroupingMarkerSkin extends SkinBase<GroupingMarker, GroupingMarkerBehavior> {
      GroupingMarker control;
      Color lineColor;
      double shelfLength;
      double thickness;
      private Group lines;
      public GroupingMarkerSkin(GroupingMarker control) {
      super(control, new GroupingMarkerBehavior(control));
      this.control = control;
      lineColor = Color.BLUE;
      shelfLength = 5.0;
      thickness = 1.0;
      init();
      * Attached listeners to the properties in the control.
      protected void init() {
      registerChangeListener(control.openProperty(), "OPEN");
      registerChangeListener(control.depthProperty(), "DEPTH");
      lines = new Group();
      repaint();
      @Override
      protected void handleControlPropertyChanged(String arg0) {
      super.handleControlPropertyChanged(arg0);
        @Override public final GroupingMarker getSkinnable() {
            return control;
        @Override public final void dispose() {
        super.dispose();
            control = null;
        @Override
        protected double computePrefHeight(double arg0) {
        System.out.println("ph: " + arg0);
        return super.computePrefHeight(arg0);
        @Override
        protected double computePrefWidth(double arg0) {
        System.out.println("pw: " + arg0);
        return super.computePrefWidth(40.0);
         * Call this if a property changes that affects the visible
         * control.
        public void repaint() {
        requestLayout();
        @Override
        protected void layoutChildren() {
        if(control.getScene() != null) {
        drawLines();
        getChildren().setAll(lines);
        super.layoutChildren();
        protected void drawLines() {
        lines.getChildren().clear();
        System.out.println("bounds local: " + control.getBoundsInLocal());
        System.out.println("bounds parent: " + control.getBoundsInParent());
        System.out.println("bounds layout: " + control.getLayoutBounds());
        System.out.println("pref wxh: " + control.getPrefWidth() + "x" + control.getPrefHeight());
        double width = Math.max(0, 20.0 - 2 * 2.0);
        double height = control.getPrefHeight() - 4.0;
        height = Math.max(0, control.getBoundsInLocal().getHeight()-4.0);
        System.out.println("w: " + width + ", h: " + height);
        double margin = 4.0;
        final Path VERTICAL = new Path();
        VERTICAL.setFillRule(FillRule.EVEN_ODD);
        VERTICAL.getElements().add(new MoveTo(margin, margin)); // start
        VERTICAL.getElements().add(new LineTo(margin + shelfLength, margin)); // top horz line
        VERTICAL.getElements().add(new LineTo(margin + shelfLength, height - margin)); // vert line
        if(control.isOpen()) {
        VERTICAL.getElements().add(new LineTo(margin, height - margin)); // bottom horz line
        } else {
        VERTICAL.getElements().add(new LineTo(margin, height-margin-4.0));
        //VERTICAL.getElements().add(new ClosePath());
        VERTICAL.setStrokeWidth(thickness);
        VERTICAL.setStroke(lineColor);
        lines.getChildren().addAll(VERTICAL);
        lines.setCache(true);
    package org.notebook;
    import com.sun.javafx.scene.control.behavior.BehaviorBase;
    public class GroupingMarkerBehavior extends BehaviorBase<GroupingMarker> {
      public GroupingMarkerBehavior(final GroupingMarker control) {
      super(control);
    package org.notebook;
    import javafx.application.Application;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.TextArea;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class TestGroupingMarker extends Application {
      public static void main(String args[]) {
      launch(TestGroupingMarker.class, args);
      @Override
      public void start(Stage stage) throws Exception {
      VBox vbox = new VBox();
      BorderPane p = new BorderPane();
      VBox first = new VBox();
      first.getChildren().add(makeEntry("In[1]=", "my label", 200.0, true));
      first.getChildren().add(makeEntry("Out[1]=", "the output!", 200.0, true));
      p.setCenter(first);
      p.setRight(new GroupingMarker(true));
      vbox.getChildren().add(p);
      vbox.getChildren().add(makeEntry("In[2]=", "my label 2", 100.0, false));
      Scene scene = new Scene(vbox,500,700);
      scene.getStylesheets().add(TestGroupingMarker.class.getResource("main.css").toExternalForm());
      stage.setScene(scene);
      stage.setTitle("GroupingMarker test");
      stage.show();
      protected Node makeEntry(String io, String text, double height, boolean open) {
      BorderPane pane2 = new BorderPane();
      pane2.setSnapToPixel(true);
      Label label2 = new Label(io);
      label2.getStyleClass().add("io-label");
      pane2.setLeft(label2);
      TextArea area2 = new TextArea(text);
      area2.getStyleClass().add("io-content");
      area2.setPrefHeight(height);
      pane2.setCenter(area2);
      GroupingMarker marker2 = new GroupingMarker();
      marker2.setOpen(open);
      pane2.setRight(marker2);
      return pane2;

    The test interfaces are already defined for you - the 3rd party session bean remote/local interfaces.
    It is pretty trivial to create implementations of those interfaces to return the test data from your XML files.
    There are a number of ways to handle the switching, if you have used the service locator pattern, then I would personally slot the logic in to the service locator, to either look up the 3rd party bean or return a POJO test implementation of the interface according to configuration.
    Without the service locator, you are forced to do a little more work, you will have to implement your own test session beans to the same interfaces as the 3rd party session beans.
    You can then either deploy them instead of the 3rd party beans or you can deploy both the test and the 3rd party beans under different JNDI names,and use ejb-ref tags and allow you to switch between test and real versions by changing the ejb-link value.
    Hope this helps.
    Bob B.

  • Thumbnail image layout help

    Hi
    I need to assemble a page of thumbnail images sized and evenly spaced for import into a product catalog created in ID CS5.  I use Adobe Creative Ste CS5.  Would PS CS5 work best with this type of layout or should I use....?
    Thanks..

    I think there may be Scripts available for the task in Indesign itself.
    Edit: You could try »ImageCatalog.jsx« from Indesign’s JavaScript-Samples.

  • Button and JavaScript link (help)

    I would like to know how to make a link to open in to a new
    window and..., I have been using javascript links to open images in
    small windows; <a href="images/samples/SampleSC.gif"
    onclick="return popitup('images/samples/SampleSC.gif')"> These
    links work in the html, and I would like to add this link to a
    button(or something) in flash 8
    The following is in my html to make the links work, but if I
    just get the above link somehow imbedded in to a button I think it
    will work from there
    <script language="javascript" type="text/javascript">
    function popitup(url) {
    newwindow=window.open(url,'name','height=490,width=720,scrollbars=yes');
    if (window.focus) {newwindow.focus()}
    return false;
    </script>
    I am so new to this. I have tried adding the following to the
    action script but it did not work;
    homepage_btn.onRelease = function () {
    getURL("
    http://www.macromedia.com",
    "_blank");
    I found the following ways to do this
    http://www.abcpchelp.com/temp/URL2.htm
    but either I did not know how to use them or they did not work
    The flash file I am working on is here:
    http://www.msresume.com.au/Default1Draft.aspx
    (the links will be in the sample thumbnails)
    Thank you, your time is appreciated!

    michael- wrote:
    > I would like to know how to make a link to open in to a
    new window and..., I
    > have been using javascript links to open images in small
    windows; <a
    > href="images/samples/SampleSC.gif" onclick="return
    > popitup('images/samples/SampleSC.gif')"> These links
    work in the html, and I
    > would like to add this link to a button(or something) in
    flash 8
    >
    > The following is in my html to make the links work, but
    if I just get the
    > above link somehow imbedded in to a button I think it
    will work from there
    >
    > <script language="javascript"
    type="text/javascript">
    > function popitup(url) {
    >
    newwindow=window.open(url,'name','height=490,width=720,scrollbars=yes');
    > if (window.focus) {newwindow.focus()}
    > return false;
    > }
    > </script>
    >
    All you need is one simple line in flash an none of the HTML
    stuff.
    getURL("javascript:n_name=window.open('page.htm','thewin','width=720,height=490,scrollbars =yes');void(0);");
    Take note tho, this might not work tested locally. You need
    to upload to server and
    test it online.
    Now, if you have multiple windows, change the "thewin" to
    something like "thewin1" "thewin2" etc...
    If you keep requesting window with same name, you end up
    loading other content into it.
    New name assure new object and new window made.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Animated .gif file correction and image ready help.

    Hi,
    I have an animated gif created in an early verison of Image Ready & Photoshop. I need to make some changes. I have two problems.
    A: Can't figure how to do it in the current version of Photoshop.
    B: Open in the old image ready version, can't find the Layers pallet. I turn it on and off and it doesn't appear.
    Trying to recreate a rotating .gif file any pointers or how to's?
    Thanks,
    John

    You didn't say which version of ImageReady, but cs5 should open
    most animated gifs from ImageReady and show the frames in the
    Window>Animation panel. Some may not work right depending on
    how old the version of ImageReady was that created them.
    (you may have to resave the animation in ImageReady as a psd file)
    In ImageReady try Window>Workspace>Reset Palette Locations and the layers
    palette should be visible.
    In ImageReady, in the actions palette, are several actions to rotate (spin) images.
    MTSTUNER

  • Cc cleaner has altered page layout, missing buttons, pictures not shown with txt but below, certain pages also not now intertactive..cannot scroll and over buttons and click to enable choice. help to

    Hi, Please help.
    I'm currently using Firefox v4.0.1, which I like and am happy with, as it allows me to use my Kaspersky link filter and virtual keyboard.
    Anyway, I recently decided to clean my registry and history using cc cleaner.. I did not back up as I had never experienced problems before. Once cc cleaner had finished and I opened Firefox I noticed that my two home page layouts had altered. The Supanet home page is now all disjointed, buttons are scattered to the left and right of the page, where once they where side by side, all of the images and text seem to be beneath each other and instead of one page i now have to scroll down and down to the full page, all text and image seem to be left margin.
    On the google home page certain buttons are there but the text within has disappeared, although the buttons work, a search for Mail online through google..(or Supanet home page) is not a problem, however, once we arrive at the site it pretty much displays the info in the same layout/manner as the Supanet hompage. Further more certain buttons on other sites are no longer interactive..eg, Asda voucher print out. i do not wish to update to other version of firefox as i would lose Kaspersky buttons..so please help..I've tried everything..even re installing version 4.0.1..Help, I now it must be simple..but I'm not a techie!! Many thanks!

    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.org/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    Please update Firefox to the latest version via "Help > About Firefox" or "Help > Check for Updates"<br />
    The Firefox Firefox 4.0.1 version that you currently run is no longer supported with security updates.
    You can find the latest Firefox release in all languages and for all Operating Systems here:
    *Firefox 9.0.x: http://www.mozilla.org/en-US/firefox/all.html

  • Linking audio to an image or a button for fixed layout export

    I can't seem to correctly link an audio file either to a button (another image) or selecting a custom poster frame.  No matter what settings I select the output is always the same as shown below:
    The audio are the two grey boxes...

    If you place a movie ... what's under the "Watch" text above ... there's no need to place the audio file for it separately. You just place the movie. The ereader puts its own controls on top of the move to play or pause it.
    In addition, you can add a button that will play the movie. The user can tap the button. To do that, make or place the button artwork in your layout file, then convert it to a button in the Buttons  & Forms panel. Then with the button selected, add an Action to the button: choose Play Movie drop down list of actions, and choose the filename for the movie from the list in the same panel.
    All the same is true for Audio files.  Users can tap the audio file to play/pause it, using the ereader's built in controls for audio files, and you can also make a button to play the audio, same as described for video.
    A button can only play a movie or audio that's on the same spread as the button itself.
    Does any of this info help? Are you trying to do something different than what I described?
    AM

  • Terrance Devlin answered a question about iPhoto (4-2012) re:copying iPhoto Library to an ExHD, and losing all the albums. I can't locate the "Choose Library" when I open iPhoto with the opt button. Can anyone help?

    I tried to move my images (over 25,000) to an External Hard drive to open up some memory, hoping to make my computer run faster. It took three hours to move the images and I see them all in the mac's menus. However when I try to open them with iPhoto now, none appeared. and when I tried to import them back to the main HD they come in to iPhoto just fine, but not with the albums nor any of the massive organization i'd created in the original. this represents years of images, and I can't imagine that I'd have to recopy them into folders/albums again.
    Terrance Devlin answered a similar question back in April of last year. He said to make sure the ExHD is formatted to MAC OS Extended (Journaled) and to move the library to the ExHD and then open iPhoto with the option button and select "Choose Library" from the resulting menu.
    Command "I" tells me that the new drive is formatted correctly. I can't locate the "Choose Library" when I open iPhoto with the opt button.
    First, I wondered if the application needs to be on the same drive as the Library. I sure would like to know if I can find out how to restore all the folders I had them in. Terrance's advice helped the user that had asked the question.
    Here's the url for that archived discussion: https://discussions.apple.com/thread/3849933?start=0&tstart=0
    Can anyone help? I'm using iPhoto 5. My MAC is an OS X version 10.4.11.
    thanks, brokenlom

    Here are Apple's instructions:
    If you are using iPhoto ’06 or earlier, you will need to follow these steps to tell iPhoto where the Library is now located:
    Hold down the Option key on the keyboard and open iPhoto. Keep the Option key held down until you are prompted to create or choose an iPhoto Library.
    Click Choose Library.
    Locate and select the iPhoto Library in its new location.
    (from http://support.apple.com/kb/HT1229 )
    Below (in the link below) is what you should see when holding down the option key and opening iPhoto. Keep holding down the option key until this dialogue comes up. You want to select the Choose Library button.
    http://appleclinic.wordpress.com/2008/04/06/change-default-dir-iphoto/

  • Next and previous buttons, Cluster, Image Ring problem

    Hello, I'm a pretty new user, and I need help with this excercise:
    "Create an application in LabVIEW to manage the information of different cars from the movie Fast and Furious. The goal is to show in a Graphic User Interface the information of the cars included in the following table:
    ID
    Name
    Model
    Brand
    Price
    1
    Eclipse
    2000
    Mitsubishi
    $ 25,550.89
    2 RX-7 2010 Mazda $ 32,700.50
    3
    Supra
    2000
    Toyota
    $ 39,450.30
    4 Charger 2012 Dodge $ 45,290.99
    5
    Civic
    2013
    Honda
    $ 27,600.40
    6 S2000 2006 Honda $ 29,500.99
    7
    Jetta
    2013
    Volkswagen
    $ 21,740.90
    The type of data that should be shown in each field is presented in the following list:
      ID Integer
      Name String
      Model Integer
      Brand String
      Price  Float
    Write a program that shows the information of every car included in the table. file Fast_Furious.vi as a starting point to write your code.
    Specifications
    The following image shows an example of the User Interface of the program:
    You can download the
    The user should see the information of 7 different cars using the buttons Next and Previous. Each time the user press these buttons the information of the previous or next car should be presented on the interface. There are two special cases in the selection of information:
      If the information of the first car (Eclipse) is shown and the user makes clic over the button Previous. The information of the last car (Jetta) must be shown.
      If the information of the last car (Jetta) is shown and the user makes clic over the button Next. The information of the first car (Eclipse) must be shown.
    You must use the array of clusters to obtain and manage the information of the cars, and the ring to show the photos of the cars.
    Finally, include a close button to stop the execution of the program.
    Extra: Add sound effects to your program. Each time the user makes click over the Previous or Next
    button a beep sound should be produced."
    I especially need help with the next and previous buttons and the sounds. I alredy have all the information, and the app is supposed to look like the picture attached.
    Thanks,
    Attachments:
    Test.png ‏769 KB

    Actually, Munna I think I smell a homework project (2nd year of college, maybe?)
    So Miguel, what have you got done so far? What does your code look look like?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Is the BSP extension better than this solution(Text and Image in Button)?

    Hi guys,
    I have a  concept question to decide whether a BSP extension is needed.
    I want to put text and image in htmlb button, and used the solution like below:
    <%
      data image type ref to cl_htmlb_image.
      data: image_string type string.
      create object image.
      image->id = 'back'.
      image->src = cl_bsp_mimes=>sap_icon( id = '@9S@' ).
      image->tooltip = 'Go back'.
      clear image_string.
      image_string = image->IF_BSP_BEE~RENDER_TO_STRING( page_context ).
            %>
            <xhtmlb:toolbarButton id      = "back"
                                  onClick = "back"
                                  text    = "<%= image_string %>" />
    But this solution is not desired by customer, since they don't think it looks nice. So is it possible to create my own BSP extension to get a nicer element?
    Thanks for any hint.
    Regards,
    Liying

    Hi,
    By a nicer element...did you mean to display a better image...or a nicer image ????
    if yes, the you can upload any image you need and then use it here...
    Tell me if you need more information...!!
    Hope this helps.
    <b><i>Do reward each useful answer..!</i></b>
    Thanks,
    Tatvagna.

Maybe you are looking for