Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Colombo
YEYE 3 in 1 Instant Coffee Mix 50 Sachet
Romeshka
Updated:
Today at 12:16 AM
Colombo
Red Hat Certified System Administrator (RHCSA) - RHEL 10
Sanjeewani95
Updated:
Friday at 7:43 PM
NURSING , CAREGIVER , HOTEL & BEAUTY COURSES
IVA Para Medical Campus
Updated:
Thursday at 9:24 AM
Handmade Character Soft Toys Peppa Pig Family
anil1961
Updated:
Jul 1, 2026
Ad icon
Video Content Creator
pramukag
Updated:
Jun 28, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Chat!
EK Mega Party - Season 04 !!
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="geethq" data-source="post: 7254214" data-attributes="member: 4364"><p>package dvd;</p><p></p><p>import javax.swing.*;</p><p>import java.awt.*;</p><p>import java.awt.event.*;</p><p>import java.sql.*;</p><p>/**</p><p> *</p><p> * @author Geet*** S******</p><p> */</p><p>public class Search implements ActionListener {</p><p></p><p> JButton UpdateB = new JButton("Update");</p><p> JButton BackB = new JButton("Exit");</p><p> JButton SearchB = new JButton("Search");</p><p> JButton SearchB1 = new JButton("Clear");</p><p> JButton B1 = new JButton();</p><p> JButton B2 = new JButton();</p><p> JButton AddB = new JButton("Add New");</p><p></p><p> static String Type;</p><p> static String Title;</p><p> static String DVDNo;</p><p> static String DateCRTD;</p><p> static String Content1;</p><p> static String Content2;</p><p> static String Content3;</p><p> static String Content4;</p><p> static String Content5;</p><p> static String Content6;</p><p> static String Content7;</p><p> static String Content8;</p><p> static String Content9;</p><p> static String Content10;</p><p> static String Notes1;</p><p> static String Notes2;</p><p> static String SearchTag;</p><p></p><p> JTextField L4 = new JTextField();</p><p> JTextField L5 = new JTextField();</p><p> JTextField L6 = new JTextField();</p><p> JTextField L7 = new JTextField();</p><p> JTextField L30 = new JTextField();</p><p> JTextField L31 = new JTextField();</p><p> JTextField L32 = new JTextField();</p><p> JTextField L33 = new JTextField();</p><p> JTextField L34 = new JTextField();</p><p> JTextField L35 = new JTextField();</p><p> JTextField L36 = new JTextField();</p><p> JTextField L37 = new JTextField();</p><p> JTextField L38 = new JTextField();</p><p> JTextField L8 = new JTextField();</p><p> JTextField L40 = new JTextField();</p><p></p><p> JTextField L22 = new JTextField();</p><p> JTextField No21 = new JTextField("001");</p><p></p><p> JFrame win1 = new JFrame("Search");</p><p> public void GUI() {</p><p></p><p> JLabel L1 = new JLabel("Search");</p><p> JLabel L14 = new JLabel("Type");</p><p> JLabel L15 = new JLabel("Title");</p><p> JLabel L13 = new JLabel("Search by DVD No:");</p><p> JLabel L12 = new JLabel("Search by Tag:");</p><p> JLabel L16 = new JLabel("Date Created");</p><p> JLabel L17 = new JLabel("Content");</p><p> JLabel L18 = new JLabel("Notes");</p><p></p><p> int width = 620;</p><p> int height =600;</p><p> Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();</p><p> int x = (screen.width-width)/2;</p><p> int y = (screen.height-height)/2;</p><p> win1.setBounds(x,y,width,height);</p><p> win1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);</p><p> win1.setResizable(false);</p><p> win1.setVisible(true);</p><p></p><p> Container c = win1.getContentPane();</p><p> c.setLayout(null);</p><p></p><p> Font font = new Font("", Font.BOLD, 22);</p><p> L1.setFont(font);</p><p> </p><p></p><p> L1.setBounds(250, 20, 200, 20);</p><p> L4.setBounds(270, 130, 200, 20);</p><p> L5.setBounds(270, 160, 200, 20);</p><p> L6.setBounds(270, 190, 200, 20);</p><p> L7.setBounds(270, 220, 200, 20);</p><p> L30.setBounds(270, 240, 200, 20);</p><p> L31.setBounds(270, 260, 200, 20);</p><p> L32.setBounds(270, 280, 200, 20);</p><p> L33.setBounds(270, 300, 200, 20);</p><p> L34.setBounds(270, 320, 200, 20);</p><p> L35.setBounds(270, 340, 200, 20);</p><p> L36.setBounds(270, 360, 200, 20);</p><p> L37.setBounds(270, 380, 200, 20);</p><p> L38.setBounds(270, 400, 200, 20);</p><p> L8.setBounds(220, 430, 300, 20);</p><p> L40.setBounds(220,452, 300, 20);</p><p> L13.setBounds(120, 100, 175, 20);</p><p> L12.setBounds(120, 70, 175, 20);</p><p> L14.setBounds(120, 130, 175, 20);</p><p> L15.setBounds(120, 160, 175, 20);</p><p> L16.setBounds(120, 190, 175, 20);</p><p> L17.setBounds(170, 300, 175, 20);</p><p> L18.setBounds(170, 440, 175, 20);</p><p> No21.setBounds(270, 100, 100, 20);</p><p> L22.setBounds(270, 70, 117, 20);</p><p></p><p> SearchB.setBounds(390, 100, 80, 20);</p><p> SearchB1.setBounds(390,70, 80, 20);</p><p> B1.setBounds(370, 100, 16, 10);</p><p> B2.setBounds(370, 110, 16, 10);</p><p> UpdateB.setBounds(150, 500, 100, 20);</p><p> BackB.setBounds(390, 500, 100, 20);</p><p> AddB.setBounds(270, 500, 100, 20);</p><p></p><p> c.add(L12);</p><p> c.add(L13);</p><p> c.add(L14);</p><p> c.add(L15);</p><p> c.add(L16);</p><p> c.add(L17);</p><p> c.add(L18);</p><p> c.add(UpdateB);</p><p> c.add(BackB);</p><p> c.add(SearchB);</p><p> c.add(AddB);</p><p> c.add(SearchB1);</p><p> c.add(B1);</p><p> c.add(B2);</p><p> c.add(L1);</p><p> c.add(L4);</p><p> c.add(L5);</p><p> c.add(L6);</p><p> c.add(L7);</p><p> c.add(L8);</p><p> c.add(L30);</p><p> c.add(L31);</p><p> c.add(L32);</p><p> c.add(L33);</p><p> c.add(L34);</p><p> c.add(L35);</p><p> c.add(L36);</p><p> c.add(L37);</p><p> c.add(L38);</p><p> c.add(L40);</p><p> c.add(No21);</p><p> c.add(L22);</p><p></p><p> SearchB.addActionListener(this);</p><p> SearchB1.addActionListener(this);</p><p> B1.addActionListener(this);</p><p> B2.addActionListener(this);</p><p> UpdateB.addActionListener(this);</p><p> BackB.addActionListener(this);</p><p> AddB.addActionListener(this);</p><p></p><p> }</p></blockquote><p></p>
[QUOTE="geethq, post: 7254214, member: 4364"] package dvd; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.sql.*; /** * * @author Geet*** S****** */ public class Search implements ActionListener { JButton UpdateB = new JButton("Update"); JButton BackB = new JButton("Exit"); JButton SearchB = new JButton("Search"); JButton SearchB1 = new JButton("Clear"); JButton B1 = new JButton(); JButton B2 = new JButton(); JButton AddB = new JButton("Add New"); static String Type; static String Title; static String DVDNo; static String DateCRTD; static String Content1; static String Content2; static String Content3; static String Content4; static String Content5; static String Content6; static String Content7; static String Content8; static String Content9; static String Content10; static String Notes1; static String Notes2; static String SearchTag; JTextField L4 = new JTextField(); JTextField L5 = new JTextField(); JTextField L6 = new JTextField(); JTextField L7 = new JTextField(); JTextField L30 = new JTextField(); JTextField L31 = new JTextField(); JTextField L32 = new JTextField(); JTextField L33 = new JTextField(); JTextField L34 = new JTextField(); JTextField L35 = new JTextField(); JTextField L36 = new JTextField(); JTextField L37 = new JTextField(); JTextField L38 = new JTextField(); JTextField L8 = new JTextField(); JTextField L40 = new JTextField(); JTextField L22 = new JTextField(); JTextField No21 = new JTextField("001"); JFrame win1 = new JFrame("Search"); public void GUI() { JLabel L1 = new JLabel("Search"); JLabel L14 = new JLabel("Type"); JLabel L15 = new JLabel("Title"); JLabel L13 = new JLabel("Search by DVD No:"); JLabel L12 = new JLabel("Search by Tag:"); JLabel L16 = new JLabel("Date Created"); JLabel L17 = new JLabel("Content"); JLabel L18 = new JLabel("Notes"); int width = 620; int height =600; Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); int x = (screen.width-width)/2; int y = (screen.height-height)/2; win1.setBounds(x,y,width,height); win1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); win1.setResizable(false); win1.setVisible(true); Container c = win1.getContentPane(); c.setLayout(null); Font font = new Font("", Font.BOLD, 22); L1.setFont(font); L1.setBounds(250, 20, 200, 20); L4.setBounds(270, 130, 200, 20); L5.setBounds(270, 160, 200, 20); L6.setBounds(270, 190, 200, 20); L7.setBounds(270, 220, 200, 20); L30.setBounds(270, 240, 200, 20); L31.setBounds(270, 260, 200, 20); L32.setBounds(270, 280, 200, 20); L33.setBounds(270, 300, 200, 20); L34.setBounds(270, 320, 200, 20); L35.setBounds(270, 340, 200, 20); L36.setBounds(270, 360, 200, 20); L37.setBounds(270, 380, 200, 20); L38.setBounds(270, 400, 200, 20); L8.setBounds(220, 430, 300, 20); L40.setBounds(220,452, 300, 20); L13.setBounds(120, 100, 175, 20); L12.setBounds(120, 70, 175, 20); L14.setBounds(120, 130, 175, 20); L15.setBounds(120, 160, 175, 20); L16.setBounds(120, 190, 175, 20); L17.setBounds(170, 300, 175, 20); L18.setBounds(170, 440, 175, 20); No21.setBounds(270, 100, 100, 20); L22.setBounds(270, 70, 117, 20); SearchB.setBounds(390, 100, 80, 20); SearchB1.setBounds(390,70, 80, 20); B1.setBounds(370, 100, 16, 10); B2.setBounds(370, 110, 16, 10); UpdateB.setBounds(150, 500, 100, 20); BackB.setBounds(390, 500, 100, 20); AddB.setBounds(270, 500, 100, 20); c.add(L12); c.add(L13); c.add(L14); c.add(L15); c.add(L16); c.add(L17); c.add(L18); c.add(UpdateB); c.add(BackB); c.add(SearchB); c.add(AddB); c.add(SearchB1); c.add(B1); c.add(B2); c.add(L1); c.add(L4); c.add(L5); c.add(L6); c.add(L7); c.add(L8); c.add(L30); c.add(L31); c.add(L32); c.add(L33); c.add(L34); c.add(L35); c.add(L36); c.add(L37); c.add(L38); c.add(L40); c.add(No21); c.add(L22); SearchB.addActionListener(this); SearchB1.addActionListener(this); B1.addActionListener(this); B2.addActionListener(this); UpdateB.addActionListener(this); BackB.addActionListener(this); AddB.addActionListener(this); } [/QUOTE]
Insert quotes…
Verification
Hath warak paha keeyada? (hatha wadikireema paha)
Post reply
Top
Bottom