Showing posts with label code. Show all posts
Showing posts with label code. Show all posts

Thursday, July 17, 2014

How to switch on LED on board using Raspberry pi


Hello folks !
Welcome to raspy tutorial ...


This post is for switching a LED light using terminal in raspberry pi.


To do this activity you need to get Administrative rights first of all. So, type the following commands in your terminal.

$sudo su
$/home/pi#

Sunday, March 16, 2014

How to change image on JPanel on action Command button

Welcome to itsitrc blogspot .

This article is for Java Applet .


Problem :



How to change image on JPanel on action Command button ?


Answer :



To satisfy this output we have step by step code described below.
To carry out this code you need to save images in your bin folder inside your workspace and just for example you need have .jpg extension images.
Save it as :
"1.jpg ",  "2jpg" ... so on just for testing issue....!