Question

Can someone tell me what's wrong with this code? //The panel variable references a JPanel object....

Can someone tell me what's wrong with this code?

//The panel variable references a JPanel object.

The intention of the following statement is to create a titled border around panel:

panel.setBorder(new BorderFactory("Choices"));

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

you need to use this satement for running the code and making a titled border around the panel:

setBorder(BorderFactory.createTitledBorder(tttl)

Add a comment
Know the answer?
Add Answer to:
Can someone tell me what's wrong with this code? //The panel variable references a JPanel object....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1.1 The variable panel references a JPanelobject.The variable bGroup references a ButtonGroupobject,which contains several button components....

    1.1 The variable panel references a JPanelobject.The variable bGroup references a ButtonGroupobject,which contains several button components. If you want to add the buttons to the panel.. A) add each button to panel one at a time, e.g. panel.add(buttonl); B) use the statement, panel.add(bGroup); C) use the statement, bGroup.add(panel); D) use the statement, Panel panel new Panel(bGroup); Ans: 1.2. To click the JRadioButton referenced by radio, write the following code. A) radio.Click0 B) radio.doClick0: C) Click(radio); D) Click(radio, true); Ans: 1.3....

  • Can someone tell me what's wrong woth this? 2. 0/5.88 points Previous Answers ChangE7 9.E.033. D...

    Can someone tell me what's wrong woth this? 2. 0/5.88 points Previous Answers ChangE7 9.E.033. D My Notes Ask Your Teache List the following bonds in order of increasing lonic character. (Enter your answer in the format H-0 for the hydrogen-to-oxygen bond in HyO. Use the apprepriate <, -, or > symbol to separate substances in the list.) the lthium-to-fuorine bond in LU-F the potassium-to-exygen bond in Ko the nitrogen-to-nitregen bond in N the lodine-to-oxygen bond in 10 the potassium-to-bromine...

  • Can someone help me and tell me which ones are wrong and if they are wrong...

    Can someone help me and tell me which ones are wrong and if they are wrong can you tell me which is the correct answer please!!! i will forever be grateful <3 How does AC in OE relate to DF in OF? A D F NE В Н C AC is congruent to DF AC is two times longer than DF AC is three times shorter than DF AC is four times longer than DF Given that IG LFT, which...

  • can someone tell me what I did wrong please? thanks kecetakeAssignmentSessionLocator=assignment-take (References) [Review Topics) For each...

    can someone tell me what I did wrong please? thanks kecetakeAssignmentSessionLocator=assignment-take (References) [Review Topics) For each of the species below, identify any cyclic conjugated system, then: A. Determine the number of electrons in a system of cyclic conjugation (zero if no cyclic conjugation). B. Specify whether the species is "a"-aromatic, "aa"-anti-aromatic, or "na"-non-aromatic (neither aromatic nor anti-aromatic). (Presume rings to be planar unless structure obviously prevents planarity. If there is more than one conjugated ring, count electro the largest.) COCHE...

  • What's wrong with the following code? myCar['make'] = 'Ford'; myCar.model = 'Mustang'; myCar['year'] = 1969; alert(myCar.year);...

    What's wrong with the following code? myCar['make'] = 'Ford'; myCar.model = 'Mustang'; myCar['year'] = 1969; alert(myCar.year); Properties have to be accessed using brackets, not dot notation Properties have to be accessed using dot notation, not brackets It's missing var myCar = new Object(); Properties can be accessed using brackets or dot notation, but you can't mix the two

  • JAVA Hello I am trying to add a menu to my Java code if someone can...

    JAVA Hello I am trying to add a menu to my Java code if someone can help me I would really appreacite it thank you. I found a java menu code but I dont know how to incorporate it to my code this is the java menu code that i found. import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.ButtonGroup; import javax.swing.JCheckBoxMenuItem; import javax.swing.JFrame; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JRadioButtonMenuItem; public class MenuExp extends JFrame { public MenuExp() { setTitle("Menu Example");...

  • Can someone please tell me what each of these equations is for in ecological biology and...

    Can someone please tell me what each of these equations is for in ecological biology and what each variable in every equation stands for? In(Ro) lmx ?4m, Ro 0

  • Hello, can someone please tell me how I got this wrong? the system keeps telling me...

    Hello, can someone please tell me how I got this wrong? the system keeps telling me the "Accumulated depreciation" amount totals to $62,000 and saying the total is incorrect, as well as the total for "total property, plant, and equipment total" that's $338,00.00 Any feedback on how to solve this will help! Taser Consulting Score: 130/139 Balance Sheet October 31, 2018 Assets Current assets: Cash Accounts receivable $45,000.00 119.200.00 4,400.00 Supplies Total current assets $168,600.00 Property, plant, and equipment: Office...

  • Im stuck. can someone please show me code on how i can make text appear on...

    Im stuck. can someone please show me code on how i can make text appear on html canvas. i want to create a form where someone for example put their name and when submit button is clicked on the form it appear on the canvas. i am using html javascript. please show code for javascript, canvas, and html. please let me know if im not making sense. Thank you

  • can someone tell me what i did wrong ? A high-speed lifting mechanism supports a(n) 700-kg...

    can someone tell me what i did wrong ? A high-speed lifting mechanism supports a(n) 700-kg object with a steel cable that is 36.0 m long and 4.00 cm? in cross-sectional area. (a) Determine the elongation of the cable. (Enter your answer to at least two decimal places.) 3.9 х Your response differs from the correct answer by more than 10%. Double check your calculations, mm (b) By what additional amount does the cable increase in length if the object...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT