This topic contains a solution. Click here to go to the answer

Author Question: What is wrong with the following message to create a BoxLayout for the JPanel jp? jp.setLayout(new ... (Read 31 times)

xclash

  • Hero Member
  • *****
  • Posts: 681

Question 1

To take 2 borders and use one as an outer border and the other as an inner border, you would create a
◦ compound border
◦ nested border
◦ split border
◦ border factory
◦ matte border

Question 2

What is wrong with the following message to create a BoxLayout for the JPanel jp?
 jp.setLayout(new BoxLayout(BoxLayout.X_AXIS));
◦ X_AXIS is not a valid constant for BoxLayout, it should instead be HORIZONTAL
◦ Aside from X_AXIS, the constructor also requires a Dimension to determine the size of the Box
◦ Aside from X_AXIS, the constructor also needs a command regarding horizontal glue as in createHorizontalGlue( )
◦ The BoxLayout constructor is lacking a reference to the container that the BoxLayout manager will govern
◦ There is nothing wrong with it at all


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by xclash on Aug 30, 2020

nixon_s

  • Sr. Member
  • ****
  • Posts: 359
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 39% of students answer this correctly




xclash

  • Member
  • Posts: 681
Reply 2 on: Aug 30, 2020
Wow, this really help


coreycathey

  • Member
  • Posts: 333
Reply 3 on: Yesterday
:D TYSM

 

Did you know?

Elderly adults are at greatest risk of stroke and myocardial infarction and have the most to gain from prophylaxis. Patients ages 60 to 80 years with blood pressures above 160/90 mm Hg should benefit from antihypertensive treatment.

Did you know?

Studies show that systolic blood pressure can be significantly lowered by taking statins. In fact, the higher the patient's baseline blood pressure, the greater the effect of statins on his or her blood pressure.

Did you know?

Eat fiber! A diet high in fiber can help lower cholesterol levels by as much as 10%.

Did you know?

The average older adult in the United States takes five prescription drugs per day. Half of these drugs contain a sedative. Alcohol should therefore be avoided by most senior citizens because of the dangerous interactions between alcohol and sedatives.

Did you know?

Atropine was named after the Greek goddess Atropos, the oldest and ugliest of the three sisters known as the Fates, who controlled the destiny of men.

For a complete list of videos, visit our video library