Hi ..I am Sakthi..

Hi ..I am Sakthi..

View Answers

December 17, 2008 at 1:51 AM

http://www.cs.ubc.ca/local/computing/software/j2sdk-1.4.2/docs/api/overview-summary.html

follow this link u will find list of all packages that is available in java and also starts with javax. package


HEMAL RAJYAGURU

December 17, 2008 at 5:42 AM

Hi friend,


package javacode;

import javax.swing.*;
import javax.swing.JTabbedPane;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JFrame;

import java.awt.*;
import java.awt.event.*;

public class JTabbedPaneexam extends JPanel {
public JTabbedPaneexam() {
ImageIcon icon = new ImageIcon();
JTabbedPane tabbedPane = new JTabbedPane();

Component panel1 = makeTextPanel("Java Tutorial");
tabbedPane.addTab("One", icon, panel1, "Does nothing");
tabbedPane.setSelectedIndex(0);

Component panel2 = makeTextPanel("Java, JavaScript,JSP");
tabbedPane.addTab("Two", icon, panel2, "Does twice as much nothing");

Component panel3 = makeTextPanel("Java, Servlet JSP Struts2.0 ");
tabbedPane.addTab("Three", icon, panel3, "Still something else");

Component panel4 = makeTextPanel("Java, Servlet JSP Struts2.0 HTML ");
tabbedPane.addTab("Four", icon, panel4, "Now click get more title");

//Add the tabbed pane to this panel.
setLayout(new GridLayout(1, 1));
add(tabbedPane);
}

private Component makeTextPanel(String text) {
JPanel panel = new JPanel(false);
JLabel lable = new JLabel(text);
lable.setHorizontalAlignment(JLabel.CENTER);
panel.setLayout(new GridLayout(1, 1));
panel.add(lable);
return panel;
}

public static void main(String[] args) {
JFrame frame = new JFrame("Jtabbed pane example");
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e){
System.exit(0);
}
});

frame.getContentPane().add(new JTabbedPaneexam(), BorderLayout.CENTER);
frame.setSize(400, 250);
frame.setVisible(true);
}
}

---------------------------------------------

Please visit for more information.

http://www.roseindia.net/java/example/java/swing/

Thanks.









Related Tutorials/Questions & Answers:
Hi ..I am Sakthi.. - Java Beginners
Hi ..I am Sakthi..  can u tell me Some of the packages n Sub Directories starts with... import javax.swing.*; import javax._________;  ...;Hi friend, package javacode; import javax.swing.*; import
Hi da SAKTHI ..check thiz - Java Beginners
Hi da SAKTHI ..check thiz  package bio;//LEAVE IT import java.lang..../ Thanks   Hi friend, I saw your code and modified. What you want... "); } } }   Hi friend, Plz give details of "MainMenu.java
Advertisements
hi sakthi prasanna here - Java Beginners
hi sakthi prasanna here  import java.lang.*; import java.awt.*; import java.sql.*; import java.awt.Color; import java.awt.Container; import...) { e.printStackTrace(); } // TODO: handle exception }}}   Hi friend
Hi i am new to J2ee Technology and struts - Struts
Hi i am new to J2ee Technology and struts  what exatly will happen when we hit the Login button? Once we enter in to the application, what will happen. How the UserID and Password validations will done. Can any one help
ModuleNotFoundError: No module named 'will-i-am'
ModuleNotFoundError: No module named 'will-i-am'  Hi, My Python... 'will-i-am' How to remove the ModuleNotFoundError: No module named 'will-i-am' error? Thanks   Hi, In your python environment you
I am getting this exception
I am getting this exception   Exception in thread "main" org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java
:( I am not getting Problem (RMI)
I am not getting Problem (RMI)  When i am excuting RMI EXAMPLE 3,2 I am getting error daying nested exception and Connect Exception  
ModuleNotFoundError: No module named 'i-am-malicious'
ModuleNotFoundError: No module named 'i-am-malicious'  Hi, My... named 'i-am-malicious' How to remove the ModuleNotFoundError: No module named 'i-am-malicious' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'Sam_I_Am'
ModuleNotFoundError: No module named 'Sam_I_Am'  Hi, My Python..._I_Am' How to remove the ModuleNotFoundError: No module named 'Sam_I_Am... to install padas library. You can install Sam_I_Am python with following
ModuleNotFoundError: No module named 'Sam_I_Am'
ModuleNotFoundError: No module named 'Sam_I_Am'  Hi, My Python..._I_Am' How to remove the ModuleNotFoundError: No module named 'Sam_I_Am... to install padas library. You can install Sam_I_Am python with following
ModuleNotFoundError: No module named 'i-am-malicious'
ModuleNotFoundError: No module named 'i-am-malicious'  Hi, My... named 'i-am-malicious' How to remove the ModuleNotFoundError: No module named 'i-am-malicious' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'i-am-utils'
ModuleNotFoundError: No module named 'i-am-utils'  Hi, My Python...-am-utils' How to remove the ModuleNotFoundError: No module named 'i-am... have to install padas library. You can install i-am-utils python
i am getting multiple values in listbox
i am getting multiple values in listbox   hi sir, i am using... table group by stuname) order by a.name in a subquery multiple recdates i am getting its working fine, but in main query also i am getting multiple name
I am from .net background, I want to learn SOA.
I am from .net background, I want to learn SOA.  Hi I am from .net background, I want to learn SOA. Could it possible for me to learn SOA, I suppose SOA includes Java. I dont have knowledge of java. Please help Thanks  
i am Getting Some errors in Struts - Struts
i am Getting Some errors in Struts   I am Learning Struts Basics,I am Trying examples do in this Site Examples.i am getting lot of errors.Please Help me
I am new to ML/AI. Where do I start learning?
I am new to ML/AI. Where do I start learning?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: I am new to ML/AI. Where do I start learning? Try to provide me good
I am Java programmer. Should I learn Java Script or Python?
I am Java programmer. Should I learn Java Script or Python?  Hi, I learned Core Java and Advanced Java. What should I learn next? I am Java programmer. Should I learn Java Script or Python? Thanks   Hi, Actually
Hi
Hi  Hi All, I am new to roseindia. I want to learn struts. I do not know anything in struts. What exactly is struts and where do we use it. Please help me. Thanks in advance. Regards, Deepak
i am getting the problem when i am downloading the pdf file from oracle 10g database - Struts
i am getting the problem when i am downloading the pdf file from oracle 10g database  if i created the pdf file from pdf machine,it is storing into datbase and download the pdf file from database. but when i created the pdf file
hi .. need help ASAP ..i have a project buit in eclipse , i have installed jasper. i want the steps to work on it ..
hi .. need help ASAP ..i have a project buit in eclipse , i have installed jasper. i want the steps to work on it ..   hi .. need help ASAP ..i have a project buit in eclipse , i have installed jasper. i want the steps to work
Find a project or skill I am interested in learning
Find a project or skill I am interested in learning  Hi, I am... = window.adsbygoogle || []).push({}); Thanks   Hi, I am giving you... about. However, I have a pretty good grasp on most of the stuff that comes out
I am beginner and want to learn Java fast
I am beginner and want to learn Java fast  Hi, I am a beginner in Java and want to learn it quickly. Which is the best tutorials on roseindia.net to learn it fast? Thanks   Hi, In the first place java you should know
I am beginner and want to learn Java fast
I am beginner and want to learn Java fast  Hi, I am a beginner in Java and want to learn it quickly. Which is the best tutorials on roseindia.net to learn it fast? Thanks   Hi, In the first place java you should know
hi
online multiple choice examination  hi i am developing online multiple choice examination for that i want to store questions,four options,correct answer in a xml file using jsp or java?can any one help me?   Please
Hi i want java code that diaplays server scren at the client side
Hi i want java code that diaplays server scren at the client side  Hi I'm Shivaprasad i want java socket code that shows the server side screen when client gets connected with the server. Please help me   Please visit
i am unable to identify the error in my code
i am unable to identify the error in my code  class Program { public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter
i am unable to identify the error in my code
i am unable to identify the error in my code  class Program { public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter
hi.. i hv few error. pls. - Java Beginners
hi.. i hv few error. pls.  hi sir, i have few error. can u pls help...(""); System.out.println("\t "+title[i]+"\t"+author[i]+"\t\t"+publisher[i]+"\t\t"+quantity[i]+"\t\t"+price[i]); break
I am getting error.How can i get details
I am getting error.How can i get details  Exception in thread "main" java.sql.SQLException: Listener refused the connecti n with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect
How do I start machine learning with Python? What should I do if I am a beginner?
How do I start machine learning with Python? What should I do if I am a beginner?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: How do I start machine learning
hi
hi   i want to develop a online bit by bit examination process as part of my project in this i am stuck at how to store multiple choice questions options and correct option for the question.this is the first project i am doing
Am i convetrting the code right ? - Java Beginners
Am i convetrting the code right ?  C# private void button... (IOException ex) { }// i also tried the code below// try... (PortInUseException ex) { } I have a device on the serial port which has
hi i m new to hibernate..plzzzzzzzzzzzzzz help me.... - Hibernate
hi i m new to hibernate..plzzzzzzzzzzzzzz help me....  hi friends i m new to hibernate..& i m stuck in one positon in my pgm.. its a simple select...://www.roseindia.net/hibernate/selectclause.shtml Thanks.  hi deepak.. when i
Hi
Hi   I need some help I've got my java code and am having difficulty to spot what errors there are is someone able to help import java.util.Scanner; public class Post { public static void main(String[] args) { Scanner sc
hi
hi   I have connected mysql with jsp in linux and i have used JDBC connectivity but when i run the program, its not working the program is displaying
Not sure what I am missing ? Any ideas?
Not sure what I am missing ? Any ideas?  import java.util.*; public...) { if(str.length()==0) return false; for(int i=0;i<str.length();i++) if (c==str.charAt(i)); return true
hi
storing data in xml file using jsp  hi i am storing data in xml file using jsp.in this when i enter data into xml file i am getting xml declaration for each specified data?can any one help me to prevent this?   <
hi
num=4; int p = num; int q = 0; for (int i = 0; i <= num; i++) { for (int j = p; j>= 1; j-- ) System.out.print(" "); p-=1; for (int k = 1; k <= i; k... * * * * * * * * * *print("code sample");   Hi Friend, Try
hi
hi   on clicking on button on 1st jsp page i want to display following options like friends,family,doctor etc.on next jsp page and also i want link to those options through which i can save the data from 1st jsp in different
hi
hi   on clicking on button on 1st jsp page i want to display following options like friends,family,doctor etc.on next jsp page and also i want link to those options through which i can save the data from 1st jsp in different
Hi
Hi  I want import txt fayl java.please say me...   Hi, Please clarify your problem! Thanks
Hi
Hi   I have got this code but am not totally understanding what the errors. Could someone Please help. Thanks in advance! import java.util.Random; import java.util.Scanner; private static int nextInt() { public class
I am new to programming and I am not sure what to do next? Any ideas?
I am new to programming and I am not sure what to do next? Any ideas? ...()==0) return false; for(int i=0;i<=str.length();i++) if (c==str.charAt(i)); return true; } // If userInputs
hi!
hi!  how can i write aprogram in java by using scanner when asking... to to enter, like(int,double,float,String,....) thanx for answering....   Hi...); System.out.print("Enter integer: "); int i=input.nextInt
hi.......
hi.......  i've a project on railway reservation... i need to connect netbeans and mysql with the help of jdbc driver... then i need to design the frame... aftr clickg run i need to enter data to ma frame and the data which i
I am having problem with configuring Hibernate sessionfactory. Please Help
I am having problem with configuring Hibernate sessionfactory. Please Help  Sir, I am having problem with configuring Hibernate sessionfactory.. I was using the old version of Hibernate before now I am using Hibernate 4
hi
hi  sir i've a project on railway reservation... i need to connect netbeans and mysql with the help of jdbc driver... then i need to design the frame... aftr clickg run i need to enter data to ma frame and the data which i enter
hi
hi  sir i've a project on railway reservation... i need to connect netbeans and mysql with the help of jdbc driver... then i need to design the frame... aftr clickg run i need to enter data to ma frame and the data which i enter
How do I start machine learning if I am a beginner in the programming language?
How do I start machine learning if I am a beginner in the programming language?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: How do I start machine learning if I am
hi
hi  how i get answer of my question which is asked by me for few minutes ago.....rply

Ads