473,473 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Help on swing ans basic funda

12 New Member
Which layout manager honours the preferd component size .
1 Border layout
2 card layout
3 grid layout
4 flow layout

In strt which condition would be no robust for making null poinet exception correct 3 answer.
if( i! = null) | (str == i.length()) .
if (i ! = null ) || (str == i.length()).
if ( i == null) | (str == i.length()) .
if (i == null ) || (str== i.length()).
Jul 14 '07 #1
3 1111
JosAH
11,448 Recognized Expert MVP
Which layout manager honours the preferd component size .
1 Border layout
2 card layout
3 grid layout
4 flow layout
Read all about it in the Java API docs for those LayoutManagers.

In strt which condition would be no robust for making null poinet exception correct 3 answer.
if( i! = null) | (str == i.length()) .
if (i ! = null ) || (str == i.length()).
if ( i == null) | (str == i.length()) .
if (i == null ) || (str== i.length()).
I don't know what a 'strt' or 'poinet' are. Check out the Java Articles section for
the 'index' article. At the end of that article you find extremely useful links to a
lot of of Sun's Java documentation.

kind regards,

Jos

ps. before you post your article, please press the 'Preview Post' button first so
you can see what your article actually looks like and it allows you to correct
your typos.
Jul 14 '07 #2
emekadavid
46 New Member
the fourth option is the only one we are not certain it will throw a null pointer. Here:
first option, if the first operand is true, the expression following if is evaluated, if false a null pointer is thrown.
Second option, if first operand is true, the expression following if is evaluated, if false a null pointer is thrown.
Third option, if first operand is true, a null pointer is thrown, if false second operand is evaluated.
Fourth option, if first operand is true, then evaluate the expression that follows if if false then evaluate the second operand. No possibility of null pointer being thrown here.
Jul 16 '07 #3
JosAH
11,448 Recognized Expert MVP
the fourth option is the only one we are not certain it will throw a null pointer. Here:
first option, if the first operand is true, the expression following if is evaluated, if false a null pointer is thrown.
Second option, if first operand is true, the expression following if is evaluated, if false a null pointer is thrown.
Third option, if first operand is true, a null pointer is thrown, if false second operand is evaluated.
Fourth option, if first operand is true, then evaluate the expression that follows if if false then evaluate the second operand. No possibility of null pointer being thrown here.
Great; you just did someone else's homework. Do you think spoonfeeding like
this would help? Please don't do that anymore.

kind regards,

Jos
Jul 16 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ney André de Mello Zunino | last post by:
Hello. I have decided to look again at Java after a *really* long break. While browsing through the Swing tutorials , I noticed that the basic skeleton of the demo applications had something...
4
by: Tom Nunamaker | last post by:
Greetings, I have the follow table structure: CREATE TABLE . ( (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , NOT NULL , (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
2
by: jhhbr549 | last post by:
I need my result to print out only in the box created with a scroll bar. It has to look like this. The Twelve Days of It by John H. Howard On the First day of It My true LOVE of Computers...
0
by: PieMan2004 | last post by:
Greetings, Ive came across problems while doing a tutorial work piece. i've to design a toobar ( yup a JToolBar ) with 5 buttons inside it, that will do certain functions for a JSlider.( set...
1
by: lucky29105 | last post by:
I am at my wits end here- I have an assignment due today (05/11) and I still cannot compile. I am getting 14 errors! I don't want someone to do my work, but I need help, I am stuck. Here is the...
0
nomad
by: nomad | last post by:
I made a simple GUI program in which I want to place a .gif into a button. I did this but the .gif does not show up. The load.gif is in the same package (chapter 10) as the project. If I take these...
7
helpwithcode
by: helpwithcode | last post by:
Hi people, I am just learning java.I have been creating a project which involves JDBC Connectivity.I find that the statements, String string_dob=text_dob.getText(); //Converting string to...
1
by: twin2003 | last post by:
need help with inventory part 5 here is what I have to do Modify the Inventory Program by adding a button to the GUI that allows the user to move to the first item, the previous item, the next...
1
by: taishin | last post by:
so far i got this... but the shapes that i created i need to be able to click and dragg and move around with the mouse..help!!!! and also some where here i need to draw and equal sided triangle ...
1
by: flg22 | last post by:
Hi I am working on this Rock, paper, scissors java game and the program works, but I can not figure out how to get the images to load onto the program. So my question is how do I get the images to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.