How can I Maximize a Windows and include a check box into my jtable

Hi there,
I have made a program to show a JTABLE it is working well, I'm talking about show information(DATA), my question is related with MAXIMIZE my jframe or window, how can I do that???
other question is related with include or add a new column to my jtable, the goal here is achive include a check box column to select a recorde from my jtable..
Some advise...
here is part of my code
public static void main(String args[]) throws SQLException {
JFrame myFrame = new JFrame("Scan cut ");
Container content = myFrame.getContentPane();
content.setBackground(Color.white);
content.setLayout(new FlowLayout());
SendNotifyB = new JButton("Send Notify");
content.add(SendNotifyB);
//content.add(new JButton("Send Notify"));
//content.add(new JButton("Add O-S-T"));
SendNotifyB .addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
JOptionPane.showInputDialog("Type Odds");
JOptionPane.showInputDialog("Type Seconds");
myFrame.getContentPane().add(new AS3());
myFrame.setVisible(true);
myFrame.pack();

public class MyTableRenderer extends javax.swing.JCheckBox
  implements javax.swing.table.TableCellRendererand
myTable.getColumnModel().getColumn(some value).setCellRenderer(new MyTableRenderer());I'll leave the maximizing and other code up to you as an exercise.
Message was edited by:
filestream

Similar Messages

  • How can i use both Windows and Mac os at the same time on my iMac

    How can i use both Windows and Mac os at the same time on my iMac

    You can use Parallels desktop or VM Fusion to run both operating systems at the same time. Both programs work well, but I personally perfer VM Fusion.

  • I keep getting the message: "what should firefox do with this file" in Windows XP every time I want to download a file, e.g., adobe, excel, etc. How can this annoying message be deleted? The check box to "open file automatically" does not work!

    I keep getting the message: "what should Firefox do with this file" in Windows XP every time I want to download a file, e.g., adobe, excel, etc. How can this annoying message be deleted? The check box to "open file automatically" does not work!

    cor-el,
    Thanks for your prompt reply. However, the sources you gave do not seem to apply exactly to my situation. I have attached some screenshots that show what the dialogue box looks like for a pdf download, and what my settings in the Apps panel of Options are. You will note in the first screenshot that I have checked the box to handle this file type automatically; however, the next time I try to download a file of that type, the same dialogue box appears looking exactly like the one shown, so checking the "automatic" option appears to do nothing. The files to be downloaded from my Gmail messages are not generic or altered file types - they are shown as pdf, doc, docx, etc. So while your intent was good, your post did not help. Thanks anyway.

  • How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?

    How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?  I would like them to open at the size they were previously resized like they used to in previous operating systems.  They currently open at a very small size and the first colum is only a few letters wide necessitating a resize practically every time one wants to use it.  Any help would be appreciated.

    hi Prasanth,
    select werks matnr from ZVSCHDRUN into table it_plant.
    sort it_plant by matnr werks.
    select
            vbeln
            posnr
            matnr
            werks
            erdat
            kbmeng
            vrkme
            from vbap
            into table it_vbap
            for all entries in it_plant
            where matnr = it_plant-matnr and
                  werks = it_plant-werks.
    and again i have to write one more select query for vbup.
    am i right?

  • How can I save my data and the date,the time into the same file when I run this VI at different times?

    I use a translation stage for the experiment.For each user in the lab the stage position (to start an experiment) is different.I defined one end of the stage as zero. I want to save the position , date and time of the stage with respect to zero.I want all these in one file, nd everytime I run it it should save to the same file, like this:
    2/12/03 16:04 13567
    2/13/03 10:15 35678
    So I will track the position from day to day.If naybody helps, I appreciate it.Thanks.

    evolution wrote in message news:<[email protected]>...
    > How can I save my data and the date,the time into the same file when
    > I run this VI at different times?
    >
    > I use a translation stage for the experiment.For each user in the lab
    > the stage position (to start an experiment) is different.I defined one
    > end of the stage as zero. I want to save the position , date and time
    > of the stage with respect to zero.I want all these in one file, nd
    > everytime I run it it should save to the same file, like this:
    > 2/12/03 16:04 13567
    > 2/13/03 10:15 35678
    >
    > So I will track the position from day to day.If naybody helps, I
    > appreciate it.Thanks.
    Hi,
    I know the function "write to spreadsheet file.vi"
    can append the data
    to file. You can use the "concatenate strings" to display the date,
    time as well as data... Hope this help.
    Regards,
    celery

  • How can I maximize the window which opened using web.show_document() ?

    My user complain, everytime they want to print the report it didn't
    show maximize screen,
    How can I maximize the browser or window which opened using web.show_document() ?
    Thank you

    Thank you for replaying,
    I did search in forum, but I only go one about maximize window when calling
    a report (web.show_document). the link :
    Maximize the new opened window
    Frank said to use "Javascript to the Forms", but no futher explanation whow
    to do it ?
    please help, I don;t know javascript.
    Cabe,

  • How to increase the size (Length and width)  of check box

    Hi All,
    I have to increase the size of ( width and length) of check box, I have revised to check box topic in dev guide but didnt find any clue, i have also tried to use CCStyle class but that is also not working, I would appreciate if some can help me out on this. Thanks in advance , let me know if any clarification required.
    Thanks
    Pratap

    Hi Pratap ,
    I honestly don't know how to increase the size
    But i am giving you an alternate solution : we can create two Images with check box type 1 ) with checked
    2 ) with unchecked . ( you can create image of any size ) and get them displayed on OAF screen dynamically using switcher case .
    Dynamically displaying image will give the illusion of check box being checked and unchecked .
    keep this image moved to following media directory
    eg : /oraapp/mfgtestcomn/java/oracle/apps/media .
    Implement the switcher case , add the fire action to this Image Column , create a transient attribute and attach to this
    column . Depending on the value returned by transient attribute display the image on the column .
    Let me know if its not clear .
    Keerthi

  • How can I format a field to have a Check Box in the center.

    I am a new adobe user and I am creating a form in Adobe LiveCycle Designer. Most of what I needed to do I was able to figure out, but I cannot find a way to place a Check Box in the center of a chosen field. Each time I use the Check Box from the library it automatically places the Box in the center-right of the field. Then when trying to format the paragraph, I get no options about where I'd like the box to reside within the field. Is there a simple way to get a Check Box into the center of a Field or will I have to pursue other options. If I do have to pursue other options are there any ways to limit a text to an X and have it either be On or Off?
    Thanks for your aid.

    This behaviors usually happens when you create the fields but  a copy paste command from one of the fields. The copy paste command assumes that your intentions is to maintain a copy of the field in two separate locations (e.i, a form field  "company name" printed in each and every page of a multi-page form document.
    Go to the properties fields of each field and make sure  to assign unique form field  names.

  • How can I close 'current' window and not all windows?

    How can I close the current window (only) and not all or none?
    This function works well with MS Explorer.
    Not a problem, just a desired function.

    Hi JLCluster,
    If you just click the small x in the tab you are currently viewing, it will close only that tab. I think you are clicking the x in upper right hand corner of the screen which closes all open tabs as you described.
    Hopefully this helps!

  • How can I forward an email and include the attached images?

    I sent a client an email with attahced images (I attached the images, pictures I took).  The client responded with the images attached to the response.  When I try to forward that response to a third party the attached images become place holders only, no image. 
    Shouldn't my forwarded mail include the images?  Short of re-attaching the images how can I get them included in the forwarded email?

    I tested a few I forwarded to myself and I could still forward with attachments. You might try Redirecting it (Message menu).

  • How can I remove *standalone="yes"*  and include xmlns:xsd and xsi in root

    Using JAXB 2.1 for the first time. Was wondering how I would remove standalone="yes" from <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> And also how can I add xmlns:xsd="http://www.w3.org/2001/XMLSchema" and to the root element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    JAXBContext jaxbContext = JAXBContext.newInstance( "com.a.b" );
    Marshaller marshaller = jaxbContext.createMarshaller();
    marshaller.setSchema(schema);
    ObjectFactory factory = new ObjectFactory();
    A a = factory.createA();
    JAXBElement<A> root = factory.createRoot(a);

  • How can I make a field unfillable when a check box or radio box is selected?

    I'm looking to create a rule that makes selected fields un-fillable when one check box is selected, and fillable when another is selected. Is this possible in Adobe Acrobat?

    In that case they are mutually exclusive, or at least should be...
    You can use something like this as the custom MouseUp script for the check-boxes:
    if (event.target.value=="Yes") {
         this.getField("Field1").readonly = true;
         this.getField("Field2").readonly = true;
         this.getField("Field3").readonly = true;
         this.resetForm(["Field1", "Field2", "Field3"]); // this line will clear those fields as well
    } else if (event.target.value=="No") {
         this.getField("Field1").readonly = false;
         this.getField("Field2").readonly = false;
         this.getField("Field3").readonly = false;

  • How can I open previous windows and tabs in safari 5.1.7 running OX S 10.6.8

    Hi everyone,
    I format my Mac today and previsously save the safari folder from library so I have all the bookmarks and other stuff. After install OX S I copy the folder again but now when I open safari the previous tabs and windows didn't open automatically like I always have it. I know I can just click History and then reopen all windows from last sessions but is there any away to do it automatically (when I open safari). I am running snow leopard 10.6.8 and safari 5.1.7.

    I'm not sure why creating a new user account or guest user account would help.
    Because it may help in the diagnosis of your problem.
    Seems like others are having the same problem
    I have never seen this problem mentioned before.

  • How can i merge tabless windows and pop ups?

    I have tried using Tab Mix Plus, it only works on a tabbed windows. And it doesn't works on a tabless windows such as pop ups. At soundclick.com , the player is a tabless pop up window. I want to merge that pop up with the main window. Any ideas? or Can you add this feature for future version of Firefox? This feature would be very helpful to me.

    I'm not seeing any (blocked) pop-ups if I visit the link that you posted.<br />
    What kind of link opens in that opp-up?
    If you get unrelated pop-ups opening then you should do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • How can i toggel between windows and firefox

    dowloads using firefox apear in codes i do not understand nor do they go where i want them

    See:
    *https://support.mozilla.org/kb/Keyboard+shortcuts
    *https://support.mozilla.org/kb/Mouse+shortcuts
    *https://support.mozilla.org/kb/Browsing+basics
    *https://support.mozilla.org/kb/Tabbed+browsing

Maybe you are looking for

  • Nomad Jukebox Zen Xtra firmware prob

    I tried to upgrade the firmware and now my Xtra is in Rescue Mode. None of the updates that I downloaded from the website area all telling me that no device is detected. But my computer recognizes my Xtra. I tried downloading everything again but tha

  • My ipad2 won't flip around

    It is not locked...any ideas?

  • Query description display

    When executing queries directly to the Explorer browser, the Explorer tab shows the query's technical name, not its description.  Where is the customising setting that enables it to show the query description? Many thanks, Frederick

  • What the TOC ?

    I have an applet in a signed jar file that requires 1.4 to run. It is working fine on most macnines - but on a client machine running windows 2000 sp3, IE5.5 it faild to load with the attched stack trace in the trace file. I don't know what the TOC c

  • COPA: SD field.

    Hi All, Region is assigned to customer master , now I want to capture information regarding site in sales order header level for this I want to use the existing standard field available in sales order header level which will not impact to the use of