Skip to main content

Featured Post

PoPup Redirection in HTML

<html> <head> <script type="text/javascript"> window.onload = function() { window.open('https://www.wired2tech.org','W2T',' menubar=0, resizable=0,dependent=0,status=0,width=300,height=200,left=10,top=10') } </script> <body> </body> </head> </html>PoPup Redirection in HTML by Mohammed Ibrahim Mirza Beig is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Information form in Java



  1. Programmers often must create forms using oops; today we’ll be creating one using Java. So remember the goal of this is to experiment with the code so enjoy!



  2. import java.awt.Color;

  3. import java.awt.GridLayout;

  4. import javax.swing.*;


  5. class INFORFORM {


  6. public static void main(String[] args) {

  7.     String[] selections = {"QUESTIONS", "REQUESTS", "INFORMATION", "INQUIERY", "PRESS","OTHER"};

  8.     

  9.     JComboBox comboX = new JComboBox(selections);

  10.     

  11.     JTextField NAME = new JTextField("WIRED2TECH");

  12.     

  13.     JTextField EMAIL = new JTextField("WIRED2TECH2@AOL.COM");

  14.     

  15.     JTextField QUESTION=new JTextField("CAN YOU WRITE AN ARTICLE ABOUT MY SCHOOL");

  16.     

  17.     JPanel panel = new JPanel(new GridLayout(12, 10,13,15));

  18.     panel.setBorder(BorderFactory.createEmptyBorder(10,10,8,8));


  19.     

  20.     panel.add(comboX);

  21.     

  22.     panel.add(new JLabel("NAME:"));

  23.     panel.setBorder(BorderFactory.createLineBorder(Color.BLACK));

  24.     panel.add(NAME);

  25.     

  26.     panel.add(new JLabel("EMAIL:"));

  27.    panel.setBorder(BorderFactory.createLineBorder(Color.BLACK));

  28.     panel.add(EMAIL);

  29.     

  30.     panel.add(new JLabel("QUESTION:"));

  31.     panel.setBorder(BorderFactory.createLineBorder(Color.BLACK));

  32.     panel.add(QUESTION);

  33.    

  34.    int result = JOptionPane.showConfirmDialog(null, panel, "RUN",

  35.         JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);

  36.     if (result == JOptionPane.OK_OPTION) {

  37.         System.out.println(comboX.getSelectedItem()

  38.             + " " + NAME.getText()

  39.             + " " + EMAIL.getText());

  40.     } else {

  41.         System.out.println("Operation Cancelled!?");

  42.     }

  43. }

  44. }


Comments

Popular posts from this blog

MY DELPHI APP

TODAY I'LL BE SHOWING YOU AN APP I MADE IN PASCAL USING BORLAND DELPHI. THIS APP WAS THE SUBJECT OF MY FINALS EXAMINATION IN WHICH I HAD TO PROGRAM AN APP THAT WOULD COMPUTE AND CALCULATE CERTAIN VALUES THIS APP IS AN INTERNAL APPLICATION THAT RUNS ON THE OLD WIN 98 SO ITS BASICALLY AN APP THAT A COMPANY OR CASHIER WOULD USE TO CALCULATE. IF YOU WANT TO RUN IT JUST COPY THE CODE BELOW, JUST DONT TRY AND USE IT AS YOUR OWN  OR SAY ITS YOURS BECAUSE THATS JUST A COMPLETE VIOLATION OF NERD LAW SO DONT BETRAY US. IF YOU WANT TO USE IT AT SCHOOL OR SOMETHING JUST SAY WHERE YOU GOT THE CODE FROM AND CLARIFY YOU GOT IT FROM THIS BLOG.
THANK YOU FOR READING;




------------------------------------------------------------------------------------------------------------------------
unit oo;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    Button2: TButton;
    Edit1: TEdit;
    Edit2: …

How to make cool HTML animations

today we"ll be doing html animations. although animation is considered quite difficult its actually fairly simple. And as always just copy the code and if you have any issues or concerns just comment and we"ll get right back to you.image as backgroundAWESOME!!AWESOME!!AWESOME!!AWESOME!!ALWAYS LEARN AT WIRED2TECH!!ALWAYS LEARN AT WIRED2TECH!!ALWAYS LEARN AT WIRED2TECH!!ALWAYS LEARN AT WIRED2TECH!! check out wired2tech where youll always learn something new and usefull:) AWESOME!!AWESOME!!AWESOME!!









<!DOCTYPE html> <html> <head> <title>image as background</title>  <marquee behavior="alternate">AWESOME!!</marquee>  <marquee behavior="alternate">AWESOME!!</marquee>  <marquee behavior="alternate">AWESOME!!</marquee>  <marquee behavior="alternate">AWESOME!!</marquee>  <marquee behavior="alternate">ALWAYS LEARN AT WIRED2TECH!!</marquee>  <marquee beha…

HOW TO MAKE ARTIFICIAL INTELLIGENCE WITH NOTEPAD++

OK so when you hear artificial intelligence you automatically think a super high-tech robot; well today i'm gonna show just how simple artificial intelligence actually is.

STEP 1: open notepad++ and copy the following code.
fname=inputbox ("komichiwa")
fname=inputbox ("i am ASUNA")
fname=inputbox ("whats your name")
fname=inputbox ("thats a good name")
fname=inputbox ("do you like anime or manga?")
fname=inputbox ("thats cool")
fname=inputbox ("pi=3.14")
fname=inputbox ("4*8=?")
fname=inputbox ("32")
fname=inputbox ("what is the capital of RUSSIA")
fname=inputbox ("MOSCOW")
fname=inputbox ("what is BERLIN")
fname=inputbox ("the capital of GERMANY")
fname=inputbox (" i^5=?")
fname=inputbox ("i")
fname=inputbox ("what is your favorite anime?")
fname=inputbox ("cool!!")
fname=inputbox ("what is your favorite manga")
fname=inp…