SlideShare a Scribd company logo
1 of 30
T0
Toward a class to handle putting a scrolling body of text
In a Java Swing Application
Part of the Series:
Look Ma: No LayoutManager
TP.pptx
TP.java
TP
JTextArea TextArea
TP.pptx
TP.java
TP
1. Declaration of pointer to the Control
ControlType V
JTextArea RT; TextArea TA;
V = new ControlType()
TA = new TextArea
(B.toString(),
NORows,maxLL);
RT = new JTextArea (NORows,maxLL);
static String [] JT = new
String [] {
"ONE True --- ONE ONE
----- ONE True ----- ONE
True ---- ONE True",
"TWO True --- TWO TWO
----- TWO True ----- TWO
True ---- TWO True",
"THREE True --- THREE
THREE ----- THREE True ----
- THREE True ---- THREE
True",
"FOUR True --- FOUR
FOUR ----- FOUR True -----
FOUR True ---- FOUR True"
};
StringBuffer B;
B = new StringBuffer();
for (i=0;i<JT.length;i++){
B.append(JT[i]);
B.append ('n');
}
RT.setText(B.toString());
TA = new TextArea
(B.toString(),NORows,maxLL);
StringBuffer B;
B = new StringBuffer();
for (i=0;i<JT.length;i++){
B.append(JT[i]);
B.append ('n');
}
StringBuffer B;
B = new StringBuffer();
for (i=0;i<JT.length;i++){
B.append(JT[i]);
B.append ('n');
}
StrStringBuffer B;
B = new StringBuffer();
for (i=0;i<JT.length;i++){
B.append(JT[i]);
if (i!=JT.length-1){B.append ('n');}
}
String B;
B = new String();
for (i=0;i<JT.length;i++){
B = B + (JT[i]) + ‘n’;
}
O ( JT.length) 2
RT = new JTextArea (NORows,maxLL);
RT.setText(B.toString());
A B C
D E
G H I F
J L K M
P N Q O
P N
X
JT
maxLL
NOROWS 5
5
static Font SF;
static FontMetrics SFM;
static Graphics C;
SF = new Font ("Arial",Font.BOLD,12);
SFM = f.getFontMetrics(SF);
static Font SF;
static FontMetrics SFM;
static Graphics C;
SF = new Font ("Arial",Font.BOLD,12);
SFM = f.getFontMetrics(SF);
L = JT[i];
Rectangle2D WR = SFM.getStringBounds (L,C);
W= (int)WR.getWidth(););
if (W>maxLW) maxLW = W;
A B C
D E
G H I F
J L K M
P N Q O
P N
X
JT
int NORows = JT.length;
int height = SFM.getHeight();
int H = NORows*height;
That is six lines * the number of pixels in
V . setSize( width , height )
TA . Setsize ( 100 ,50 );
Step Three
V . setSize( width , height )
TA . Setsize ( 100 ,50 );
Step Three
V . setSize( width , height )
TA . Setsize ( 100 ,50 );
Step Three
Step Four
V . setLocation( x-pos , y-pos )
TA . setLocation( 50 ,200 );
Step Five
Frame.getContentPane().Add( V )
Frame.getContentPane().Add( TA )
Back to our Java Swing JTextArea
JScrollPane J;
J = new JScrollPane(RT);
J = new JScrollPane();
J.setSize(100,50);
J.setLocation(50,50);
JViewport V;
V =
(JViewport)J.getViewport();
V.add(RT);
V . setSize( width , height )
J . Setsize ( 100 ,50 );
Step Three
Step Four
V . setLocation( x-pos , y-pos )
J . setLocation( 50 ,50 );
RT.setForeground(Color.black);
RT.setFont(SF);
Step Five
Frame.getContentPane().Add( V )
Frame.getContentPane().Add( J )
Step Five
Frame.getContentPane().Add( V )
Frame.getContentPane().Add( J )
Step Five
Frame.getContentPane().Add( V )
Frame.getContentPane().Add( J )
T1.pptx
T1.java
T1

More Related Content

What's hot

Day 6 relatedratesday1
Day 6 relatedratesday1Day 6 relatedratesday1
Day 6 relatedratesday1jbianco9910
 
Little o and little omega
Little o and little omegaLittle o and little omega
Little o and little omegaRajesh K Shukla
 
Turing Machine
Turing MachineTuring Machine
Turing MachineRajendran
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notationsMamta Pandey
 
高いChurn耐性と検索性能を持つキー順序保存型構造化オーバレイネットワークSuzakuの提案と評価
高いChurn耐性と検索性能を持つキー順序保存型構造化オーバレイネットワークSuzakuの提案と評価高いChurn耐性と検索性能を持つキー順序保存型構造化オーバレイネットワークSuzakuの提案と評価
高いChurn耐性と検索性能を持つキー順序保存型構造化オーバレイネットワークSuzakuの提案と評価Kota Abe
 
Automata theory -Conversion of ε nfa to nfa
Automata theory -Conversion of ε nfa to nfaAutomata theory -Conversion of ε nfa to nfa
Automata theory -Conversion of ε nfa to nfaAkila Krishnamoorthy
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notationsEhtisham Ali
 
Automata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA ConversionAutomata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA ConversionAkila Krishnamoorthy
 
Asymptotic Notations
Asymptotic NotationsAsymptotic Notations
Asymptotic NotationsRishabh Soni
 
2Bytesprog2 course_2014_c6_single linked list
2Bytesprog2 course_2014_c6_single linked list2Bytesprog2 course_2014_c6_single linked list
2Bytesprog2 course_2014_c6_single linked listkinan keshkeh
 
Automata theory - NFA to DFA Conversion
Automata theory - NFA to DFA ConversionAutomata theory - NFA to DFA Conversion
Automata theory - NFA to DFA ConversionAkila Krishnamoorthy
 
periodic functions and Fourier series
periodic functions and Fourier seriesperiodic functions and Fourier series
periodic functions and Fourier seriesUmang Gupta
 
5. fourier properties
5. fourier properties5. fourier properties
5. fourier propertiesskysunilyadav
 
Weka วิเคราะห์ 55102011029
Weka วิเคราะห์ 55102011029Weka วิเคราะห์ 55102011029
Weka วิเคราะห์ 55102011029so_so37
 

What's hot (20)

Day 6 relatedratesday1
Day 6 relatedratesday1Day 6 relatedratesday1
Day 6 relatedratesday1
 
Little o and little omega
Little o and little omegaLittle o and little omega
Little o and little omega
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Big omega
Big omegaBig omega
Big omega
 
Mid term solution
Mid term solutionMid term solution
Mid term solution
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notations
 
高いChurn耐性と検索性能を持つキー順序保存型構造化オーバレイネットワークSuzakuの提案と評価
高いChurn耐性と検索性能を持つキー順序保存型構造化オーバレイネットワークSuzakuの提案と評価高いChurn耐性と検索性能を持つキー順序保存型構造化オーバレイネットワークSuzakuの提案と評価
高いChurn耐性と検索性能を持つキー順序保存型構造化オーバレイネットワークSuzakuの提案と評価
 
Automata theory -Conversion of ε nfa to nfa
Automata theory -Conversion of ε nfa to nfaAutomata theory -Conversion of ε nfa to nfa
Automata theory -Conversion of ε nfa to nfa
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notations
 
Automata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA ConversionAutomata theory - NFA ε to DFA Conversion
Automata theory - NFA ε to DFA Conversion
 
Asymptotic Notations
Asymptotic NotationsAsymptotic Notations
Asymptotic Notations
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notations
 
Reconstruction
ReconstructionReconstruction
Reconstruction
 
2Bytesprog2 course_2014_c6_single linked list
2Bytesprog2 course_2014_c6_single linked list2Bytesprog2 course_2014_c6_single linked list
2Bytesprog2 course_2014_c6_single linked list
 
Automata theory - NFA to DFA Conversion
Automata theory - NFA to DFA ConversionAutomata theory - NFA to DFA Conversion
Automata theory - NFA to DFA Conversion
 
periodic functions and Fourier series
periodic functions and Fourier seriesperiodic functions and Fourier series
periodic functions and Fourier series
 
BFS PA4
BFS PA4BFS PA4
BFS PA4
 
5. fourier properties
5. fourier properties5. fourier properties
5. fourier properties
 
Weka วิเคราะห์ 55102011029
Weka วิเคราะห์ 55102011029Weka วิเคราะห์ 55102011029
Weka วิเคราะห์ 55102011029
 
Laplace
LaplaceLaplace
Laplace
 

Similar to T0

I have this Koch Python code but isnt working. Can some please revi.pdf
I have this Koch Python code but isnt working. Can some please revi.pdfI have this Koch Python code but isnt working. Can some please revi.pdf
I have this Koch Python code but isnt working. Can some please revi.pdfpratyushraj61
 
Egor Bogatov - .NET Core intrinsics and other micro-optimizations
Egor Bogatov - .NET Core intrinsics and other micro-optimizationsEgor Bogatov - .NET Core intrinsics and other micro-optimizations
Egor Bogatov - .NET Core intrinsics and other micro-optimizationsEgor Bogatov
 
Postgresql 9.3 overview
Postgresql 9.3 overviewPostgresql 9.3 overview
Postgresql 9.3 overviewAveic
 
014 TUPLES.pdf
014 TUPLES.pdf014 TUPLES.pdf
014 TUPLES.pdfamman23
 

Similar to T0 (7)

I have this Koch Python code but isnt working. Can some please revi.pdf
I have this Koch Python code but isnt working. Can some please revi.pdfI have this Koch Python code but isnt working. Can some please revi.pdf
I have this Koch Python code but isnt working. Can some please revi.pdf
 
T4
T4T4
T4
 
Egor Bogatov - .NET Core intrinsics and other micro-optimizations
Egor Bogatov - .NET Core intrinsics and other micro-optimizationsEgor Bogatov - .NET Core intrinsics and other micro-optimizations
Egor Bogatov - .NET Core intrinsics and other micro-optimizations
 
Postgresql 9.3 overview
Postgresql 9.3 overviewPostgresql 9.3 overview
Postgresql 9.3 overview
 
014 TUPLES.pdf
014 TUPLES.pdf014 TUPLES.pdf
014 TUPLES.pdf
 
CHAPTER 5
CHAPTER 5CHAPTER 5
CHAPTER 5
 
Simpler java
Simpler javaSimpler java
Simpler java
 

More from LaurenceLLeffLeff (6)

T
TT
T
 
T3
T3T3
T3
 
T2
T2T2
T2
 
T1
T1T1
T1
 
Tp
TpTp
Tp
 
Tfd
TfdTfd
Tfd
 

Recently uploaded

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 

Recently uploaded (20)

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 

T0

  • 1. T0 Toward a class to handle putting a scrolling body of text In a Java Swing Application Part of the Series: Look Ma: No LayoutManager TP.pptx TP.java TP
  • 2.
  • 4. TP.pptx TP.java TP 1. Declaration of pointer to the Control ControlType V JTextArea RT; TextArea TA; V = new ControlType() TA = new TextArea (B.toString(), NORows,maxLL); RT = new JTextArea (NORows,maxLL);
  • 5. static String [] JT = new String [] { "ONE True --- ONE ONE ----- ONE True ----- ONE True ---- ONE True", "TWO True --- TWO TWO ----- TWO True ----- TWO True ---- TWO True", "THREE True --- THREE
  • 6. THREE ----- THREE True ---- - THREE True ---- THREE True", "FOUR True --- FOUR FOUR ----- FOUR True ----- FOUR True ---- FOUR True" };
  • 7.
  • 8. StringBuffer B; B = new StringBuffer(); for (i=0;i<JT.length;i++){ B.append(JT[i]); B.append ('n'); } RT.setText(B.toString()); TA = new TextArea (B.toString(),NORows,maxLL);
  • 9. StringBuffer B; B = new StringBuffer(); for (i=0;i<JT.length;i++){ B.append(JT[i]); B.append ('n'); }
  • 10. StringBuffer B; B = new StringBuffer(); for (i=0;i<JT.length;i++){ B.append(JT[i]); B.append ('n'); }
  • 11. StrStringBuffer B; B = new StringBuffer(); for (i=0;i<JT.length;i++){ B.append(JT[i]); if (i!=JT.length-1){B.append ('n');} }
  • 12. String B; B = new String(); for (i=0;i<JT.length;i++){ B = B + (JT[i]) + ‘n’; } O ( JT.length) 2
  • 13. RT = new JTextArea (NORows,maxLL); RT.setText(B.toString());
  • 14. A B C D E G H I F J L K M P N Q O P N X JT maxLL NOROWS 5 5
  • 15. static Font SF; static FontMetrics SFM; static Graphics C; SF = new Font ("Arial",Font.BOLD,12); SFM = f.getFontMetrics(SF);
  • 16. static Font SF; static FontMetrics SFM; static Graphics C; SF = new Font ("Arial",Font.BOLD,12); SFM = f.getFontMetrics(SF); L = JT[i]; Rectangle2D WR = SFM.getStringBounds (L,C); W= (int)WR.getWidth();); if (W>maxLW) maxLW = W;
  • 17. A B C D E G H I F J L K M P N Q O P N X JT int NORows = JT.length; int height = SFM.getHeight(); int H = NORows*height; That is six lines * the number of pixels in
  • 18. V . setSize( width , height ) TA . Setsize ( 100 ,50 ); Step Three
  • 19. V . setSize( width , height ) TA . Setsize ( 100 ,50 ); Step Three
  • 20. V . setSize( width , height ) TA . Setsize ( 100 ,50 ); Step Three
  • 21. Step Four V . setLocation( x-pos , y-pos ) TA . setLocation( 50 ,200 );
  • 22. Step Five Frame.getContentPane().Add( V ) Frame.getContentPane().Add( TA )
  • 23. Back to our Java Swing JTextArea JScrollPane J; J = new JScrollPane(RT);
  • 24. J = new JScrollPane(); J.setSize(100,50); J.setLocation(50,50); JViewport V; V = (JViewport)J.getViewport(); V.add(RT);
  • 25. V . setSize( width , height ) J . Setsize ( 100 ,50 ); Step Three
  • 26. Step Four V . setLocation( x-pos , y-pos ) J . setLocation( 50 ,50 );
  • 28. Step Five Frame.getContentPane().Add( V ) Frame.getContentPane().Add( J )
  • 29. Step Five Frame.getContentPane().Add( V ) Frame.getContentPane().Add( J )
  • 30. Step Five Frame.getContentPane().Add( V ) Frame.getContentPane().Add( J ) T1.pptx T1.java T1