Code style changes.
This commit is contained in:
@ -23,19 +23,19 @@ import java.sql.Connection;
|
||||
*/
|
||||
public interface DBOutputInterface
|
||||
{
|
||||
public void setProgressIndeterminate(boolean value);
|
||||
void setProgressIndeterminate(boolean value);
|
||||
|
||||
public void setProgressMaximum(int maxValue);
|
||||
void setProgressMaximum(int maxValue);
|
||||
|
||||
public void setProgressValue(int value);
|
||||
void setProgressValue(int value);
|
||||
|
||||
public void setFrameVisible(boolean value);
|
||||
void setFrameVisible(boolean value);
|
||||
|
||||
public void appendToProgressArea(String text);
|
||||
void appendToProgressArea(String text);
|
||||
|
||||
public Connection getConnection();
|
||||
Connection getConnection();
|
||||
|
||||
public int requestConfirm(String title, String message, int type);
|
||||
int requestConfirm(String title, String message, int type);
|
||||
|
||||
public void showMessage(String title, String message, int type);
|
||||
void showMessage(String title, String message, int type);
|
||||
}
|
||||
|
@ -174,13 +174,13 @@ public class DBDumper
|
||||
fws.print(", ");
|
||||
}
|
||||
|
||||
if (dset.getString(i) == null)
|
||||
if (dset.getString(i) != null)
|
||||
{
|
||||
fws.print("NULL");
|
||||
fws.print("'" + dset.getString(i).replace("\'", "\\\'") + "'");
|
||||
}
|
||||
else
|
||||
{
|
||||
fws.print("'" + dset.getString(i).replace("\'", "\\\'") + "'");
|
||||
fws.print("NULL");
|
||||
}
|
||||
isInFirst = false;
|
||||
}
|
||||
|
@ -116,13 +116,10 @@ public class SpringUtilities
|
||||
lastRowCons = lastCons;
|
||||
cons.setX(initialXSpring);
|
||||
}
|
||||
else
|
||||
// x position depends on previous component
|
||||
else if (lastCons != null)
|
||||
{
|
||||
// x position depends on previous component
|
||||
if (lastCons != null)
|
||||
{
|
||||
cons.setX(Spring.sum(lastCons.getConstraint(SpringLayout.EAST), xPadSpring));
|
||||
}
|
||||
cons.setX(Spring.sum(lastCons.getConstraint(SpringLayout.EAST), xPadSpring));
|
||||
}
|
||||
|
||||
if ((i / cols) == 0)
|
||||
@ -130,13 +127,10 @@ public class SpringUtilities
|
||||
// first row
|
||||
cons.setY(initialYSpring);
|
||||
}
|
||||
else
|
||||
// y position depends on previous row
|
||||
else if (lastRowCons != null)
|
||||
{
|
||||
// y position depends on previous row
|
||||
if (lastRowCons != null)
|
||||
{
|
||||
cons.setY(Spring.sum(lastRowCons.getConstraint(SpringLayout.SOUTH), yPadSpring));
|
||||
}
|
||||
cons.setY(Spring.sum(lastRowCons.getConstraint(SpringLayout.SOUTH), yPadSpring));
|
||||
}
|
||||
lastCons = cons;
|
||||
}
|
||||
|
Reference in New Issue
Block a user