Resize JTable that doesn't include header
hi all
I want to insert the table that is not include header and want to allow the user to resize the column
thanx
You already asked the same question in this [url http://forum.java.sun.com/thread.jsp?forum=57&thread=526540]post.
Don't clutter the forum by asking the same question over and over again. You won't get an answer faster.
Similar Messages
-
Private me card that doesn't include notes?
I have enabled the private me card so that I can send a work related v-card to all of my colleagues that doesn't include my home and personal contact info. However, there doesn't appear to be a way to exclude the notes section from appearing in my work related v-card, and I have a lot of personal information in my notes section.
I should mention that I do have "export notes in v-cards" option enabled, which I would like to keep enabled because I want to retain my notes when syncing with my iphone and backing up to an archive, which I often do.
Is it possible to exclude the notes section from the work related v-card?
thanks!Greetings,
The only way to remove a child's name is to remove it from the contact card in Address Book. There is no field for children in Address Book; they should always be put in the Notes section. -
Resize JTable columns by double-clicking header
I want to implement column resizing in a JTable so that when the user double clicks on the column header with the mouse in the "resize zone" the column automatically adjusts to the width of the longest text in the column. this is how many applications behave (e.g. windows explorer) but I don't think I've ever seen a swing app that does this. I've looked in the API docs for JTable and JTableHeader and I can't see any way of finding out if the mouse is over the edge of a column header. does anyone know of a way to do this?
Is this laf independant?import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.*;
public class Test extends JFrame {
public Test() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container content = getContentPane();
String[] head = {"One","Two","Three"};
String[][] data = {{"R1-C1","R1-C2","R1-C3"},
{"R2-C1","R2-C2","R2-C3"},
{"R3-C1","R3-C2","R3-C3"}};
JTable jt = new JTable(data, head);
JScrollPane jsp = new JScrollPane(jt);
content.add(jsp, BorderLayout.CENTER);
JTableHeader jth = jt.getTableHeader();
jth.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent me) {
JTableHeader jth = (JTableHeader)me.getSource();
int col = jth.columnAtPoint(me.getPoint());
Rectangle r = jth.getHeaderRect(col);
if (jth.getCursor().equals(Cursor.getPredefinedCursor(Cursor.E_RESIZE_CURSOR))) {
System.out.println("Cursor, col="+col);
setSize(300, 300);
setVisible(true);
public static void main(String args[]) { new Test(); }
} -
I am a member of a shared family plan which as I see it posted our bill is over $300 a month, which does not include unlimited data, family protection (which allows you to permanently block numbers vs there 30 or 90 day limit if you are not covered) <---- this requires you to constantly be on alert of something so ridiculous that it shouldn't be concerned with, and finally they do not offer an upgraded voicemail service. So my voicemail asks me to enter pin than right to messages. It does not tell me the following: The date the call was made, the time the call was made, nor any other pertinent information regarding the call aside from the number and than the message. It's frustrating because I miss a lot of calls these days due to volume controls and silent modes and ring tones that aren't loud enough that I need to know when calls are received. I don't ever remember having to pay for an upgraded voicemail service, that's like hiring a firm to handle all my incoming calls. I want my answering machine back. I have many other issues to include Verizon's online chat service which has at least one major issue. I won't bring that up here. The question is how much more money can they get for a simple cell phone plan? For christ's sake.
Message was edited by: NoMoreOriginalNames Grammar correctionsThe free voicemail is basic which gives you the date and time of the message. If you want more you should pay for more. Also, some Android phones with KitKat have free Visual Voicemail.
Thank you for your feedback, but my phone gives me no choice and it most certainly does not state the date and time that the message was received. The only way for me to know that is if I happen to check exactly the phone log around the same time that the message was left, else it is buried underneath other more recent and answered calls. And seriously man, the whole pay more idea is getting a bit far-fetched. There is no reason why I should be able to buy a portable mini answering machine for a one time payment of $14.99 with a reusable blank tape, they don't have these and we'd look ridiculous carrying them around with everything else, but the point is we are giving permission to charge for some ridiculous things that should not be paid more for. My old answering machine worked just fine, and more importantly I have never paid for an "upgraded" voicemail service. As I mentioned if I want that I can hire a service to do that, but I don't need that. I hope you can understand my growing concerns. We pay for every little in-app purchase, we are being programmed to pay for everything that should already be includedfdasf in an initial price, brought home and enjoyed for its duration. Instead wesdfsdf are paying monthly fees and dues on objects that aren't covered by warranties or insurances which eventually break and leave people struggling to pick up the pieces. These are serious issues because people now rely so much on their phones (of course this is all my opinion) that we've become depandent on them. Anyway, thanks, appreciate all the feedback.
As for blocking this is what it states on my plan under the blocking feature tab:
You can block calls and message from up to 5 phone numbers at no charge.
Expiration. Blocks expire after 90 days. Be sure to reapply the block if you wish to continue the service restriction. To permanently block numbers, subscribe to FamilyBase*.
Limitations.
You cannot block numbers within your account or non-10 digit numbers such as 911,411 or #MIN (checks minutes used).
Apple® iMessage® won't be blocked. Messages from this service can be blocked by disabling the iMessage feature from within the Settings>Messages menu of your Apple device.
Unblocking. To unblock a number, highlight and delete the number, then click "Submit".
So there's the limits, but even worst is they don't include a simple field where I can put the name of the individual I am blocking. So when it comes time to maybe rotate one out (this should be an unlimited number), one of the many 5 I can choose to block, I might not remember who is who or what is what. I have a lot of responsibilities in my life, this is not one that should be pushed on the consumer. It's ridiculous. -
How to I record an Action to Save As that doesn't include a file name??
Hi -
I have an Action that will crop and scale a PDF file then Save As a JPG to a destination folder. The problem is that when I recorded the Action I did so with a file named ABC.PDF and Saved it as ABC.JPG - and now every file saved with this
Action is named ABC.JPG
This makes it impossible to use with a bunch of different files. One file gets overwritten multiple times with the same name. The file name ABC.JPG is "burned" into the Action.
SO - how do I record an Action to Save As without including a file name??
TIA your help on this crazy problem -
Josh
CS5 on Windows7PeterK - thanks for the reply. I tried that already - initially actually.
I even tried blanking out the field so I would save a file with NO name. PSD added it's own .jpg and saved it like that. Every file after that over wrote that one too so after using the Action on 6 files I still only had one ".jpg" in the folder.
I was hoping that there was a setting or preference somewhere. SInce this is Windows might it be OS related? -
Resize JTable Columns without Column Header
Hi all.
I have a JTable that doesn't display a column header.
I would like to allow the user to resize the columns by dragging a mouse at the column edges at any point down the table.
It is not obvious how I can accomplish this.
Does anyone have any ideas?
Thanks, Paul.That doesn't work, though, since the table has its own listenersIt's not just that. The header's mouse listeners work with instance fields of BasicTableHeaderUI and detection (using e.getPoint) of the header cell and column.
I would start with copying the entire code of BasicTableHeaderUI to a class of my own, then first eliminate anything that obviously isn't related to column dragging/resizing, then refactor, refactor, refactor to make the listener codes work with a table instead of a header. But like I said, easier said than done, particularly when having to deal with the various JTable column resize modes.
db -
Doing queries in view objects that do not include primary keys of entities
Is it possible to create a view object based on an entity that doesn't include the primary key from that entity object. For instance I want to do something like "select distinct (attrib1) from sometable" and obviously attrib1 is not the primary key for that table so I get an error that says, you must include a primary key in your view object. How would I implement something like this in bc4j?
You just need to go into expert mode and create the statement directly with the relevant SQL
e.g. in 9.0.3:
Context Menu -> New View Object
Select no entities in Step 2
Next through to Step 5 of the wizard and enter you expert mode SQL there. E.g. Select distinct deptno from emp
Assign the new VO to the AM data model and away you go. -
I already have the LR 5.7 on my PC with OS 8.1 64bits - when I try to enter the serial number Adobe informs me that there are no eligible product available - the list doesn't include the LR6 version ?
thank you very much!
everything's allright
bye -
How do you make a portrait view that doesn't loose the pictures?
I'm trying to layout a portrait view book in iBooks Author and I don't understand why Apple doesn't include a template that doesn't lose the pictures when you change screen orientation. Seeing that 99.9% percent of all paper books in the world are in portrait view I would have expected this to be the default view rather than landscape view. Has anybody been able to make a portrait view book that retains the graphics and other bells and whistles or am I just banging my head against the wall?
In portrait mode the figures and things are always links down the side of the text. The only way I found to stop them disappearing was to insert them in portrait mode. They don't disappear when you change back to landscape, you just have to move them to wherever it is you want them to be. The best workflow is edit in portrait, then switch to landscape for formatting.
-
My Fall 2009 model Macbook Pro DVI output apparently doesn't include audion. Adapting DVI to HDMI works with new LG TV, but doesn't provide sound. Connecting the Macbook headphone output to the TV's RCA jacks give sound with the TV in AV (PC) mode, but no video. Is there a fix for this? Search for a DVI to HDMI adapter that includes a plug for the headphone jack comes up empty, so far.
DVI has never included audio, sorry.
There is also no DVI->HDMI adapter including a plug for audio; such thing cannot work without quite a bit of electronic extra effort.
Instead of much bla-bla, why don't you tell the exact TV model, and we'll try to come up with a solution?
BTW, no home theater AV receiver present, correct? Sound to come from the TV, correct? -
Royalty free music that doesn't suck
I'm not a music composer (and I don't play one on TV) but I am someone who needs music for projects sometimes, mainly video modules for conference openers. The big problem is that, more often than not, my clients aren't willing to pay for an audio engineer/composer to do up a custom track for them. I know, in the big scheme of things, that this is cheaper than me sitting for hours/days sifting through websites with royalty free music but they see the price tag for custom work and freak out.
So, since Google will allow you to pay to up your placement in their searches, I am fed up with searching sites that suck and thought that, while it doesn't exactly have to do with fine Adobe products (of which I've purchased several [including Audition], spending many thousands of dollars over the years, for any Adobe personnel out there who might read this post and doesn't think it applies to this product), I thought I'd come to this forum and ask you people directly if you know of any sites with RFM that don't suck. You know what I mean, if I have to hear another 60 sec. clip of "atmospheric strings", I may just puke. I did try to find an audio forum to ask this question on but, once again, Google let me down.
There's simply got to be some music library out there somewhere that's fairly consistently good, or at least the amount of corporate hoaky blech is at a minimum. Or maybe you, as a composer, have your own site with decent stuff that doesn't appear within the first 100 returns of a Google search. Please, let me know! I've got a project I'm working on right now where I'm in a similar bind with a client who thinks they're David Foster without the audio board and doesn't understand that all this costs money, even if it's only $39.95 (and the additional hours of all my searching). They also don't understand that just because they own the CD doesn't mean you're allowed to set pictures to it and call it your own. And if I have to listen to "Simply the Best" used in another video, I may just scream.
Thanks for any help you can provide!I have been using IB Audio for years. Ian is a great composer (and nice guy). It's a yearly membership or by the track. The membership is the best value. For one price you get HUNDREDS of tracks and loops.
www.ibaudio.com
Jake -
How do I reinstall Adobe Creative Suite on my iMac that doesn't have a CD drive?
How do I reinstall Adobe Creative Suite on my iMac that doesn't have a CD drive?
I had to wipe my hard drive including my apps and I don't know how to reinstall my adobe software.
Please helpDownload and Installation Help -
https://helpx.adobe.com/download-install.html
You will need your serial number. If you have the discs you should be all set. If not, then you should be able to find it thru your Adobe account online if you registered the software previously.
You might want to contact Adobe Support thru chat before you activate the new installation if you would like to free up the activation that might have been left in limbo.
For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
Serial number and activation chat support (non-CC)
http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC ) -
Search doesn't include text in calendar notes fields
I have a calendar created in iCal that includes about 90 entries with text in the notes field of each. Spotlight on the Mac searches that text fine.
I've synched that calendar to my iPhone - and search there doesn't include text in that field, though it does for the title field.
Its a great feature - but to keep calendar entries usable the titles need to be short with most details in the notes, but still searchablehttp://www.apple.com/feedback/iphone.html
-
My favorites list contains seven unwanted items at the top that I want to remove. I just want it to include the sites I've tagged. I would also like to know the keyboard shortcut that opens the list. I had previously used Alt C, but that doesn't seem to work.
Thank you for your help,
a happy new userYou can only create new folders in one of the three root folders.
* The Bookmarks Toolbar folder stores the bookmarks that you see on the (View > Toolbars >) Bookmarks Toolbar.
* The Bookmarks Menu folder stores bookmarks that you see in the Bookmarks menu and create via "Bookmarks > Bookmark This Page" or "Bookmark This Link" in the right click context menu.
* The Unsorted Bookmarks folder stores the bookmarks that are created by clicking the star at the right end of the location bar. -
when trying to upload a MS word file (.docx) to gmail, it uploads as a 'folder' that doesn't contain the original document when i try to download it back from the e-mail. how do i set the format to simply upload the document itself??? Thanks...
Yes, excuse me. attach a file. I have separate folders on my desktop to organize my word documents, so I'm guessing this might be a part of the problem. When I go to attach one of these documents into gmail, the resulting attachment is another folder icon (not the original organizational folders) with 4 subfolders containing a slew of .xml files reading things like "header.xml" "format.xml" "settings.xml" "style.xml" "contenttype.xml" There are also a few .jpegs and a small folder reading "word" as one of the subfolders.
Maybe you are looking for
-
Manually create an output message for GRs
Is it possible to manually create an output message for a GR that has never been printed? There was an issue with our output determination and we have a GR that never had a message created when saved so I can't use MB90 to print it. The problem wit
-
I tried several times to install Firefox. I have Win7 and it wont install.
-
Itunes can't copy some songs to my ipod
So I keep getting a warning from itunes that it can't copy 3 songs from my library to my ipod. This is what the error says word for word. "Some of the items in the iTunes library were not copied to the iPod because one or more errors occurred." It th
-
Hi All, I have a date field in which when i enter the date and click on the button I should display the next day in another inputfield. Ex: If i enter 12th Nov 2008 (11/12/2008)i should get 13th Nov 2008 (11/13/2008) in the other input field. Thank
-
Questions about rendered files......
1. While rendering playes a role in how smoothly clips and previews play within a project, do they play any role in how smooth the dvd plays after burning? 2. Where do the rendered files go(cannot seem to locate them) and do they need to be removed m