Orobogenius's Posts
Nairaland Forum › Orobogenius's Profile › Orobogenius's Posts
1 (of 1 pages)
For those of us that would like the company of other Java Programmers sharing ideas and moving each other forward, here is a link to the Java Whatsapp Group. https:///67YS6IJnPwBLontRn1XlxV |
. |
Droidguy:[b] First the easy way..... ImageIcon icon = new ImageIcon("imageName" );However there are some issues with the getScaledInstace method one of which is Image.getScaledInstance() does not return a finished, scaled image. It leaves much of the scaling work for a later time when the image pixels are used. To overcome such problem you can override getPreferredSize()of JLabel and return the dimensions you want from the function however a JLabel will size itself to its content and you will just need to resize the picture (imageicon) you add to the JLabel. To autosize the image in the JLabel you have to resize your image according to your desired width and height and then add it to the JLabel. To resize the image, you will need to create a BufferedImage with the picture and the desired dimensions. Here are two examples of what you want: 1. Using a function to create and return the BufferedImage.
and then calling the function like so BufferedImage image=ImageIO.read("imageName" ); BufferedImage resizedImage=resize(image,400,200);//resize the image to 400x200 2. Create a buffered image without a function ImageIcon icon = new ImageIcon("imageName" );then go ahead to add the imageicon to the JLabel [/b] |
This is good sir. Quick question: what does the -n option in echo and -d option in the if condition do? |
Nice app, uses Google Material Design. Thumbs UP |
danjumakolo:The TimeUnitin javax.swing.Timerclass is in milliseconds sir. |
danjumakolo:True talk sir, most of the core *nix Utilities are available |
... |
yungcheda:I agree but it doesn't have to be "very solid" and a newbie is a newbie, they have to start learning programming concepts from scratch. |
Linux is by far the best OS for those of us that do not have a phobia for the command line, you feel at home, you are in control. I don't care for the so-called romantic interface windows seems to project. OP please continue, it's a nice feeling to know you're not alone. |
hyuga: that cm9 chop battery o. my phone dey smoke anyhow. slimbean still d champ.yap am definitely with u on this......slim bean is great......cm9 na battery killer. |
Vijon: plz i didnt i understand wht u mean by computer button + Rclick on start then click on run and type cmd.... |
Uche ernest: [color=#000099][/color]download srsroot from srsroot.com anf install on ur system then goto settings an enable usb debugging and connet ur phone to ur system then open srsroot icon on ur desktop and click root my device (all method) |
Vijon: yes i have.it says ADB device nt foundu should enable android debugging......goto setting => applications => development then enable usb debugging. connect ur phone to ur computer den on ur computer press windows button + R then type CMD......now type adb devices, this should show u ur phone serial number and if it does....ur good to root. but if the problem still persist download adb driver installer. |
Vijon: @all,plz wht other way can one root htc G2 coz i ve tried srsroot to no avail.am running gingerbread 2.3.4are you sure u have a working internet connection? cause srsroot method requires a working internet connection to connect to thier server and dectect the appropriate rootkit method. |
donsunny22: Hello, pls can u past d link which u use in downloading gapps.zip and pls after downloading d zip file will i put it in my sdcard and locate on my recovery mod them click to install or flash.Goto goo.im/gapps then select the appropriate gapps for ur current OS.......downlad the zip file then place in ur /sdcard/. now reboot ur phone into recovery then while in recovery navigate to "install zip from sd"......locate d gapps zip file and select to open, select yes if asked and you're done. reboot ur phone after install complete. |
1 (of 1 pages)
