我希望我的内容置于状态栏下。我不想展示NavigationBar
。我检查了延伸边缘
"在顶级酒吧"在故事板设置中,我正面临一个问题,它无缘无故地停止工作。我可以强制ViewController/ NavigationController
内容以编程方式进入状态栏吗?
谢谢
答案 0 :(得分:-1)
private DefaultTableModel weeklyLogTableModel(ResultSet weeklyLogSet) throws SQLException
{
ResultSetMetaData metaData = weeklyLogSet.getMetaData();
Vector<String> columnNames = new Vector<String>();
int columnCount = metaData.getColumnCount();
for (int column = 1; column <= columnCount; column++)
{
columnNames.add(metaData.getColumnName(column));
}
Vector<Vector<Object>> data = new Vector<Vector<Object>>();
while (weeklyLogSet.next())
{
Vector<Object> vector = new Vector<Object>();
for (int columnIndex = 1; columnIndex <= columnCount; columnIndex++)
{
vector.add(weeklyLogSet.getObject(columnIndex));
}
data.add(vector);
}
return new DefaultTableModel(data, columnNames);
}
private void userDashboard(int userInputIdNumber)
{
jPanel1.setVisible(false);
jPanel2.setVisible(true);
jPanel3.setVisible(false);
jPanel4.setVisible(false);
try
{
//Getting Information FROM EMPLOYEE_TIME_LOG for Weekly Log
Statement weeklyLogstmt = dbConn.createStatement();
ResultSet weeklyLogSet = weeklyLogstmt.executeQuery (
"SELECT to_char(logdate,'dd-MON-yy') AS Date, adj_login_time, adj_logout_time, adj_lunch_in, adj_lunch_out, round(logduration,2) " +
"FROM employee_time_log " +
"WHERE employee_id_number = " +userInputIdNumber +" AND ROWNUM <= 10" +
"ORDER BY logdate DESC");
jTable3.setModel((TableModel)weeklyLogTableModel(weeklyLogSet));
}