Button colours

Hi - i have a problem i hope someone can help me with. I've been using photoshop to make overlays for buttons but when i import the overlay into dvdsp the colour of the buttons is very faint - or i cant see it at all. I've been saving the photoshop files as a tiff file and stipulating no compression. what am i doing wrong?
help! thanks

Astro99:
I feel your color sliders in the button properties (Inspector window) are positioned too far left. That slider gives you the intensity/transparency of the color of the overlay effect.
Your overlay must be just black and white (in case you use basic color mode) and I PSD files are fine.
Check this Menu Creating tutorial from Drew13's site (www,dvdstepbystep.com) and probably in topic #7 you'll get the idea of color sliders.
Hope it helps and . . . thanks Drew13 !
  Alberto

Similar Messages

  • File path control - browse button colour/color

    I can't change the colour of the browse button on a file path control. I'm using LV 8.5, but I think I have the same problem on 7.1
    Is the only way to change the colour to customise the control? Every other part of it seems to take colours from the tools palette.
    Thanks for any pearls of wisdom.
    Jon.

    I am able to change the path browse button color in 8.51 are you trying to change the button color or the color of the folder on the button.  To change the buttoin color use the paint tool and make sure you hit the space bar so you are painting the left color (Background color I cant remember which is which).  This probably doesnt work on system buttons.
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Link & Button Colour in iWeb 1.1.2

    Hello!
    I've made a site with iWeb 1.1.2 (MacOS X Tiger - 10.4.10).
    The site (www.traditionelles-Yoga-Essen.de) looks great *but all links & navigation-buttons are grey*! The colour I've chosen (as text-colour) is ignored unless I deactivate the links.
    Is there any general setting somewhere where I can change the colour of the links (for the whole site)?
    Thanks for any advice!
    Regards,
    Vlad

    Hi, Mark!
    Thanks for your quick answer!
    Not in iWeb 1.1.2.
    iWeb version 2.0 (iWeb08/iLife08) allows for changing hyperlink colors within the application.
    That's a strong argument for iLife08.
    For 1.1.2, you will have to use a third party application and process the Domain.sites file.
    I like HyperLinkShader.
    I've downloaded the HyperLinkShader and changed with it all the .css-files in the folder where I had published the site.
    Unfortunately it has only partially solved my problem
    a) On the site http://www.traditionelles-yoga-essen.de/DATY%20e.V.%20-%20Essen/Links.html the hyperlinks remain grey.
    b) The buttons on the top (Willkommen!, Kurs, ... , impressum) are also still grey.
    Any advices?
    Do I have to change some other files with HyperLinkShader too?
    Thanks again!
    Regards,
    Vlad

  • Button Colour issues...

    Hi people.
    I'm having some colour issues with my buttons. Not the regular buttons, but the buttons in the picture windows.
    http://img.photobucket.com/albums/v520/DanThe440Man/Random%20Stuff/RolloverColou rs.jpg
    As you'll see in the 1st picture, 'Back To Index' goes Orange when you hover the mouse over it. When you take the mouse off it, it goes grey. On the 2nd picture, in the bottom right, the 'Next' button behaves exactly the same. This is good, because they fit the colour scheme of the website. However, out of the 9 albums I have on my website, this is the only album that does this. All the other albums buttons are white!
    How do I change the colours? I've obviously done it before, but I can't figure out how. Any help appreciated!
    Dan

    Anybody have any ideas? My sites nearly finished....I'm too fussy to let it go!
    Dan

  • Buttons' Colour

    Hi,
    Pls tell me how to change the colour of the buttons!!! I tried to right click on the button and went to properties and changed colour but it did not changed, don't know if it's possible.
    Thank you.
    Quang.

    I found this is the Help under buttons:
    "Note: On Microsoft Windows, button color attributes are controlled exclusively by the Color facility in the Control Panel. To define button color attributes (button face, button shadow, button text color, button or highlight), you must use the Color facility."
    -Jennifer

  • Button colour

    I've had a look around and can't see a way to change the colour of a button (except for 'emphasized' and by the use of a theme). Can anyone tell me if there is a way of doing this ?
    thanks.

    Hi Malcom,
    no there is no other way.
    The only thing you might try is using an image as icon that has the correct size an color.
    But that is nothig I would suggest
    Best regards, Matthias

  • How to change the button colour automatically????

    i want to change the button color automatically ,if there is no data in next page ....plzz help

    Hi,
    create a binding for the data collection displayed on next page and do
    styleClass=#{bindings.iterator.estimatedRowCount<=0?'redClass' : ''}
    Then define a custom skin (see how to skin an application in the web developer guide) and use
    .redClass .af|commandButton{background-color:red}
    in this skin. Now when the page renders or when you PPR the button, the color should apply or not. Btw, the same EL on the disabled property or the rendered property would do the same trick (probably better than just a color change)
    Frank

  • Changing the colour of Button

    Hello Members.
    How can i change the fore or back ground colour of the Button
    i try to change it from the property, but it did not affect on it,,,
    i am using forms 6i

    hi
    u can not change button colour in Forms6i if u set iconic = Yes then u change button color if u wanna show text on button & also change button colour both are possible only forms 9i & 10g not possible in forms6i
    Rizwan

  • Programming button for single and double click

    I know how to programme a button to play a certain movie segment. However, in my current project I need to be able to programme a button in the menu so that
    1. on rollover - nothing
    2. on single mouse click - button colour changes + a parapraph of text appears on the menu screen in a predefined space
    3. on double click - a movie clip plays
    It might be a simple qiestion but I would greatly appreciate it if you could point me in the right direction.
    Thanks.

    Nick76 wrote:
    I know how to programme a button to play a certain movie segment. However, in my current project I need to be able to programme a button in the menu so that
    1. on rollover - nothing
    Do not change the highligh and it will look like nothing is happening (make sure auto activate is not beign used)
    2. on single mouse click - button colour changes + a parapraph of text appears on the menu screen in a predefined space
    3. on double click - a movie clip plays
    It might be a simple qiestion but I would greatly appreciate it if you could point me in the right direction.
    Thanks.
    Single and Double clicks cannot be done like that. (Some players using layered menus do require a click to get things seen but not really what you are speaking about.)
    Flash or Director may be better for this?

  • Can LabVIEW access Windows colour settings?

    Using LabVIEW 5.0.1, can I get hold of, say, the 3D button colour so that I can change my front panel settings accordingly?

    > Using LabVIEW 5.0.1, can I get hold of, say, the 3D button colour so
    > that I can change my front panel settings accordingly?
    If you call the system functions that publish it. I believe the
    function is something like GetThemeColor and you pass in a selector
    telling them which color you want.
    Or, if you upgrade to LV6.1, we have symbolic colors built in. You can
    color the controls interactively to be the system control color and they
    will automatically follow the system colors. There is also a VI that
    will give you the RGB of the system colors that LV exposes.
    Greg McKaskle

  • DVD Studio Pro 4.1 color/menu/button issues

    I just got the latest version of Final Cut Studio with DVD Studio Pro 4.1 and am having issues with menus and buttons. For some reason no matter what I do to the color settings my menus are always gray and the buttons never reflect the color changes I make. Am I missing something?

    Hi - welcome to the discussions!
    Could you be a little more specific here... for example, when you say the menus are always gray, do you mean when you use the menu editor or after you have built a disc? Button colours are set in several ways... what is the workflow that you are using?

  • Save color to buttons

    Hi Every1 
    got this problem with when i open the program and add new colors ... it starts all ower in the Row ( Queue )
    it opens op with the colors ... like this .picture... but gets erased when i add new 
    Public Class Form1
    Dim Q1 As New Queue(Of Integer)
    Dim Q2 As New Queue(Of Integer)
    Dim Q3 As New Queue(Of Integer)
    Dim Buttons1 As New List(Of Button)
    Dim Buttons2 As New List(Of Button)
    Dim Buttons3 As New List(Of Button)
    Dim Buttons As New List(Of List(Of Button))
    Dim Labels1 As New List(Of Label)
    Dim Labels2 As New List(Of Label)
    Dim Labels3 As New List(Of Label)
    Dim Labels As New List(Of List(Of Label))
    Dim LabelsT As New List(Of Label)
    Dim Queues As New List(Of Queue(Of Integer))
    Dim Priority As Integer = 0
    #Region "setup"
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Buttons1.Add(Button14)
    Buttons1.Add(Button13)
    Buttons1.Add(Button12)
    Buttons1.Add(Button11)
    Buttons1.Add(Button10)
    Labels1.Add(Label10)
    Labels1.Add(Label11)
    Labels1.Add(Label12)
    Buttons2.Add(Button24)
    Buttons2.Add(Button23)
    Buttons2.Add(Button22)
    Buttons2.Add(Button21)
    Buttons2.Add(Button20)
    Labels2.Add(Label20)
    Labels2.Add(Label21)
    Labels2.Add(Label22)
    Buttons3.Add(Button34)
    Buttons3.Add(Button33)
    Buttons3.Add(Button32)
    Buttons3.Add(Button31)
    Buttons3.Add(Button30)
    Labels3.Add(Label30)
    Labels3.Add(Label31)
    Labels3.Add(Label32)
    Buttons.Add(Buttons1)
    Buttons.Add(Buttons2)
    Buttons.Add(Buttons3)
    Labels.Add(Labels1)
    Labels.Add(Labels2)
    Labels.Add(Labels3)
    LabelsT.Add(LabelT1)
    LabelsT.Add(LabelT2)
    LabelsT.Add(LabelT3)
    Queues.Add(Q1)
    Queues.Add(Q2)
    Queues.Add(Q3)
    btnadd1.Tag = 0
    Btnadd2.Tag = 1
    Btnadd3.Tag = 2
    Btnremove1.Tag = 0
    btnremove2.Tag = 1
    BtnRemove3.Tag = 2
    My.Settings.Save()
    End Sub
    #End Region
    Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _
    btnadd1.Click, _
    Btnadd2.Click,
    Btnadd3.Click
    Dim Index As Integer = CType(sender, Button).Tag
    If Queues(Index).Count < 5 Then
    Queues(Index).Enqueue(Priority)
    showqueue()
    Else
    MsgBox("Queue " & (Index + 1).ToString & " is full.")
    End If
    My.Settings.Save()
    End Sub
    Private Sub btnRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _
    Btnremove1.Click, _
    btnremove2.Click,
    BtnRemove3.Click
    Dim Index As Integer = CType(sender, Button).Tag
    If Queues(Index).Count > 0 Then
    Dim I As Integer = Queues(Index).Dequeue()
    MsgBox("Item " & I.ToString & " was removed.")
    showqueue()
    Else
    MsgBox("Queue " & (Index + 1).ToString & " is empty.")
    End If
    My.Settings.Save()
    End Sub
    Private Sub showqueue()
    For k As Integer = 0 To Queues.Count - 1
    Dim B As Integer = 0
    For B = 0 To Buttons(k).Count - 1
    Buttons(k)(B).BackColor = Color.White
    Next B
    Dim Colors() As Color = {Color.Green, Color.Yellow, Color.Red}
    B = 0
    For Each I As Integer In Queues(k)
    Buttons(k)(B).BackColor = Colors(I)
    B += 1
    Next
    Dim ItemCount(2) As Integer '(8)
    For Each I As Integer In Queues(k)
    ItemCount(I) += 1
    Next
    For J As Integer = 0 To 2 '8
    Labels(k)(J).Text = ItemCount(J)
    Next J
    Next k
    Dim TotalCount(3) As Integer '(14)
    For K = 0 To 1 '0 to 14
    For Each I As Integer In Queues(K)
    TotalCount(I) += 1
    Next
    Next K
    For J As Integer = 0 To 2 '(8)
    LabelsT(J).Text = TotalCount(J)
    Next J
    My.Settings.Save()
    End Sub
    Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton1.CheckedChanged
    Priority = 0
    My.Settings.Save()
    End Sub
    Private Sub RadioButton2_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton2.CheckedChanged
    Priority = 1
    My.Settings.Save()
    End Sub
    Private Sub RadioButton3_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton3.CheckedChanged
    Priority = 2
    My.Settings.Save()
    End Sub
    End Class

    ya i tryed to put in btn1color in my settings and probertybindings 
    to make it save it .... 
    erased it again tho -.... 
    The button colours are not your data.  They are for display only.  The queues are your data.  It is the queues that need to be saved to user settings, and it is the queues that need to be restored from user settings.
    The settings you create are saved automatically on shutdown and restored automatically at startup.  So you need to re-create the queues from the user settings in the form load event, and you need to update the user settings from the queues in the form
    closing event.
    Be sure to execute a ShowQueues after you initialise the queues from the user settings variables at form load.  The queues are not getting cleared - they are simply being initialised automatically at startup.  Your initialisation from user settings
    variables will override the default initialisation.
    You could use the specialised string collection class for the user settings variables, one element of the collection for each queue, in which case each queue needs to be converted to a string. Or you could use one settings variable for each
    queue, either as a single string, or as a specialised string collection for each queue, where the queue
    elements are converted to strings in the specialised string collection. The code to convert a queue to a string (ToStringData) should be a method of the queue class. The code to convert the string back into a queue should be a constructor
    for the class.  There is an example (not with queues, but for the ToStringData method and the constructor) here:
    https://vbdotnetblog.wordpress.com/examples/data-entry-save-and-restore/

  • Customising the accordion component colours

    Hi,
    Does anybody know of a way to customise the colours in the
    accordion component. I need to change the button colour, and the
    background colour.
    Thanks,
    Dylan

    You can check that in Flash Help Components > Components
    Language Reference > Accordion component (Flash Professional
    only) > Customizing the Accordion component (Flash Professional
    only) and also Components > Using Components > Customizing
    Components. :D
    It explains everything.
    Here's a sample code copied from Flash Help:
    var section1 = accordion.createChild(mx.core.View,
    "section1", {label: "First Section"});
    var section2 = accordion.createChild(mx.core.View,
    "section2", {label: "Second Section"});
    var input1 = section1.createChild(mx.controls.TextInput,
    "input1");
    var button1 = section1.createChild(mx.controls.Button,
    "button1");
    input1.text = "Text Input";
    button1.label = "Button";
    button1.move(0, input1.height + 10);
    var input2 = section2.createChild(mx.controls.TextInput,
    "input2");
    var button2 = section2.createChild(mx.controls.Button,
    "button2");
    input2.text = "Text Input";
    button2.label = "Button";
    button2.move(0, input2.height + 10);
    accordion.setStyle("fontStyle", "italic");
    I think the buttons inside the components can be changed
    using global styles.
    Use this code:
    _global.style.setStyle("color", 0xCC6699);
    _global.style.setStyle("themeColor", 0xFF00FF)
    _global.style.setStyle("fontSize",16);
    _global.style.setStyle("fontFamily" , "_sans");
    _global.style.setStyle("fontWeight" , "bold");
    Change the colors :D they are in pink lol
    Regards.

  • Java Swing Applets in Mac Os

    hi there,
    I am a student at the University of Portsmouth in the UK in my third and last year. I am doing my dissertation as a game using applets for a client at the university of which there consits four prototypes. One of the main specification points is that it should work on an apple mac, therefore I am using Swing applets. however with my first prototype it works fine on windows in windows Explorer, firefox and Netscape but i cant get it to work on Mac os 9 or X even with the latest version of java installed on the machine. Can anyone tell me why this is so, I would be very gratefull.
    As I cant post the whole applet here as a file download I will just put some code snippets of the main program classes.
    Applet ------------------------------
    * Class JugglingBalls - A sub class of JApplet that combines the GameInterface and GamePanel into a single application
    * @author (Liam Morren)
    * @version (v1.0)
    import java.awt.*;
    import javax.swing.*;
    public class JugglingBalls extends JApplet
        // instance variables -----------------------------------------------------------------------------------------------------------------------------------
        private GamePanel gamePanel; // The game panel including game and render loop
        private GameInterface gameInterface; // The swing interface to modify the game scene components
        // JApplet methods -------------------------------------------------------------------------------------------------------------------------------------
         * Called by the browser or applet viewer to inform this JApplet that it
         * has been loaded into the system. It is always called before the first
         * time that the start method is called.
        public void init()
            gamePanel = new GamePanel();
            gameInterface = new GameInterface(gamePanel.getGameScene());
            Container content = getContentPane(); // The container for components in the applet
            setLayout(new BoxLayout(content, BoxLayout.X_AXIS));
            content.add(gamePanel);
            content.add(gameInterface);
         * Returns information about this applet.
         * An applet should override this method to return a String containing
         * information about the author, version, and copyright of the JApplet.
         * @return a String representation of information about this JApplet
        public String getAppletInfo()
            // provide information about the applet
            return "Title: JugglingBalls  \nAuthor: Liam Morren  \nA simple application showing balls juggling in the air.";
    Interface -------------------------------------
    * Class GameInterface - Lets you manipulate the game components using swing components
    * @author (Liam Morren)
    * @version (v1.0)
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    public class GameInterface extends JPanel
        // instance variables -------------------------------------------------------------------------------------------------------------------------------------
        private GameScene gameScene; // Reference to the game scene
        private JTabbedPane gameTabs; // Tabs for Game, Balls and Background
        // Scene panel
        JButton pause, start, reset; // Buttons
        // Balls panel
        JRadioButton redBall, greenBall, blueBall, archBall, figureOfEightBall; // Radio buttons
        JCheckBox canSplit; // Check box
        JComboBox setAllPaths, setAllTypes, newBall, selectBall; // Drop down boxes
        JButton deleteBall; // Button
        Ball currentBall; // Current ball being changed
        // Background panel
        JRadioButton black, white, red, green, blue, hide, show, stop, move, arch, figureOfEight; // Radio buttons
        // Constructors -------------------------------------------------------------------------------------------------------------------------------------------
         * Constructor for objects of class GameInterface
        public GameInterface(GameScene gameSceneIn)
            gameScene = gameSceneIn; // Reference to the game scene
            gameTabs = new JTabbedPane(); // JTabbedPane to hold different toolbars
            gameTabs.setPreferredSize(new Dimension(200, 494)); // Set the preffered size for the tabbed pane
            currentBall = gameScene.getBall(0); // First ball
            // Add the panels to the tabbed pane
            gameTabs.addTab("Scene", makeScenePanel());
            gameTabs.addTab("Balls", makeBallsPanel());
            gameTabs.addTab("Background", makeBackgroundPanel());
            add(gameTabs); // Add the tab to the game interface panel
            setPreferredSize(new Dimension(200, 200));
        // Other methods ------------------------------------------------------------------------------------------------------------------------------------------
         * makeScenePanel
         * @return JPanel - The scene panel with buttons added
        private JPanel makeScenePanel()
            // Make scene panel
            JPanel scenePanel = new JPanel();
            scenePanel.setLayout(new BoxLayout(scenePanel, BoxLayout.Y_AXIS)); // Change layout
            pause = new JButton("Pause"); // Make buttons
            start = new JButton("Start");
            reset = new JButton("Reset");
            // Add button actions
            pause.addActionListener(new ActionListener() // Add button listener to pause button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    gameScene.setPaused(true); // Pause game
            start.addActionListener(new ActionListener() // Add button listener to start button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    gameScene.setPaused(false); // Unpause game
            reset.addActionListener(new ActionListener() // Add button listener to reset button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    gameScene.reset(); // Reset game
                    updateSelectBallComboBox();
                    changeSelectedBall(0);
            scenePanel.add(pause); // Add buttons to scene panel
            scenePanel.add(start);
            scenePanel.add(reset);
            return scenePanel;
         * makeBackgroundPanel
         * @return JPanel - The background panel with buttons added
        private JPanel makeBackgroundPanel()
            // Make scene panel
            JPanel backgroundPanel = new JPanel();
            backgroundPanel.setLayout(new GridLayout(5, 1, 2, 2)); // Change layout
            // Make buttons
            // background colour buttons
            JPanel backgroundcolour = new JPanel(); // Change backgroundcolour panel
            backgroundcolour.setBorder(BorderFactory.createLineBorder(Color.black));
            black = new JRadioButton("Black"); // Radio buttons to change colour
            white = new JRadioButton("white");
            black.setSelected(true); // Set black as already selected
            ButtonGroup backColourGroup = new ButtonGroup(); // Group buttons so only one can be pressed at a time
            backColourGroup.add(black); // Add buttons to group
            backColourGroup.add(white);
            backgroundcolour.setLayout(new GridLayout(2, 2, 0, 0)); // Change layout
            backgroundcolour.add(new JLabel("Background colour")); // Add label
            backgroundcolour.add(black); // Add buttons to colours panel
            backgroundcolour.add(white);
            // Add radio button actions
            black.addActionListener(new ActionListener() // Add button listener to black button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    gameScene.setBackgroundColour(false); // Background colour = black
            white.addActionListener(new ActionListener() // Add button listener to white button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    gameScene.setBackgroundColour(true); // Background colour = white
            // colour buttons
            JPanel colours = new JPanel(); // Change colours panel
            colours.setBorder(BorderFactory.createLineBorder(Color.black));
            red = new JRadioButton("Red"); // Radio buttons to change colour
            green = new JRadioButton("Green");
            green.setSelected(true); // Set green as already selected
            blue = new JRadioButton("Blue");
            ButtonGroup colourGroup = new ButtonGroup(); // Group buttons so only one can be pressed at a time
            colourGroup.add(red); // Add buttons to group
            colourGroup.add(green);
            colourGroup.add(blue);
            colours.setLayout(new GridLayout(2, 2, 0, 0)); // Change layout
            colours.add(new JLabel("Change colours")); // Add label
            colours.add(red); // Add buttons to colours panel
            colours.add(green);
            colours.add(blue);
            // Add radio button actions
            red.addActionListener(new ActionListener() // Add button listener to red button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    if (gameScene.getBackgroundEffect().getColour() != 0)
                        gameScene.getBackgroundEffect().setColour(0); // Background effect colour = red
            green.addActionListener(new ActionListener() // Add button listener to green button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    if (gameScene.getBackgroundEffect().getColour() != 1)
                        gameScene.getBackgroundEffect().setColour(1); // Background effect colour = green
            blue.addActionListener(new ActionListener() // Add button listener to blue button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    if (gameScene.getBackgroundEffect().getColour() != 2)
                        gameScene.getBackgroundEffect().setColour(2); // Background effect colour = blue
            // hide buttons
            JPanel hideShow = new JPanel(); // Change hideShow panel
            hideShow.setBorder(BorderFactory.createLineBorder(Color.black));
            hide = new JRadioButton("Hide"); // Radio buttons to hide show
            show = new JRadioButton("Show");
            show.setSelected(true); // Set show as already selected
            ButtonGroup hideShowGroup = new ButtonGroup(); // Group buttons so only one can be pressed at a time
            hideShowGroup.add(hide); // Add buttons to group
            hideShowGroup.add(show);
            hideShow.setLayout(new GridLayout(2, 2, 0, 0)); // Change layout
            hideShow.add(new JLabel("Hide / Show")); // Add label
            hideShow.add(hide); // Add buttons to hideShow panel
            hideShow.add(show);
            // Add radio button actions
            hide.addActionListener(new ActionListener() // Add button listener to hide button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        gameScene.getBackgroundEffect().hide(); // Hide
            show.addActionListener(new ActionListener() // Add button listener to show button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        gameScene.getBackgroundEffect().unHide(); // Unhide
            // stopMove buttons
            JPanel stopMove = new JPanel(); // Change StopMove panel
            stopMove.setBorder(BorderFactory.createLineBorder(Color.black));
            stop = new JRadioButton("Stop"); // Radio buttons to stop move
            move = new JRadioButton("Move");
            stop.setSelected(true); // Set stop as already selected
            ButtonGroup stopMoveGroup = new ButtonGroup(); // Group buttons so only one can be pressed at a time
            stopMoveGroup.add(stop); // Add buttons to group
            stopMoveGroup.add(move);
            stopMove.setLayout(new GridLayout(2, 2, 0, 0)); // Change layout
            stopMove.add(new JLabel("Stop / Move")); // Add label
            stopMove.add(stop); // Add buttons to stopMove panel
            stopMove.add(move);
            // Add radio button actions
            stop.addActionListener(new ActionListener() // Add button listener to stop button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        gameScene.getBackgroundEffect().setMove(false); // stop
            move.addActionListener(new ActionListener() // Add button listener to move button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        gameScene.getBackgroundEffect().setMove(true); // move
            // changePath buttons
            JPanel changePath = new JPanel(); // Change changePath panel
            changePath.setBorder(BorderFactory.createLineBorder(Color.black));
            arch = new JRadioButton("Arch"); // Radio buttons to change path
            figureOfEight = new JRadioButton("Figure of eight");
            arch.setSelected(true); // Set stop as already selected
            ButtonGroup changePathGroup = new ButtonGroup(); // Group buttons so only one can be pressed at a time
            changePathGroup.add(arch); // Add buttons to group
            changePathGroup.add(figureOfEight);
            changePath.setLayout(new GridLayout(2, 2, 0, 0)); // Change layout
            changePath.add(new JLabel("Change Path")); // Add label
            changePath.add(arch); // Add buttons to changePath panel
            changePath.add(figureOfEight);
            // Add radio button actions
            arch.addActionListener(new ActionListener() // Add button listener to arch button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        gameScene.getBackgroundEffect().setPath(new Arch()); // Arch
            figureOfEight.addActionListener(new ActionListener() // Add button listener to figureOfEight button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        gameScene.getBackgroundEffect().setPath(new FigureOfEight()); // Figure of eight
            // Add components to background panel
            backgroundPanel.add(backgroundcolour);
            backgroundPanel.add(colours);
            backgroundPanel.add(hideShow);
            backgroundPanel.add(stopMove);
            backgroundPanel.add(changePath);
            return backgroundPanel;
         * makeBallsPanel
         * @return JPanel - The ball panel with buttons added
        private JPanel makeBallsPanel()
            // Make balls panel
            JPanel ballsPanel = new JPanel();
            ballsPanel.setLayout(new BoxLayout(ballsPanel, BoxLayout.Y_AXIS)); // Change layout
            // Make buttons
            // set all drop down boxes
            JPanel setAll = new JPanel(); // Set all panel
            setAll.setBorder(BorderFactory.createLineBorder(Color.black));
            String[] setAllPathsChoices = {"Arch", "Figure of eight"}; // Selections for set all paths
            setAllPaths = new JComboBox(setAllPathsChoices); // Add selections to combo box
            String[] setAllTypesChoices = {"Primary ball", "Pastel ball", "3D ball", "Image ball"}; // Selections for set all types
            setAllTypes = new JComboBox(setAllTypesChoices); // Add selections to combo box
            setAll.add(new JLabel("Set all paths")); // Add combo boxes to set all panel
            setAll.add(setAllPaths);
            setAll.add(new JLabel("Set all types"));
            setAll.add(setAllTypes);
            // Add combo box actions
            setAllPaths.addActionListener(new ActionListener() // Add selection listener to set all paths combo box
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    if (setAllPaths.getSelectedItem() == "Arch")
                        gameScene.setAllPathsArch();
                    else
                        gameScene.setAllPathsFigureOfEight();
            setAllTypes.addActionListener(new ActionListener() // Add selection listener to set all types combo box
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    if (setAllTypes.getSelectedItem() == "Primary ball")
                        gameScene.setAllTypesPrimaryBall();
                    else if (setAllTypes.getSelectedItem() == "Pastel ball")
                        gameScene.setAllTypesPastelBall();
                    else if (setAllTypes.getSelectedItem() == "Image ball")
                        gameScene.setAllTypesImageBall();
                    else
                        gameScene.setAllTypesBall3D();
            // new ball drop down box
            JPanel newBallPanel = new JPanel(); // new ball panel
            newBallPanel.setBorder(BorderFactory.createLineBorder(Color.black));
            String[] newType = {"Primary ball", "Pastel ball", "3D ball", "Image ball"}; // Selections for new ball
            newBall = new JComboBox(newType); // Add selections to combo box
            newBallPanel.add(new JLabel("New ball")); // Add combo boxes to new ball panel
            newBallPanel.add(newBall);
            // Add combo box actions
            newBall.addActionListener(new ActionListener() // Add selection listener to newBall combo box
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    String ballType = (String) newBall.getSelectedItem();
                    if (ballType == "Primary ball")
                        gameScene.addBall(new PrimaryBall(gameScene));
                    else if (ballType == "Pastel ball")
                        gameScene.addBall(new PastelBall(gameScene));
                    else if (ballType == "Image ball")
                        gameScene.addBall(new ImageBall(gameScene));
                    else
                        gameScene.addBall(new Ball3D(gameScene));
                    updateSelectBallComboBox();
                    changeSelectedBall(gameScene.getBalls().size() - 1); // Update interface to show new ball
            // selected ball panel
            JPanel selectedBallPanel = new JPanel(); // selected ball panel
            selectedBallPanel.setBorder(BorderFactory.createLineBorder(Color.black));
            // Select ball
            selectBall = new JComboBox(gameScene.getBallList()); // Add ball list to the select drop down box
            deleteBall = new JButton("DeleteBall"); // Delete button
            // Ball colour
            redBall = new JRadioButton("Red"); // Red choice
            redBall.setSelected(true); // Start as selected
            greenBall = new JRadioButton("Green"); // Green choice
            blueBall = new JRadioButton("Blue"); // Blue choice
            ButtonGroup ballColour = new ButtonGroup(); // So only one colour can be selected at a tim
            ballColour.add(redBall);
            ballColour.add(greenBall);
            ballColour.add(blueBall);
            // Path
            archBall = new JRadioButton("Arch"); // Arch path choice
            archBall.setSelected(true); // Start as selected
            figureOfEightBall = new JRadioButton("Figure of eight"); // Figure of eight path choice
            ButtonGroup ballPath = new ButtonGroup(); // So only one path can be selected at a tim
            ballPath.add(archBall);
            ballPath.add(figureOfEightBall);       
            // Can split
            canSplit = new JCheckBox("Can split", false); // Initialy not selected
            selectedBallPanel.add(new JLabel("Select ball")); // Add components to selected ball panel
            selectedBallPanel.add(selectBall);
            selectedBallPanel.add(deleteBall);
            selectedBallPanel.add(new JLabel("Ball colour"));
            selectedBallPanel.add(redBall);
            selectedBallPanel.add(greenBall);
            selectedBallPanel.add(blueBall);
            selectedBallPanel.add(new JLabel("Path"));
            selectedBallPanel.add(archBall);
            selectedBallPanel.add(figureOfEightBall);
            selectedBallPanel.add(canSplit);
            // Add select ball drop down box action
            selectBall.addActionListener(new ActionListener() // Add selection listener to selectBall combo box
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    changeSelectedBall(selectBall.getSelectedIndex()); // Change the selected ball using the index from the select ball drop down box
            // Add delete button action
            deleteBall.addActionListener(new ActionListener() // Add selection listener to deleteBall button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    int tempIndex = selectBall.getSelectedIndex(); // Temp index
                    if (gameScene.getBalls().size() > 1) // If there is more than 1 ball left
                        gameScene.removeBall(tempIndex); // Remove ball
                        updateSelectBallComboBox(); // Update with new ball list
                        changeSelectedBall(tempIndex - 1); // Update interface with new current selected ball
            // Add radio button colour actions
            redBall.addActionListener(new ActionListener() // Add button listener to redBall button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    if (currentBall.getColour() != 0)
                        currentBall.setColour(0); // currentBall colour = red
            greenBall.addActionListener(new ActionListener() // Add button listener to greenBall button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                    if (currentBall.getColour() != 1)
                        currentBall.setColour(1); // currentBall colour = green
            blueBall.addActionListener(new ActionListener() // Add button listener to blueBall button
                public void actionPerformed(ActionEvent ev) // Background colour = blue
                    if (currentBall.getColour() != 2)
                        currentBall.setColour(2); // currentBall colour = blue
            // Add path radio button actions
            archBall.addActionListener(new ActionListener() // Add button listener to arch button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        currentBall.setPath(new Arch()); // Arch
            figureOfEightBall.addActionListener(new ActionListener() // Add button listener to figureOfEight button
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        currentBall.setPath(new FigureOfEight()); // Figure of eight
            // Add can split check button actions
            canSplit.addActionListener(new ActionListener() // Add button listener to can split
                public void actionPerformed(ActionEvent ev) // Overide actionPerformed() method
                        currentBall.setCanGiveBirth(canSplit.isSelected()); // Ball can split if can split check button is selected
            // Add components to ball panel
            ballsPanel.add(setAll);
            ballsPanel.add(newBallPanel);
            ballsPanel.add(selectedBallPanel);
            return ballsPanel;
         * changeSelectedBall
         * @param  ballIndexIn - The numbered index of the ball in the game scene list of balls. If less than 0 then equals 0. If more than ball list size then equals last ball
        public void changeSelectedBall(int ballIndexIn)
            if (ballIndexIn < 0) // Make sure index is within bounds
                ballIndexIn = 0;
            else if (ballIndexIn >= gameScene.getBalls().size())
                ballIndexIn = gameScene.getBalls().size() - 1; // Else put within bounds at either end
            currentBall.highlight(false); // Unhighlight current ball
            currentBall = gameScene.getBall(ballIndexIn); // Get new current ball
            currentBall.highlight(true); // Highlight new current ball
            // Update controls to new ball
            selectBall.setSelectedIndex(ballIndexIn);
            switch (currentBall.getColour()) // Update colour controls
                case 0: redBall.setSelected(true); break;
                case 1: greenBall.setSelected(true); break;
                default: blueBall.setSelected(true); break;
            if (currentBall.getPath() instanceof Arch) // If path is arch
                archBall.setSelected(true); // Update controls as arch
            else
                figureOfEightBall.setSelected(true); // Else figure of eight
            canSplit.setSelected(currentBall.canGiveBirth()); // Set if the ball can split or not
         * updateSelectBallComboBox
         * This method updates the combo box selection model with a new one made from the updated balls arraylist from the game scene
        public void updateSelectBallComboBox()
            DefaultComboBoxModel model = new DefaultComboBoxModel(gameScene.getBallList());
            selectBall.setModel(model);
    }Kind regards
    Liam morren

    http://docs.info.apple.com/article.html?artnum=301073
    This link states Mac OS X 10.4 now supports Java 5.0. It does mention nothing about Mac OS 9 or previous version of OS X. The problem you may be facing is that your Mac is running only 1.4.2 or less. The class files compiled for Java 5.0 can't run in non 5.0 versions of the Java Virtual Machine. Java 5.0 was a major release for the Java language and thus the change in numbering (though it took a little bit for this to change).
    Anyway you should confirm what version of Java you have installed on your Mac.
    At a command prompt:
    java -version
    The above URL states that the previous 1.4.2 Java version is not uninstalled, and this could still be the preferred version to use for Java applications even after installing Java 5.0.
    The URL above states there is a utility to set your apps to use Java 5.0 as the perferred Java version. Who knows maybe this is all you need to do. I hope this is the case, then it probably is an easy fix, otherwise you may need to rewrite your app in Java 1.4.2 to get it to run on your version of Mac.

  • Can't see whats wrong? help

    Hi i've made an applet that has 12 buttons on it, and when the user presses 4 buttons it is stored in an array called myList. Each time a button is pressed sequenceCheck method i created gets called. This has a list of the possible correct combinations that the user could press the buttons in. I have 23 solutions so far. Most of them are working fine however any solution that has the button10, button11 or button 12 in it doesn't seem to work? And i'm not sure why? I've looked at the code over and over and can't see what i've done wrong.
    Solutions that don't seem to work are: solution 3, solution 7, solution 8, solution 9, solution 11, solution 13, solution 16, solution 17, solution 18, solution 18, solution 19, solution 20, solution 22 and solution 23. Sll of which have ethier button 10, button 11 or button 12 in it?
    If anyone can see what i've done it would really appreciate the help.
    package stampGame;
    // Description:
    // Directory: c:\myjava\teaching
    // Date: 5/4/00
    // Uses:
    // Comments:  note the convenient use of the Point object for
    //  manipulating coordinates
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.*;
    import java.util.*;
    import javax.swing.JOptionPane;
    public class StampGame extends Applet implements ActionListener{
         final int N= 12;
         final int P = 3;
         final int Q = 3;
         String[] buttonLabel = {"1","2","3","4","5","6","7","8","9","10","11","12"};
         Button[] button = new Button[N];
         private int combinationsFound = 0;
         ArrayList<String> myList = new ArrayList<String>();
         ArrayList<String> solutionsFound = new ArrayList<String>();
         public void init(){
              setBackground(Color.blue);     // Applet background color
              setLayout(null); 
              System.out.println(myList);
              for(int i=0; i<N; ++i)
                   button[i] = new Button(buttonLabel);
                   button[i].setFont(new java.awt.Font("Dialog", 1, 24));
                   button[i].setBackground(Color.white); // buttons colour
                   button[i].addActionListener(this);
                   add(button[i]);
         public void paint (Graphics g){
              Insets a = insets();
              button[0].reshape(10+a.left,10+a.top, 100,100);
              button[1].reshape(110+a.left,10+a.top, 100,100);
              button[2].reshape(210+a.left,10+a.top, 100,100);
              button[3].reshape(310+a.left,10+a.top, 100,100);
              button[4].reshape(10+a.left,100+a.top, 100,100);
              button[5].reshape(110+a.left,100+a.top, 100,100);
              button[6].reshape(210+a.left,100+a.top, 100,100);
              button[7].reshape(310+a.left,100+a.top, 100,100);
              button[8].reshape(10+a.left,200+a.top, 100,100);
              button[9].reshape(110+a.left,200+a.top, 100,100);
              button[10].reshape(210+a.left,200+a.top, 100,100);
              button[11].reshape(310+a.left,200+a.top, 100,100);
              g.drawString("Number of combinations found: " + combinationsFound, 500, 100);
         public void actionPerformed(ActionEvent e) {
              // TODO Auto-generated method stub
              if(e.getSource() == button[0]){
                   System.out.println("one");          
                   myList.add("button1");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[1]){
                   System.out.println("two");
                   myList.add("button2");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[2]){
                   System.out.println("three");     
                   myList.add("button3");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[3]){
                   System.out.println("four");
                   myList.add("button4");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[4]){
                   System.out.println("five");
                   myList.add("button5");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[5]){
                   System.out.println("six");     
                   myList.add("button6");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[6]){
                   System.out.println("seven");
                   myList.add("button7");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[7]){
                   System.out.println("eight");
                   myList.add("button8");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[8]){
                   System.out.println("nine");          
                   myList.add("button9");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[9]){
                   System.out.println("ten");     
                   myList.add("button10");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[10]){
                   System.out.println("eleven");
                   myList.add("button11");
                   System.out.println(myList);
                   sequenceCheck();
              if(e.getSource() == button[11]){
                   System.out.println("twelve");          
                   myList.add("button12");
                   System.out.println(myList);
                   sequenceCheck();
         public void sequenceCheck(){
              //ArrayList<String> solutionsFound = new ArrayList<String>();
              ArrayList<String> solution1 = new ArrayList<String>();
              ArrayList<String> solution2 = new ArrayList<String>();
              ArrayList<String> solution3 = new ArrayList<String>();
              ArrayList<String> solution4 = new ArrayList<String>();
              ArrayList<String> solution5 = new ArrayList<String>();
              ArrayList<String> solution6 = new ArrayList<String>();
              ArrayList<String> solution7 = new ArrayList<String>();
              ArrayList<String> solution8 = new ArrayList<String>();
              ArrayList<String> solution9 = new ArrayList<String>();
              ArrayList<String> solution10 = new ArrayList<String>();
              ArrayList<String> solution11 = new ArrayList<String>();
              ArrayList<String> solution12 = new ArrayList<String>();
              ArrayList<String> solution13 = new ArrayList<String>();
              ArrayList<String> solution14 = new ArrayList<String>();
              ArrayList<String> solution15 = new ArrayList<String>();
              ArrayList<String> solution16 = new ArrayList<String>();
              ArrayList<String> solution17 = new ArrayList<String>();
              ArrayList<String> solution18 = new ArrayList<String>();
              ArrayList<String> solution19 = new ArrayList<String>();
              ArrayList<String> solution20 = new ArrayList<String>();
              ArrayList<String> solution21 = new ArrayList<String>();
              ArrayList<String> solution22 = new ArrayList<String>();
              ArrayList<String> solution23 = new ArrayList<String>();
              Collections.sort(myList);
              // SOLUTION ONE
              solution1.add("button1");
              solution1.add("button2");
              solution1.add("button3");
              solution1.add("button4");
              System.out.println("Solution 1 = " + solution1);
              // SOLUTION 2
              solution2.add("button5");
              solution2.add("button6");
              solution2.add("button7");
              solution2.add("button8");
              System.out.println("Solution2 = " + solution2);
              // SOLUTION 3
              solution3.add("button9");
              solution3.add("button10");
              solution3.add("button11");
              solution3.add("button12");
              System.out.println("Solution3 = " + solution3);
              // SOLUTION 4
              solution4.add("button1");
              solution4.add("button2");
              solution4.add("button5");
              solution4.add("button6");
              System.out.println("Solution4 = " + solution4);
              // SOLUTION 5
              solution5.add("button3");
              solution5.add("button4");
              solution5.add("button7");
              solution5.add("button8");
              System.out.println("Solution5 = " + solution5);
              // SOLUTION 6
              solution6.add("button2");
              solution6.add("button3");
              solution6.add("button6");
              solution6.add("button7");
              System.out.println("Solution6 = " + solution6);
              // SOLUTION 7
              solution7.add("button5");
              solution7.add("button6");
              solution7.add("button9");
              solution7.add("button10");
              System.out.println("Solution7 = " + solution7);
              // SOLUTION 8
              solution8.add("button7");
              solution8.add("button8");
              solution8.add("button11");
              solution8.add("button12");
              System.out.println("Solution8 = " + solution8);
              // SOLUTION 9
              solution9.add("button6");
              solution9.add("button7");
              solution9.add("button10");
              solution9.add("button11");
              System.out.println("Solution9 = " + solution9);
              // SOLUTION 10
              solution10.add("button1");
              solution10.add("button2");
              solution10.add("button6");
              solution10.add("button7");
              System.out.println("Solution10 = " + solution10);
              // SOLUTION 11
              solution11.add("button5");
              solution11.add("button6");
              solution11.add("button10");
              solution11.add("button11");
              System.out.println("Solution11 = " + solution11);
              // SOLUTION 12
              solution12.add("button2");
              solution12.add("button3");
              solution12.add("button7");
              solution12.add("button8");
              System.out.println("Solution12 = " + solution12);
              // SOLUTION 13
              solution13.add("button6");
              solution13.add("button7");
              solution13.add("button11");
              solution13.add("button12");
              System.out.println("Solution13 = " + solution13);
              // SOLUTION 14
              solution14.add("button2");
              solution14.add("button3");
              solution14.add("button5");
              solution14.add("button6");
              System.out.println("Solution14 = " + solution14);
              // SOLUTION 15
              solution15.add("button3");
              solution15.add("button4");
              solution15.add("button6");
              solution15.add("button7");
              System.out.println("Solution15 = " + solution15);
              // SOLUTION 16
              solution16.add("button6");
              solution16.add("button7");
              solution16.add("button9");
              solution16.add("button11");
              System.out.println("Solution16 = " + solution16);
              // SOLUTION 17
              solution17.add("button7");
              solution17.add("button8");
              solution17.add("button10");
              solution17.add("button11");
              System.out.println("Solution17 = " + solution17);
              // SOLUTION 18
              solution18.add("button1");
              solution18.add("button5");
              solution18.add("button6");
              solution18.add("button10");
              System.out.println("Solution18 = " + solution18);
              // SOLUTION 19
              solution19.add("button2");
              solution19.add("button6");
              solution19.add("button7");
              solution19.add("button11");
              System.out.println("Solution19 = " + solution19);
              // SOLUTION 20
              solution20.add("button3");
              solution20.add("button7");
              solution20.add("button8");
              solution20.add("button12");
              System.out.println("Solution20 = " + solution20);
              // SOLUTION 21
              solution21.add("button2");
              solution21.add("button5");
              solution21.add("button6");
              solution21.add("button9");
              System.out.println("Solution21 = " + solution21);
              // SOLUTION 22
              solution22.add("button3");
              solution22.add("button6");
              solution22.add("button7");
              solution22.add("button10");
              System.out.println("Solution22 = " + solution22);
              // SOLUTION 23
              solution23.add("button4");
              solution23.add("button7");
              solution23.add("button8");
              solution23.add("button11");
              System.out.println("Solution23 = " + solution23);
              System.out.println("buttons pressed = " + myList);
              System.out.println("solutions found = " + solutionsFound);
              Collections.sort(myList);
              if(myList.equals(solution1)){
                   if(solutionsFound.contains("solution1")){
                        JOptionPane.showMessageDialog(null, "Combinations already found");
                        myList.clear();
                   else {
                        combinationsFound++;
                        JOptionPane.showMessageDialog(null, "Winner");
                        myList.clear();
                        repaint();
                        solutionsFound.add("solution1");
                        System.out.println("solutions found = " + solutionsFound);
                   else if(myList.equals(solution2)){
                        if(solutionsFound.contains("solution2")){
                             JOptionPane.showMessageDialog(null, "Combinations already found");
                             myList.clear();
                        else {
                             combinationsFound++;
                             JOptionPane.showMessageDialog(null, "Winner");
                             myList.clear();
                             repaint();
                             solutionsFound.add("solution2");
                             System.out.println("solutions found = " + solutionsFound);
                   else if(myList.equals(solution3)){
                   if(solutionsFound.contains("solution3")){
                        JOptionPane.showMessageDialog(null, "Combinations already found");
                        myList.clear();
                   else {
                        combinationsFound++;
                        JOptionPane.showMessageDialog(null, "Winner");
                        myList.clear();
                        repaint();
                        solutionsFound.add("solution3");
                        System.out.println("solutions found = " + solutionsFound);
                   else if(myList.equals(solution4)){
                        if(solutionsFound.contains("solution4")){
                             JOptionPane.showMessageDialog(null, "Combinations already found");
                             myList.clear();
                        else {
                             combinationsFound++;
                             JOptionPane.showMessageDialog(null, "Winner");
                             myList.clear();
                             repaint();
                             solutionsFound.add("solution4");
                             System.out.println("solutions found = " + solutionsFound);
                   else if(myList.equals(solution5)){
                        if(solutionsFound.contains("solution5")){
                             JOptionPane.showMessageDialog(null, "Combinations already found");
                             myList.clear();
                        else {
                             combinationsFound++;
                             JOptionPane.showMessageDialog(null, "Winner");
                             myList.clear();
                             repaint();
                             solutionsFound.add("solution5");
                             System.out.println("solutions found = " + solutionsFound);
                   else if(myList.equals(solution6)){
                        if(solutionsFound.contains("solution6")){
                             JOptionPane.showMessageDialog(null, "Combinations already found");
                             myList.clear();
                        else {
                             combinationsFound++;
                             JOptionPane.showMessageDialog(null, "Winner");
                             myList.clear();
                             repaint();
                             solutionsFound.add("solution6");
                             System.out.println("solutions found = " + solutionsFound);
                   else if(myList.equals(solution7)){
                        if(solutionsFound.contains("solution7")){
                             JOptionPane.showMessageDialog(null, "Combinations already found");
                             myList.clear();
                        else {
                             combinationsFound++;
                             JOptionPane.showMessageDialog(null, "Winner");
                             myList.clear();
                             repaint();
                             solutionsFound.add("solution7");
                             System.out.println("solutions found = " + solutionsFound);
                   else if(myList.equals(solution8)){
                        if(solutionsFound.contains("solution8")){
                             JOptionPane.showMessageDialog(null, "Combinations already found");
                             myList.clear();
                        else {
                             combinationsFound++;
                             JOptionPane.showMessageDialog(null, "Winner");
                             myList.clear();
                             repaint();
                             solutionsFound.add("solution8");
                             System.out.println("solutions found = " + solutionsFound);
                   else if(myList.equals(solution9)){
                        if(solutionsFound.contains("solution9")){
                             JOptionPane.showMessageDialog(null, "Combinations already found");
                             myList.clear();
                        else {
                             combinationsFound++;
                             JOptionPane.showMessageDialog(null, "Winner");
                             myList.clear();
                             repaint();
                             solutionsFound.add("solution9");
                             System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution10)){
                        if(solutionsFound.contains("solution10")){
                             JOptionPane.showMessageDialog(null, "Combinations already found");
                             myList.clear();
                        else {
                             combinationsFound++;
                             JOptionPane.showMessageDialog(null, "Winner");
                             myList.clear();
                             repaint();
                             solutionsFound.add("solution10");
                             System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution11)){
         if(solutionsFound.contains("solution11")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution11");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution12)){
         if(solutionsFound.contains("solution12")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution12");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution13)){
         if(solutionsFound.contains("solution13")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution13");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution14)){
         if(solutionsFound.contains("solution14")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution14");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution15)){
         if(solutionsFound.contains("solution15")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution15");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution16)){
         if(solutionsFound.contains("solution16")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution16");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution17)){
         if(solutionsFound.contains("solution17")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution17");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution18)){
         if(solutionsFound.contains("solution18")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution18");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution19)){
         if(solutionsFound.contains("solution19")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution19");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution20)){
         if(solutionsFound.contains("solution20")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution20");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution21)){
         if(solutionsFound.contains("solution21")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution21");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution22)){
         if(solutionsFound.contains("solution22")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution22");
              System.out.println("solutions found = " + solutionsFound);
    else if(myList.equals(solution23)){
         if(solutionsFound.contains("solution23")){
              JOptionPane.showMessageDialog(null, "Combinations already found");
              myList.clear();
         else {
              combinationsFound++;
              JOptionPane.showMessageDialog(null, "Winner");
              myList.clear();
              repaint();
              solutionsFound.add("solution23");
              System.out.println("solutions found = " + solutionsFound);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    From [How To Ask Questions The Smart Way|http://www.catb.org/~esr/faqs/smart-questions.html]
    [Volume is not precision|http://www.catb.org/~esr/faqs/smart-questions.html#volume] :
    You need to be precise and informative. This end is not served by simply dumping huge volumes of code or data into a help request. If you have a large, complicated test case that is breaking a program, try to trim it and make it as small as possible.
    This is useful for at least three reasons. One: being seen to invest effort in simplifying the question makes it more likely you'll get an answer, Two: simplifying the question makes it more likely you'll get a useful answer. Three: In the process of refining your bug report, you may develop a fix or workaround yourself.
    Also please read up on god-objects (wikipedia has a write up on this) which is cured by dividing and conquering. Finally, you really need to simplify this code by using loops with your arrays. You can shorten this beast by over 70%, easy making it much, much easier to debug.
    Edited by: Encephalopathic on Mar 30, 2008 6:59 AM

Maybe you are looking for