Regarding_Height in JSplitPane in which JList And JTextArea

Hi All,
I have JSplitPane in which two components Jlist and JTextArea
placed . Here when I type the text in JTextArea respective row no
is appeared in JList.Here my problem is how to set the row hieght
of both JTextArea and JList to equal size ....
Can any body have the idea pls help me.
Thanks in advance

have you experimented with JTextArea's getRowHeight() and
JLists's get/setFixedCellHeight()?

Similar Messages

  • JTabbedPane and JTextArea

    I have a problem, and I can't find what I need.
    I have an application that is suppose to be an address book. I've created 26 tabs (lettered A - Z) and in each tab, I've placed a JPanel (e.g. panelA, panelB, etc) and on each panel I've placed a JTextArea and a JList . I load my data from a file into a Vector.
    Here's my dilemma, I don't know how to get my data from my Vector to my JTextArea or my JList. If I instantiate a new JList and place it on the tab, it adds it as a new JList.
    I can get the tab via getSource(), but I don't know how to access the JTextArea or the JList in the tab.
    I can sort my Vector, print it out via System.out.println's, shoot, I can even pull out specific elements that correspond to a specific letter (the person who's last name starts with "M" for instance), but getting it into the JList or putting it in the JTextArea eludes me. Any help would be greatly appreciated.

    1) Create a custom panel (MyAddressPanel). Add the JList and JTextArea to the Panel
    2) Create a couple of accessor method (getAddressList, getAddressTextArea) to access any component you add to the panel
    3) Add each panel to the tabbed pane
    Now whenever you want to access the data from a specific tab you would do something like:
    int selected = tabbedPane.getSelectedIndex()
    MyAddressPanel panel = (MyAddressPanel)tabbedPane.getComponentAt(selected);
    JList list = panel.getAddressList();
    ...

  • Interesting Focus II: JComboBox, 2 JLists and 1 Button

    Hi All,
    Another Interesting Keyboard Focus Question:
    What we want to do?
    Let's say we want to build a JComboBox whose popup contains 2 JLists and a button.
    What we would probably want to do is:
    comboBox.setUI(new MyComboBoxUI());
    MyComboBoxUI will extend BasicComboBoxUI and
    ovveride createPopup to return a BasicComboPopup subclass
    which will add the other JList and JButton.
    (One can argue that this is not a JComboBox anymore, but bare with me)
    Does it work?
    This will work great with the Mouse, but with the Keyboard we face a problem:
    After our popup is displayed, The JComboBox Still Has The Focus - Any UP or DOWN Events are really proccessed by the JComboBox which simulates JList navigation...
    This is happening because the popup is not keyboard-focusable (and so do all of its components)
    Where' s the problem?
    We want to be able to:
    1. Press TAB to navigate thru the 3 components
    2. Press UP and DOWN to navigate the two JLists
    3. Press Space to activate the JButton
    Possible solutions:
    1.
    Don't subclass BasicComboPopup and write a ComboPopup which uses a Focusable JWindow.
    Problem: The JComboBox will lose the focus when the popup opens
    2.
    Simulate all the DOWN/UP/TAB/SPACE events to the popup
    Problem: The components are not focusable, hence there is no indication
    of who is the current focused component
    (Might be solved by surrounding the 'focused' component with a border)
    Your thoughts?
    If you haven't fell asleep by now, you are welcomed to share you ideas, Thanks
    Eyal Katz

    Sorry, I don't understand what you are trying to accomplish. However one line did catch my eye.
    This is happening because the popup is not keyboard-focusable The code in the popupPopup() method in the following post might help:
    http://forum.java.sun.com/thread.jspa?threadID=636842

  • Using JCheckBox, JButton and JTextArea with JDBC

    Hello shlumph and SoulTech2012.
    thanks for the reply. I�m wondering do any of you have links to web pages that include tutorials and source code on using JCheckBox, JButton and JTextArea with JDBC. would any of you who have experience with using JCheckBox, JButton, JTextArea and JDBC together be able to give me a few tips on how to select certain data from a table using JCheckBox, JButton and display the data in a JTextArea? examples of such data could be CD/DVD/Game data - i want users of my video library system to be able to view CD/DVD/Game information by name, age category, type and year. Users should be able to click on a check box (e.g. view by name, age category, type or year) and press a button. What would happen then is that data from the Product table would appear in the text area (which could be placed beneath the check box + button inside a frame and/or panel).
    Thank you very much for your help.

    Quit triple posting and cross posting your questions all over the forum. You already have a posting in this forum on this topic and another posting in the Swing forum and another posting in the Programming forum.

  • Consume MouseEvent to prevent JList and JTree from receiving?!

    I have a JTree and a JList where I have made the CellRenderer so that it has a "button" area. When this button is clicked, I want something to happen. This I have achieved just nicely with a MouseListener, as per suggestion from JavaDocs.
    However, the problem is that when a click is deemed to be within the "button", I do not want the tree or list to process it anymore. But doing e.consume(), both on mousePressed or mouseClicked (though it obviously is pressed the JList and JTree themselves listen to) doesn't do jack.
    How can I achieve this functionality?

    da.futt wrote:
    stolsvik wrote:
    Okay, I managed with a hack: It is the order of listeners that's the problem: The ListUI's MouseListener is installed before mine, and hence will get the MouseEvent before me, so it has already processed it when I get it, and hence consuming it makes no difference. No. Normally, listeners are notified latest-registered to earliest-registered. I don't remember seeing an exception to that rule in the core API. well, you are both right (or wrong ;-) - the rule is: the order of listener notification is undefined, it's an implementation detail which listeners must not rely on. "Anecdotical" experience is that AWTListeners are notified first-registered-first-served, while listeners to swing specific events are notified last-registered-first-served. Below is a snippet (formulated in context of SwingX convenience classes, too lazy ...) showing that difference.
    The latter probably stems from hefty c&p of notification by walking the EventListenerList: the earliest code was implemented very near the beginning of Swing when every little drop of assumed performance optimization was squeezed, such as walking from back to front. Using EventListenerList involves lots of code duplication ... so lazy devs as we all are, simply c&p'ed that loop and just changed the concrete event type and method name. More recently, as in the we-use-all-those-nifty-cool-language-features ;-) I've seen more usage of forEach loops (f.i. in beansbinding) so notification is back to first-in-first-served :-)
    Bottom line: don't rely on any sequence - if needed, use an eventBus (or proxy or however it's called) and define the order there. Darryl's suggestion is as close as we can get in Swing (as it's not supported) but not entirely safe: there's no way to get notified when listeners are added/removed and no hook where to plug-in such a bus into the ui-delegate where it would belong.
    Cheers
    Jeanette
    // output
    02.10.2009 14:21:57 org.jdesktop.swingx.event.EventOrderCheck$1 mousePressed
    INFO: first added mouseListener
    02.10.2009 14:21:57 org.jdesktop.swingx.event.EventOrderCheck$2 mousePressed
    INFO: second added mouseListener
    02.10.2009 14:21:58 org.jdesktop.swingx.event.EventOrderCheck$4 valueChanged
    INFO: second added listSelectionListener
    02.10.2009 14:21:58 org.jdesktop.swingx.event.EventOrderCheck$3 valueChanged
    INFO: first added listSelectionListener
    // produced by
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.util.logging.Logger;
    import javax.swing.JList;
    import javax.swing.event.ListSelectionEvent;
    import javax.swing.event.ListSelectionListener;
    import org.jdesktop.swingx.InteractiveTestCase;
    import org.jdesktop.test.AncientSwingTeam;
    public class EventOrderCheck extends InteractiveTestCase {
        public void interactiveOrderAWTEvent() {
            JList list = new JList(AncientSwingTeam.createNamedColorListModel());
            MouseListener first = new MouseAdapter() {
                @Override
                public void mousePressed(MouseEvent e) {
                    LOG.info("first added mouseListener");
            MouseListener second = new MouseAdapter() {
                @Override
                public void mousePressed(MouseEvent e) {
                    LOG.info("second added mouseListener");
            list.addMouseListener(first);
            list.addMouseListener(second);
            ListSelectionListener firstSelection = new ListSelectionListener() {
                @Override
                public void valueChanged(ListSelectionEvent e) {
                    if (e.getValueIsAdjusting()) return;
                    LOG.info("first added listSelectionListener");
            ListSelectionListener secondSelection = new ListSelectionListener() {
                @Override
                public void valueChanged(ListSelectionEvent e) {
                    if (e.getValueIsAdjusting()) return;
                    LOG.info("second added listSelectionListener");
            list.addListSelectionListener(firstSelection);
            list.addListSelectionListener(secondSelection);
            showWithScrollingInFrame(list, "event order");
        @SuppressWarnings("unused")
        private static final Logger LOG = Logger.getLogger(EventOrderCheck.class
                .getName());
        public static void main(String[] args) {
            EventOrderCheck test = new EventOrderCheck();
            try {
                test.runInteractiveTests();
            } catch (Exception e) {
                e.printStackTrace();
    }

  • Attempted to install AirPort Utility 6.0 on my new mac mini. Install failed and now the previous version 5.5.3 won't open. I downloaded and tried to instal 6.0 without software update, which failed, and my old 5.5.3 AirPort Utility still won't open? Help.

    Now the previous version won't open. I downloaded and tried to instal 6.0 without software update, which failed, and my old 5.5.3 Airport Utility still won't open.
    iTunes no longer recognizes my airport express.
    Error Message:
    None of the selected updates could be installed.
    An unexpected error occurred.
    Can't delete Airport Utility and reinstal from scratch as it is, “AirPort Utility” can’t be modified or deleted because it’s required by Mac OS X.
    Any sugestions?

    I reinstalled AirPort 5.5.3 which worked, but the app still won't launch but iTunes now recognizes my AirPort Express, I just hope I don't want to change its settings.

  • Which LKM and IKM to use for Fast data loading b/w MSSQL 2005 and Oracle 11

    Hi,
    Can anybody help us to decide which LKMs and IKMs are best for data loading between MSSQL and Oracle.
    Staging Area is Oracle. We have to load around 400Million rows from MSSQL to Oracle 11g.
    Best regards,
    Muhammad

    Thanks Ayush,
    You are right and it has dumped the file very quickly; but it is giving error on sqlldr call thorugh jython. I have reaised SR with oracle to look into it further.
    thanks again and have a very nice time.
    Regards,
    Muhammad

  • I have an iPod 80gb which charges and looks to play tunes though nothing comes out of head phones docking stations etc. Can you point me in the right direction please?

    I have an 80GB iPod which charges and looks to play tunes though nothing comes out of ear phones,speakers or docking stations. Can you please help me fix this?

    Hello lowe-m1,
    Thanks for using Apple Support Communities.
    For more information, take a look at:
    iPod troubleshooting basics and service FAQ
    http://support.apple.com/kb/ts1382?viewlocale=nl_nl
    The headphones don't work
    If your iPod's headphones don't work or have static or garbled audio, try connecting them to any other 3.5 mm stereo headphone jack, like the one on your computer. If the issue with the headphones persists, replace them. For an iPod under warranty, you can order a replacement online. Otherwise, check out the cool headphones at theApple Online Store. If the issue appears to be with the iPod, try resetting it. If that doesn't work, then restore iPod with the latest iPod software using iTunes 7 or later.
    Have a nice day,
    Mario

  • How does DIADEM import TDMS files? How gets every channel his number and groupindex? How can I determine which channel has which groupindex and number?

    I store different channels in a TDMS file.
    I like to have a time channel at the first position with group index 1 and number 1.
    When I read the TDMS file with DIADEM the time channel (Float64) is on a differernt position, and the channels are not sorted alphabetically.
    Here are my questions:
    How does DIADEM import TDMS files?
    How gets every channel his number and groupindex?
    How can I determine which channel has which groupindex and number?
    Best regards
    Joerg

    Hi Jörg,
    i suppose that you´re programme whose create the *.tdms file is writing on false position. Try to create datas with timechannel on first indes in diadem, then save it and then open it again. you see that all is correct. So please tell me what programm in what version do you use and please attache it here.
    Did you use the library for creating *.tdms files like in the link ?
    http://zone.ni.com/devzone/cda/tut/p/id/6471
    Here you find the gtdms_8.x.zip - when you extract it and opened the *.llb you find vi´s for all functions e.g. writing 2d array of strings to *.tdms file
    when you open the subvi´s then you see how created and writing datas/structure to *.tdms files. Because *.tdms is binary you can´t see structure with open it in editor.
    When you don´t have Labview you can use the 30 days test of current version 8.5 under following link
    german version download link
    https://lumen.ni.com/nicif/d/lveval/content.xhtml
    english version download link
    https://lumen.ni.com/nicif/us/lveval/content.xhtml
    Hope it helps
    Best Regards

  • How do I transfer music from my iPod to my iMac which crashed and had to be reformatted

    how do I transfer music from my ipod touch to my imac which crashed and had to be reformatted

    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • I have an old version of itunes (not sure which one)and if I download the new version 11.1.4, will I be able to keep my original library with playlists from old version of itunes?

    I have an old verison of itunes(not sure which one) and if I download the new version 11.1.4, will I retain my original library and playlists from the old version or loose it?

    you can just make  a backup and download the new verion

  • I put my iPad 2 to update (i forget which one) and it won't turn back on, it's been 2 days

    I put my ipad2 to update ( i forget which update) and now it won't turn back on

    Hi there selena100,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    If you can't update or restore your iOS device
    http://support.apple.com/kb/ht1808
    -Griff W.

  • What's Happening?? Some days after installing latest security up date for 10.5.8 on G4, both inernal CD/DVD drives failed to mount disks other than a cleaning disk which mounted and was imported into iTunes.No other CD or DVD disk will mount.

    What's Happening?? Some days after installing latest security update for 10.5.8 on G4, both inernal CD/DVD drives failed to mount disks other than a cleaning disk which mounted and was imported into iTunes. No other CD or DVD disk will mount.Is this a unique experience?

    Hello Robert,
    First, Safe Boot , (holding Shift key down at bootup), use Disk Utility from there to Repair Permissions, test if things work OK in Safe Mode.
    Then move these files to the Desktop...
    /Users/YourUserName/Library/Preferences/com.apple.finder.plist
    /Users/YourUserName/Library/Preferences/com.apple.systempreferences.plist
    /Users/YourUserName/Library/Preferences/com.apple.desktop.plist
    /Users/YourUserName/Library/Preferences/com.apple.recentitems.plist
    Reboot & test.
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.

  • Hi! I've got CS3 Design Standard - the actual disks and Software License certificate. It was installed on my laptop which crashed and could therefore not be uninstalled. I have now installed it on my new MacBook Pro, but cannot get it registered with the

    Hi! I've got CS3 Design Standard - the actual disks and Software License certificate. It was installed on my laptop which crashed and could therefore not be uninstalled. I have now installed it on my new MacBook Pro, but cannot get it registered with the serial number. Is it because it wasn't uninstalled on the previous laptop? What to do now?? Thx!

    Maybe this can help someone else...  I simply had to properly uninstall CS3 and reinstall it again after that.  I think that sorted it!  I also remember having a similar issue with Macs at work a couple of years back.  Not sure whether the same applies to CS5/CS6.  Here's a link on how to properly uninstall CS3 on Windows XP, Windows Vista and Mac OS.  I'm on OS X 10.9.2 but it worked just fine.  Remove Creative Suite 3 and CS3 products

  • I need to connect to my work PC remotely from my macbook. I think I need the citrix software. But which version and what is the procedure?

    I need to connect to my work PC remotely from my macbook. I think I need the citrix software. But which version and what is the procedure?

    Probably don't need citrix software. Is you computer in the office on LAN? Also, is the office computer setup for remote access? If it's windows then its going to be running Remote Desktop Protocol (RDP) natively. If it is in fact RDP that your windows machine at work is using then you need to download RDC for mac. I use it to connect to my work computer using RDP (don't tell the "Info Tech" dude at my office) and if your not too tech savvy I would suggest trying GOTOMYPC. It's alot easier to setup. But if you have experience in setting up remote access and your Windows office machine is connected through LAN and your IT TECH has allowed port forwarding then you should be just fine with RDP and it's free!!! But are you logging onto your actual computer at work or logging into the "SERVER" through your work machine... believe me it's two completely different things.
    Basically, you'll need:
    1. Physichal IP address of work computer. (If office computer is on WIFI this won't work) use IPCONFIG commands in command prompt
    2. Port forwarding needs to be enabled by your IT Tech
    3. Remote Desktop settings will need to be enabled on the office computer
    4. Download RDC for mac (search google)
    5. Type the physical IP address into RDC and hit connect... type in credentials and your all done.
    We need lots more details though... there are many ways to connect remotely and if your office already has a system in place for remote access then any details would be helpful in determining which method will suit you best. If it's citrix just have your IT dude set it up. If you think you need citrix then good luck....

Maybe you are looking for

  • Noscript no longer works with version 8.01

    Addon "noscript" no longer runs with version 8.01, why?

  • Error message when downloading version 4

    After waiting 35 minutes to download the latest iphone version 4 on my laptop, the 378mg gets downloaded then 1 minute later I ger an error message 3259 with an error box that reads "There was a problem downloading the software for the iphone (my nam

  • Bluetooth phone connection with car

    i have nokia n70 mobile , when i am trying to connect my mobile to my volkswagen car phone via bluetooth i get a massage ( no compatable phone found ) but when i try another mobile it is working . but i can connect my mobile with other bluetooth devi

  • File name as subject in email

    Is there a way to make XI Pro automatically insert the pdf file name as the subject when emailing a pdf from Acrobat XI Pro like the older versions did?  I've tried installing Email_(file_name_as_subject).sequ but I get an error message stating it "h

  • IDVD and External DVD burner

    I'm currently working on a DVD for a wedding scheduled for Saturday. The DVD works great on the Mac and PC, however, when attempt to play it in a DVD player playing to a TV the music is choppy during the transitions (dropplet). By the way, my superdr