Skip to content

Instantly share code, notes, and snippets.

View ishanbhavsar3's full-sized avatar
💻
Learning from home

Ishan Bhavsar ishanbhavsar3

💻
Learning from home
View GitHub Profile
@ishanbhavsar3
ishanbhavsar3 / Tables.java
Created September 7, 2022 11:21
A program that displays the tables of any integer you put upto a certain integer, made using javax Swing class and can run natively on your platform with JDK and JRE.
import javax.swing.*;
public class Tables
{
JFrame f;
void OnTables()
{
f = new JFrame();
String name = JOptionPane.showInputDialog("Enter a number whose table you want.");
int n1 = Integer.parseInt(name);
String name_ = JOptionPane.showInputDialog("Input till what you want the number");
@ishanbhavsar3
ishanbhavsar3 / GST.java
Created January 30, 2022 03:27
SGST , CGST & IGST dependancies
import javax.swing.*;
public class GST {
JFrame f;
public void main(double b, char a, double c) {
f = new JFrame();
switch (a) {
case 'a' -> {
JOptionPane.showMessageDialog(f, "SGST = " + c + "% , CGST = " + c + "%");
@ishanbhavsar3
ishanbhavsar3 / Shop.java
Created January 30, 2022 03:25
GST Calculator ( Intrastate / Interstate ), depends on GST.java
import javax.swing.*;
public class Shop {
JFrame f;
void ShopSrc() {
GST call = new GST();
f = new JFrame();
String n1 = JOptionPane.showInputDialog(f, "Enter price of product.");
@ishanbhavsar3
ishanbhavsar3 / ImageGuesser.java
Last active January 30, 2022 03:17
A program where the user guesses images' associations. Built using AWT and javax.swing classof java. Utilises java.net & java.util packages
import javax.swing.*;
import java.awt.*;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Locale;
public class ImageGuesser {
int con, count;
JFrame f;
import javax.swing.*;
import java.awt.*;
import java.net.MalformedURLException;
import java.net.URL;
public class VaccineBookingWindow {
JFrame f;
void main_() throws MalformedURLException {
f = new JFrame();
URL img = new URL("https://upload.wikimedia.org/wikipedia/en/thumb/c/cf/Aadhaar_Logo.svg/250px-Aadhaar_Logo.svg.png");
@ishanbhavsar3
ishanbhavsar3 / NumberSuite.java
Created November 2, 2021 08:19
A Number Suite in Swing class of Java, developed by me.
import javax.swing.*;
public class NumberSuite {
private static JFrame f;
int n, n2, r, s, i, sq, digits, sum, hcf, lcm, safe, temp, temp1, temp2, count, found, product;
String num, num1;
public static void main(String[] args) {
f = new JFrame();
NumberSuite call = new NumberSuite();
@ishanbhavsar3
ishanbhavsar3 / Temperature.java
Last active March 24, 2021 06:35
Program in java regarding conversion of celsius into fahrenheit and vice versa using the Swing package (JavaFX) making it a running, standalone application.
import javax.swing.*;
public class Temperature {
JFrame f;
void TempSrc()
{
f = new JFrame();
String getData = JOptionPane.showInputDialog(f, """
MIT License \s