Java JLabel SetIcon update change the JLabel Zorder -


enter image description here enter image description here

i have 2 jlabels need put 1 on second. first time page loaded correctly. made button changing icon (jfilechooser) once validated changes zorder come in front :

    file newi = new file(user.getprofilepic());     bufferedimage newibuff;     try {         newibuff = imageio.read(newi);         bufferedimage newim = resizeimage(newibuff, labelpic.getwidth(),        labelpic.getheight());         labelpic.seticon(new imageicon(newim));         labelpic.setcomponentzorder(labelpic, 1);     } catch (ioexception e1) {         // todo auto-generated catch block         e1.printstacktrace();     } 


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -