+ 1

The "setBounds(x,y,width,height)" function is not working. Plz help!

I am following the tutorial, "How to make a Text Adventure Game with GUI in Java P2" by the user Ryisnow on youtube and I have typed the code exactly, but Eclipse will not give me that particular setBounds function and I am stuck. Can anyone help? https://www.youtube.com/watch?v=RcvABhflOkI&index=2&list=PL_QPQmz5C6WUMB0xEMZosWbyQo_Kil0Fb

16th Nov 2018, 7:05 AM
Brandon Travis Goins
Brandon Travis Goins - avatar
2 Réponses
+ 1
I will try to get the code posted later, but the main problem is that that particular setBounds was not an autocomplete option in my Eclipse like the guy in the video.
16th Nov 2018, 4:22 PM
Brandon Travis Goins
Brandon Travis Goins - avatar
+ 1
I finally got the code to work. There may have been only a small nuance causing the problem, but the "setBounds(x,y,width,height)" function will still not autocomplete in my Eclipse. Is that way of drawing rectangles deprecated? Is there a better way? You can see the exact code by looking at the video I originally posted at 5m26s.
16th Nov 2018, 4:36 PM
Brandon Travis Goins
Brandon Travis Goins - avatar