Search:

Type: Posts; User: derekxec

Search: Search took 0.10 seconds.

  1. Re: Adding components to my GUI over a background image

    sounds pretty good to me :D thanks :D
  2. Re: Adding components to my GUI over a background image

    thanks norm :D i did that now and i read through that paint guide and figured i need a panel so i added that and works good

    i also took everything out of the main() and put it its own methods
    ...
  3. Re: Adding components to my GUI over a background image

    finally got the image working :D:D:D i did like this


    public void paintComponent(Graphics mFrame) {
    super.paintComponent(mFrame);
    URL bg = fdmgcalc.class.getResource("bg.png");
    Image...
  4. Re: Adding components to my GUI over a background image

    thanks very much :D ill read through that right now and get to fixing

    and you know everything lol every time i post a question you are always the one answering first i very much appreciate it :D
  5. Re: Adding components to my GUI over a background image

    it does disappear :(

    when i run it in eclipse everything looks perfect but when i make it into a jar the bg disappears but everything else is good why does the bg disappear :(
  6. Re: Adding components to my GUI over a background image

    ah i took out the label stuff cause it kept removing the bg when it did go on the frame

    when would it get repainted? i thought once its up there thats it

    and i thought the super goes after...
  7. Re: Adding components to my GUI over a background image

    i just have a basic Jframe right now and i used this to add the image to it


    public void paint(Graphics g) {
    Image bg = Toolkit.getDefaultToolkit().getImage("bg.png");...
  8. Adding components to my GUI over a background image

    So here is my frame with the background image i want and now i am just having a bit of trouble adding labels on top of it. Do i need to use LayeredPane to add the labels(the part about this tool...
Results 1 to 8 of 8