Jump to content

samona

Members
  • Posts

    232
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

samona's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. That made no difference. What I ended up doing is setting the column size. I can't make out the table's data on the screen now, but at least it prints the way i want it. However, it would be nice if I could adjust the print size without affecting the window on the screen.
  2. I want to change the actual table width and height to be smaller for printing purposes. I want the table as a whole to be smaller. Right now for printing I have FIT_WIDTH which span across the whole page, but I want the table width to span only across half the page. I looked at the link before, but nothing jumps at me as to adjusting overall table size for printing.
  3. thank you for the response. below is my cell renderer. I can only make the size of the data but not the actual table which what I want. public class MyTableCellRenderer extends javax.swing.JLabel implements javax.swing.table.TableCellRenderer { public java.awt.Component getTableCellRendererComponent( javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int rowIndex, int colIndex) { setText(value.toString()); if (value.equals(null)) { return this; } javax.swing.JLabel label = new javax.swing.JLabel(value.toString()); //label.setFont(new java.awt.Font("Helvetica Bold", java.awt.Font.PLAIN,7)); label.setVerticalAlignment(javax.swing.SwingConstants.CENTER); label.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); // System.out.println("IN RENDER"); return label; } public void validate() {} public void revalidate() {} protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {} public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) {}
  4. I need some help printing a jtable so that the table prints 50% of what the normal print size would be. Any ideas on how I can control the Jtable's print size?
  5. Anyone have an idea of why Windows 7 limits the resolution for remote desktop to 4096x2048? Is this a software limitation? Any way around it? Is there any application available that provides higher resolutions? Also, any ideas on what the maximum number of monitors one can use with Windows 7 remote desktop?
  6. Bookmarked it. Thx again!
  7. Thx! Where in the Doc?
  8. Anyone have an idea of how to sum a calculated field. I have field A and field B. I create a new field called C and that equals the sum(A, B). Now i want a grand total of field C. Any ideas?
  9. If an administrator is logged in and wishes to visit the admin pages he is required to login. However, if his login fails he is sent to the login page and his session is destroyed. Also, if a regular user attempts to login to the admin pages, his session is destroyed and he is sent back to the login page. However, if he clicks back, he is still able to get into his account. It seems as though the session isn't really destroyed. if (!$session->isAdmin()) { $session->destroySession(); header('Location: ../login.php'); exit(); } public function destroySession() { $_SESSION = array(); session_destroy(); }
  10. Hi, I want to end a session when a registered user is asked to login again but enters the incorrect credentials. I'm destroying the session and taking the user back to the login page, but for some reason when s/he clicks "back" on the browser s/he is able to get back into her/his account. Any ideas?
  11. I used another form for the admin login as fugix suggested. thx!
  12. i could do that but i figured that would be redundant. is that the best practice?
  13. Hi, I want to have a way to require an admin who is logged in to re-authenticate before he/she is allowed to view administrative pages using the same form they used to login. Any ideas?
  14. Thanks! You were right. That was the issue. I'll take your advice and put it all in the same request. thanks again!
  15. I believe youre right. However, I'm not sure why it runs the code in the isset($_POST['submit']) if statement in login.php after the redirect in processform.php. Shouldn't the $_POST array be empty at that point and the form displayed?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.