Search:

Type: Posts; User: smasm

Page 1 of 2 1 2

Search: Search took 0.40 seconds.

  1. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    I will post all th changes that I've made in my codes but Plz test it and check my problem .. Cuz I worked with a grad student and we tried but he said everything seems good that must work .. So if u...
  2. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    I am sorry from asking this but did you test my code and fix the code ?

    because I tried everything in the layout maneger also i changed everything in setBounds ... I also finish that wile ago...
  3. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    the height and width of the size of the picture.

    the logo and picture are same sizes width and height ... 140, 166
  4. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    honestly I couldn't think anymore .. I fix it every single problem im my program except this point .. please hint or so ..
  5. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    I am sorry I could not get it .. even my teacher said i have never used it ... so please if you could give hint or explanation I really appreciate that ..
  6. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    hmmm ... You mean removing the layout and working with X and Y on setBounds ??

    I tried it but it seems I'm making something wrong too... .??
  7. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    Really good point !! Never though about it ?? Please why?
  8. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    The tshirt will not show on the window
  9. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    I just looked at it ... and tried to delete my layout manager to match it with the example .. but my luck today is too bad ..
    I am sorry my english is lill bad so i have to read once and twice .......
  10. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    Some examples uses others no..
    I tried all of them nothing change except the place of them .. Up or down left or right ..
    That's all
  11. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    I sat both of their X, Y same numbers ... is not that right ?
    I don't know any other code that will do the same as i found in google..
    your last question i did not quit understand it .. you mean...
  12. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    you mean the 15, 100 ?

    I tried using the other way which is

    // Manually set layout the components, and add it.
    jlayerPane.add(picture, new Integer (1));
    jlayerPane.add(logo, new...
  13. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    yes I tried to get from that page what I need ... that page has been opened in my browser since last Thu ..
    I honestly could not fine the mistake .. maybe because I have been working too much and i...
  14. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    ( X 15, Y 100 )
    And the pictures and logos JLabel has been created ..

    These two Labels has been added to the JLayerPane ..

    The LayerPane has been created and we sat the the layout of it...
  15. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    If i am not mistaken

    this line of code ...

    picture.setBounds(15, 100, picture.getWidth(), picture.getHeight());
    logo.setBounds(15, 100, logo.getWidth(), logo.getHeight());


    in this line...
  16. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    I followed up again my code line by line and I changed the numbers many times ...
    I don't think that the problem is the numbers maybe i miss some codes or so ..??
    I changed x to 100 and less and...
  17. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    Yes I did .. and I just did it again ..
    I used JLayerPane as it suppose to be used, however, it keeps giving me the two pictures beside each other...
    Honestly this error drove me crazy ....

    I...
  18. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    Sure .. you can delete whatever you want if you want to test the program ...
    these names are in the drop list box ..
    I tried to test it in different ways ..

    you mean that I have used...
  19. Re: HELP - placing picture on top of another picture in Java - JLayerPane

    import java.awt.*;
    import java.awt.event.*;
    import java.util.HashMap;
    import javax.swing.*;


    public class SmallProgram extends JFrame
    {

    // These variables for the main window.
  20. HELP - placing picture on top of another picture in Java - JLayerPane

    Hi ..

    I am trying to place a picture on top of another one in java ..

    I have a Tshirt picture which I am going to place it in the center of my GUI
    Also I have a logo I want to put it on top...
  21. Re: Radio button .. display empty screen ?? plz Help

    Thanks man .. i have been thinking too much and I missed this code of line

    add(pnlRadioButtons, BorderLayout.NORTH);


    Any recommendation for my program ..
    I am designing a small program...
  22. Re: Radio button .. display empty screen ?? plz Help

    package FunGUI;

    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;

    import...
  23. Radio button .. display empty screen ?? plz Help

    >

    I was trying to show the button to start handling them .. but nothing show on GUI when its run ??

    I added the panel but is there anything that I could do to fix the problem .. Also, I use to...
  24. Replies
    9
    Views
    789

    Re: Can Anyone Help With Arrays?

    try this
    first you have to create an int

    int x = -1;

    if(!isCharacterPresent(input.charAt(i), noRepeatCharacters, x))

    last++;
    noRepeatCharacters[x] = input.charAt(i);
  25. Replies
    3
    Views
    443

    Re: How can I refer methods ??

    Thanks for replying ..

    Ok now if I want to get the deposit from the user and update the balance method ..

    this is what i am stack in ..

    how can I connect two methods together ??
Results 1 to 25 of 30
Page 1 of 2 1 2