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 26 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
Great answer, keep it coming :)


meow1234

  • Member
  • Posts: 333
Reply 3 on: Yesterday
Gracias!

 

Did you know?

Before a vaccine is licensed in the USA, the Food and Drug Administration (FDA) reviews it for safety and effectiveness. The CDC then reviews all studies again, as well as the American Academy of Pediatrics and the American Academy of Family Physicians. Every lot of vaccine is tested before administration to the public, and the FDA regularly inspects vaccine manufacturers' facilities.

Did you know?

To combat osteoporosis, changes in lifestyle and diet are recommended. At-risk patients should include 1,200 to 1,500 mg of calcium daily either via dietary means or with supplements.

Did you know?

Eating carrots will improve your eyesight. Carrots are high in vitamin A (retinol), which is essential for good vision. It can also be found in milk, cheese, egg yolks, and liver.

Did you know?

People with alcoholism are at a much greater risk of malnutrition than are other people and usually exhibit low levels of most vitamins (especially folic acid). This is because alcohol often takes the place of 50% of their daily intake of calories, with little nutritional value contained in it.

Did you know?

Alcohol acts as a diuretic. Eight ounces of water is needed to metabolize just 1 ounce of alcohol.

For a complete list of videos, visit our video library