Skip to main content

Posts

CREATE SPLASH SCREEN USING JAVA

Create a Splash Screen using JAVA Here is the code of this Splash Screen: import java.awt.*; import java.awt.event.*; import javax.swing.*; public class splash { public static void main(String[] args){ fframe f1 = new fframe(); f1.setVisible(true); int i; int x=1; for(i=2; i<=600; i+=4, x+=1){ f1.setLocation(800 - ((i+x)/2), 500 - (i/2)); f1.setSize(i+x,i); try{ Thread.sleep(10); }catch(Exception e){} } } } class fframe extends JFrame implements Runnable{ Thread t1; fframe(){ super("Electricity Billing System"); setLayout(new FlowLayout()); ImageIcon c1 = new ImageIcon(ClassLoader.getSystemResource("icon/elect.jpg")); Image i1 = c1.getImage().getScaledInstance(730, 550,Image.SCALE_DEFAULT); ImageIcon i2 = new ImageIcon(i1); JLabel l1 = new JLabel(i2);

Print TREE In Python

How to Print Tree in Python?? it is very simple in python to print tree than in java I tried to use the minimum code to fulfill the requirements. the code is of only 2 lines. find the code below for i in range(1,10):      print('*'*i) output:  Video Tutorial: Click Here #python #code #source #tutorial #blog #knowledge knowledgestreams.blogspot.com

Yagi UDA Antenna

Tutorial: Click Here for youtube video tutorial Yagi uda antenna tutorial available at youtube channel. visit:  Click Here for youtube video tutorial knwledgestreams.blogspot.com Yagi-Uda antenna  is the most commonly used type of antenna for TV reception over the last few decades. It is the most popular and easy-to-use type of antenna with better performance, which is famous for its high gain and directivity. #knowledge #stream #blog Frequency range The frequency range in which the Yagi-Uda antennas operate is around  30 MHz to 3GHz  which belong to the  VHF  and  UHF  bands. Construction of Yagi-Uda Antenna A Yagi-Uda antenna was seen on top of almost every house during the past decades. The parasitic elements and the dipole together form this Yagi-Uda antenna. The figure shows a  Yagi-Uda antenna . It is seen that there are many directors placed to increase the directivity of the antenna. The feeder is the folded dipole. The reflector is the length

ELECTRICITY BILLING SYSTEM

ELECTRICITY BILLING SYSTEM https://knowledgestreams.blogspot.com/ Create a electricity biilling system using JAVA #knowledge #stream #blog you can find the full source code for the project below. A - Below is the source code of the project. B - Create separate class files for every class. C - Copy the code of one class (ex: login.java) and paste it in Login class file, do it for every class. 1 - Create your first class with name 'conn' and paste the code package Electricity; import java.sql.*;   // knowledgestreams.blogspot.com public class conn{     Connection c;     Statement s;     public conn(){           try{               Class.forName("com.mysql.jdbc.Driver");               c =DriverManager.getConnection("jdbc:mysql:///project","root","");                 s =c.createStatement();           }catch(Exception e){              System.out.println(e);

Python code for converting colored image to black and white

Python code for converting colored image to black and white Libraries used: PIL for python IDE Used: Spyder Tutorial video link: Click Here https://knowledgestreams.blogspot.com/ knowledge streams blog spot dot com free knowledge blog. download free source codes for python and java and other free stuff. from PIL import Image open_image = Image.open("adress of the pictures") open_image.show() convert_to_blackandwhite= open_image.convert("L") convert_to_blackandwhite.show() knowledge streams blog spot dot com free knowledge blog. download free source codes for python and java and other free stuff. Q: How to Install PIL?? A1: pip install PIL A2: pip install pillow #Python #beginner #source_code #image #convert

My Hobby Essay In Urdu

My Hobby Essay In Urdu   Farigh auqat ko kaam mein lanay ke liye insan ko koi na koi mashghala zaroor ikhtyar karna chahiye maslan baghbani, parhna likhna, ticket jama karna. sikay jama karna, tasweer banana, tasweerain jama karna wagera. Mera mashghala ticket jama karna hai. Main tarah tarah ke ticket jama karta raha hon aur free time yani farigh waqt mein mere album mein tarteeb se lagata rehta hon. Is tarah ke lamhat bohat achi tarah guzar jatay hain. knowledge streams blog spot dot com free knowledge blog. download free source codes for python and java and o ther free stuff. Ticket jama karna yani collecting ticket mera pasandida mashghala hai. Is liye main ne kabhi koshish nahin ki ke jald az jald bohat sare ticket khareed loun aur album bhar loun. Khareed kar aik hi baar bohat se ticket hasil kar laina mashghalay ke adab ke khilaf hai. Is ka taqaza hai ke aik ticket ke husool ke liye mehnat ki jaye. Chunachay mein ticket khaton se utarta hon ya dusron se tickets ka tabadl

The Jupyter Notebook

The Jupyter Notebook  is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more. knowledge streams blog spot dot com free knowledge blog. download free source codes for python and java and other free stuff. Try Jupyter here   Install Jupyter here Language of choice Jupyter supports over 40 programming languages, including Python, R, Julia, and Scala. Share notebooks Notebooks can be shared with others using email, Dropbox, GitHub and the  Jupyter Notebook Viewer . Interactive output Your code can produce rich, interactive output: HTML, images, videos, LaTeX, and custom MIME types. Big data integration Leverage big data tools, such as Apache Spark, from Python, R and Scala. Explore that same data with pa