Displaying JTable using GridBagLayout

Hii Javaties
I am displaying all my GUI using GridBagLayout Manager.
But i dont know , how to add a JTable using GridBagLayout manager.
I[b] want tht each column of the JTable be displayed in each cell .
i.e column 1 should be displayed at position 1,4
Can anybody guide me .
Thanx

Perhaps what you are looking for is Custom Editors or Renderers?

Similar Messages

  • How can I display JTextFields correctly on a JPanel using GridBagLayout?

    I had some inputfields on a JPanel using the boxLayout. All was ok. Then I decided to change the panellayout to GridBagLayout. The JLabel fields are displayed correctly but the JTextField aren't. They are at the JPanel but have a size of 0??? So we cannot see what we type in these fields... Even when I put some text in the field before putting it on the panel.
    How can I display JTextFields correctly on a JPanel using GridBagLayout?
    here is a shortcut of my code:
    private Dimension sFieldSize10 = new Dimension(80, 20);
    // Create and instantiate Selection Fields
    private JLabel lSearchAbrText = new JLabel();
    private JTextField searchAbrText = new JTextField();
    // Set properties for SelectionFields
    lSearchAbrNumber.setText("ABR Number (0-9999999):");
    searchAbrNumber.setText("");
    searchAbrNumber.createToolTip();
    searchAbrNumber.setToolTipText("enter the AbrNumber.");
    searchAbrNumber.setPreferredSize(sFieldSize10);
    searchAbrNumber.setMaximumSize(sFieldSize10);
    public void createViewSubsetPanel() {
    pSubset = new JPanel();
    // Set layout
    pSubset.setLayout(new GridBagLayout());
    GridBagConstraints gbc = new GridBagConstraints();
    // Add Fields
    gbc.gridy = 0;
    gbc.gridx = GridBagConstraints.RELATIVE;
    pSubset.add(lSearchAbrNumber, gbc);
    // also tried inserting this statement
    // searchAbrNumber.setText("0000000");
    // without success
    pSubset.add(searchAbrNumber,gbc);
    pSubset.add(lSearchAbrText, gbc);
    pSubset.add(searchAbrText, gbc);
    gbc.gridy = 1;
    pSubset.add(lSearchClassCode, gbc);
    pSubset.add(searchClassCode, gbc);
    pSubset.add(butSearch, gbc);
    }

    import java.awt.*;
    import java.awt.event.*;
    import javax .swing.*;
    public class GridBagDemo {
      public static void main(String[] args) {
        JLabel
          labelOne   = new JLabel("Label One"),
          labelTwo   = new JLabel("Label Two"),
          labelThree = new JLabel("Label Three"),
          labelFour  = new JLabel("Label Four");
        JLabel[] labels = {
          labelOne, labelTwo, labelThree, labelFour
        JTextField
          tfOne   = new JTextField(),
          tfTwo   = new JTextField(),
          tfThree = new JTextField(),
          tfFour  = new JTextField();
        JTextField[] fields = {
          tfOne, tfTwo, tfThree, tfFour
        Dimension
          labelSize = new Dimension(125,20),
          fieldSize = new Dimension(150,20);
        for(int i = 0; i < labels.length; i++) {
          labels.setPreferredSize(labelSize);
    labels[i].setHorizontalAlignment(JLabel.RIGHT);
    fields[i].setPreferredSize(fieldSize);
    GridBagLayout gridbag = new GridBagLayout();
    JPanel panel = new JPanel(gridbag);
    GridBagConstraints gbc = new GridBagConstraints();
    gbc.weightx = 1.0;
    gbc.weighty = 1.0;
    gbc.insets = new Insets(5,5,5,5);
    panel.add(labelOne, gbc);
    panel.add(tfOne, gbc);
    gbc.gridwidth = gbc.RELATIVE;
    panel.add(labelTwo, gbc);
    gbc.gridwidth = gbc.REMAINDER;
    panel.add(tfTwo, gbc);
    gbc.gridwidth = 1;
    panel.add(labelThree, gbc);
    panel.add(tfThree, gbc);
    gbc.gridwidth = gbc.RELATIVE;
    panel.add(labelFour, gbc);
    gbc.gridwidth = gbc.REMAINDER;
    panel.add(tfFour, gbc);
    final JButton
    smallerButton = new JButton("smaller"),
    biggerButton = new JButton("wider");
    final JFrame f = new JFrame();
    ActionListener l = new ActionListener() {
    final int DELTA_X = 25;
    int oldWidth, newWidth;
    public void actionPerformed(ActionEvent e) {
    JButton button = (JButton)e.getSource();
    oldWidth = f.getSize().width;
    if(button == smallerButton)
    newWidth = oldWidth - DELTA_X;
    if(button == biggerButton)
    newWidth = oldWidth + DELTA_X;
    f.setSize(new Dimension(newWidth, f.getSize().height));
    f.validate();
    smallerButton.addActionListener(l);
    biggerButton.addActionListener(l);
    JPanel southPanel = new JPanel(gridbag);
    gbc.gridwidth = gbc.RELATIVE;
    southPanel.add(smallerButton, gbc);
    gbc.gridwidth = gbc.REMAINDER;
    southPanel.add(biggerButton, gbc);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(panel);
    f.getContentPane().add(southPanel, "South");
    f.pack();
    f.setLocation(200,200);
    f.setVisible(true);

  • Not able to display all the componets using GridBagLayout manager

    Hii Javaites
    I m using GridBagLayout manager to display my components.
    But there is some problem.
    I am not able to view the last element of my second Row.
    Can anybody tell me what is wrong.
    This is driving me crazy.
    // code...................................................
    GridBagLayout gridbag = new GridBagLayout();
    GridBagConstraints c = new GridBagConstraints();
    c.fill = GridBagConstraints.HORIZONTAL;
    pane.setLayout(gridbag)
    c.weightx = c.weighty = 1;
    c.insets = new Insets(5, 5, 5, 5); // 5-pixel margins on all sides
    // First Row
    date_IconLabel= new JLabel("Date")
    c.gridx = 0;
    c.gridy = 0;
    pane.add(date_IconLabel,c);
    textField1= new JTextField(("Text 1");
    c.gridx = 1;
    c.gridy = 0;
    pane.add(textField1 ,c);
    textField2 = new JTextField("Text 2");
    c.gridx = 2;
    c.gridy = 0;
    c.gridwidth=GridBagConstraints.REMAINDER;
    pane.add(textField2 ,c);
    //2nd Row
    date_IconLabel= new JLabel("Date");
    c.gridx = 0;
    c.gridy = 1;
    pane.add(date_IconLabel,c);
    textField3 = new JTextField("Text 3");
    c.gridx = 1;
    c.gridy = 1;
    pane.add(textField3 ,c);
    textField4 = new JTextField("Text 4");
    c.gridx = 2;
    c.gridy = 1;
    pane.add(textField4,c);
    Message was edited by:
    help_eachother

    Hello,
    I create a new Constraint object for every component.
    It might look like nonsense but it is clearer what
    you are really specifying in every component
    constraints.
    I find it otherwise difficult to follow all the
    changes done to the constraint through all the
    components. Reuse is a great thing but in this case
    is confusing.That's why I created a simple subclass of GridBagConstaints with a reset() method and a few other goodies:
    ==================
    import java.awt.GridBagConstraints;
    import java.awt.Insets;
    public class GBC extends GridBagConstraints {
         public GBC() {
              super();
         public GBC(
              int gridx,
              int gridy,
              int gridwidth,
              int gridheight,
              double weightx,
              double weighty,
              int anchor,
              int fill,
              Insets insets,
              int ipadx,
              int ipady) {
              super(
                   gridx,
                   gridy,
                   gridwidth,
                   gridheight,
                   weightx,
                   weighty,
                   anchor,
                   fill,
                   insets,
                   ipadx,
                   ipady);
        public void reset() {
            gridx = RELATIVE;
            gridy = RELATIVE;
            gridwidth = 1;
            gridheight = 1;
            weightx = 0;
            weighty = 0;
            anchor = CENTER;
            fill = NONE;
            insets = new Insets(0, 0, 0, 0);
            ipadx = 0;
            ipady = 0;
        public String toString() {
            final String SEP = System.getProperty("line.separator");
            return "GridBagConstraints" + SEP +
                   "\tgridx = "         + getGridXString()      + SEP +
                   "\tgridy = "         + getGridYString()      + SEP +
                   "\tgridwidth = "     + getGridWidthString()  + SEP +
                   "\tgridheight = "    + getGridHeightString() + SEP +
                   "\tweightx = "       + weightx               + SEP +
                   "\tweighty = "       + weighty               + SEP +
                   "\tanchor = "        + getAnchorString()     + SEP +
                   "\tfill = "          + getFillString()       + SEP +
                   "\tinsets = "        + insets                + SEP +
                   "\tipadx = "         + ipadx                 + SEP +
                   "\tipady = "         + ipady;
        private final String getGridXString() {
            String s = null;
            switch (gridx) {
                case RELATIVE:
                    s = "RELATIVE";
                    break;
                default:
                    s = String.valueOf(gridx);
            return s;
        private final String getGridYString() {
            String s = null;
            switch (gridy) {
                case RELATIVE:
                    s = "RELATIVE";
                    break;
                default:
                    s = String.valueOf(gridy);
            return s;
        private final String getAnchorString() {
            String s = null;
            switch (anchor) {
                //Absolute values
                case CENTER:
                    s = "CENTER";
                    break;
                case NORTH:
                    s = "NORTH";
                    break;
                case NORTHEAST:
                    s = "NORTHEAST";
                    break;
                case EAST:
                    s = "EAST";
                    break;
                case SOUTHEAST:
                    s = "SOUTHEAST";
                    break;
                case SOUTH:
                    s = "SOUTH";
                    break;
                case SOUTHWEST:
                    s = "SOUTHWEST";
                    break;
                case WEST:
                    s = "WEST";
                    break;
                case NORTHWEST:
                    s = "NORTHWEST";
                    break;
                //realtive values
                case PAGE_START:
                    s = "PAGE_START";
                    break;
                case PAGE_END:
                    s = "PAGE_END";
                    break;
                case LINE_START:
                    s = "LINE_START";
                    break;
                case LINE_END:
                    s = "LINE_END";
                    break;
                case FIRST_LINE_START:
                    s = "FIRST_LINE_START";
                    break;
                case FIRST_LINE_END:
                    s = "FIRST_LINE_END";
                    break;
                case LAST_LINE_START:
                    s = "LAST_LINE_START";
                    break;
                case LAST_LINE_END:
                    s = "LAST_LINE_END";
                    break;
            return s;
        private final String getFillString() {
            String s = null;
            switch (fill) {
                case NONE:
                    s = "NONE";
                    break;
                case HORIZONTAL:
                    s = "HORIZONTAL";
                    break;
                case VERTICAL:
                    s = "VERTICAL";
                    break;
                case BOTH:
                    s = "BOTH";
                    break;
            return s;
        private final String getGridWidthString() {
            String s = null;
            switch (gridwidth) {
                case RELATIVE:
                    s = "REALTIVE";
                    break;
                case REMAINDER:
                    s = "REMAINDER";
                    break;
                default:
                    s = String.valueOf(gridwidth);
                    break;
            return s;
        private final String getGridHeightString() {
            String s = null;
            switch (gridheight) {
                case RELATIVE:
                    s = "REALTIVE";
                    break;
                case REMAINDER:
                    s = "REMAINDER";
                    break;
                default:
                    s = String.valueOf(gridheight);
                    break;
            return s;
    }

  • Problem in calling a Panel while calling a cell in a JTable using Mouse.

    Hai there
    I am working in swing and trying to create an application that is displaying data using Table. Now, I have a requirement where in upon click on one of the column in the table i wish to display a panel which contains JTable. I am unable to get this functionality. The same functionality is successfully handled if i call it from a text field instead of a cell in JTable.
    Can any one suggest what the error could be??

    What data are you wanting to display in the JPanel? You can have the setColumnSelectionAllowed() method to true and that will allow you to select a column. Then you can use the getSelectedColumn() method to get the column number, then get all the row data for that column using the getValueAt(int row, int column) method and load it into your JPanel anyway you choose.

  • Facing problem while adding combobox using gridbaglayout

    HI, I have used gridbaglayout in my panel. after adding the gridbaglayout, if i select long value combobox does't display all the value of the selected value. Why?
    This is my code
    cboPrioritySearchValue = new JComboBox();
    cboPrioritySearchValue.setBackground(Color.white);
    cboPrioritySearchValue.addItem("ALL");
    cboPrioritySearchValue.addItem(Priority.NOT.getValue());
    cboPrioritySearchValue.addItem(Priority.ONE.getValue());
    cboPrioritySearchValue.addItem(Priority.TWO.getValue());
    cboPrioritySearchValue.addItem(Priority.THREE.getValue());
    cboPrioritySearchValue.addItem(Priority.FOUR.getValue());
    setConstraints(gbc,gbc.WEST,gbc.NONE,2,1,2,8,new Insets(2,5,5,5),0,0,0,0);
    gbl.setConstraints(cboPrioritySearchValue,gbc);
    panel.add(cboPrioritySearchValue);This is my setConstraints method,
    public GridBagConstraints setConstraints(GridBagConstraints gbc, int anchor,int fill,
                                                 int gridw, int gridh, int gridx, int gridy,
                                                 Insets insets, int ipadx, int ipady,
                                                 int weightx, int weighty)
            gbc.anchor     = anchor;
            gbc.fill       = fill;
            gbc.gridwidth  = gridw;
            gbc.gridheight = gridh;
            gbc.gridx      = gridx;
            gbc.gridy      = gridy;
            gbc.insets     = insets;
            gbc.ipadx      = ipadx;
            gbc.ipady      = ipady;
            gbc.weightx    = weightx;
            gbc.weighty    = weighty;
            return gbc;
        }Edited by: JavaHeroPrince on May 13, 2010 6:58 AM

    Thanks Pete, hopefully its only a temporary problem.Short answer: It is (well ... hopefully).
    Long answer: My server's dying regularly because all the connections fill up in CLOSE_WAIT states. This doesn't seem to have the same root cause as the reported bugs that I can find (issues with older JDKs) so I'm interested in investigating it beyond just upgrading everything to the latest and crossing my fingers. Unfortunately that will take time and I'm a bit pressed for spare time at the moment - so: my apologies; the domain is likely to be down until after the weekend at least.
    After the weekend I'll re-target sscce.org (and .com and .net which I acquired a little while back) to a different server that's not suffering from the problem. Or if Andrew prefers I'll target a server under his control.

  • The component  couldn't get smaller  using gridbaglayout

    There is a vertical jsplitpane ,the upper part contains button,jtable,combox using gridbaglayout,I have set the GridBagConstraints.weightx,weighty to 1. The problem is when I drag divider to change upper size,it couldn't get smaller, even if I set all of the upper components' minimumsize to a tiny value.
    here is the code, I wrote it in windowsbuilder (a kind of eclipse swing plugin), I guess you can see it using ve too.
    package frame;
    import java.awt.BorderLayout;
    import java.awt.EventQueue;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.border.EmptyBorder;
    import java.awt.Rectangle;
    import javax.swing.JSplitPane;
    import javax.swing.JList;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.JTextArea;
    import javax.swing.JLabel;
    import javax.swing.UIManager;
    import javax.swing.UnsupportedLookAndFeelException;
    import java.awt.Color;
    import javax.swing.JComboBox;
    import javax.swing.JButton;
    import java.awt.GridBagLayout;
    import java.awt.GridBagConstraints;
    import java.awt.Insets;
    public class FrmMain extends JFrame {
         private JPanel contentPane;
         private JTable table;
          * Launch the application.
         public static void main(String[] args) {
              createWin();
          * Create the frame.
         public FrmMain() {
              setTitle("Notebook");
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setBounds(100, 100, 573, 465);
              setBounds(new Rectangle(0, 0, 980, 738));
              contentPane = new JPanel();
              contentPane.setBounds(new Rectangle(0, 0, 980, 0));
              contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
              contentPane.setLayout(new BorderLayout(0, 0));
              setContentPane(contentPane);
              JSplitPane splAll = new JSplitPane();
              splAll.setDividerSize(10);
              splAll.setOneTouchExpandable(true);
              contentPane.add(splAll, BorderLayout.CENTER);
              JSplitPane splRight = new JSplitPane();
              splRight.setContinuousLayout(true);
              splRight.setDividerSize(10);
              splRight.setOneTouchExpandable(true);
              splRight.setOrientation(JSplitPane.VERTICAL_SPLIT);
              splAll.setRightComponent(splRight);
              JPanel pnlRightUp = new JPanel();
              splRight.setLeftComponent(pnlRightUp);
              GridBagLayout gbl_pnlRightUp = new GridBagLayout();
              gbl_pnlRightUp.columnWidths = new int[]{36, 54, 227, 88, 88, 211, 0};
              gbl_pnlRightUp.rowHeights = new int[]{23, 363, 0};
              gbl_pnlRightUp.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
              gbl_pnlRightUp.rowWeights = new double[]{0.0, 0.0, Double.MIN_VALUE};
              pnlRightUp.setLayout(gbl_pnlRightUp);
              JLabel label = new JLabel("\u5F53\u524D\u6709");
              GridBagConstraints gbc_label = new GridBagConstraints();
              gbc_label.anchor = GridBagConstraints.WEST;
              gbc_label.insets = new Insets(0, 0, 5, 5);
              gbc_label.gridx = 0;
              gbc_label.gridy = 0;
              pnlRightUp.add(label, gbc_label);
              JLabel lblCount = new JLabel("New label");
              lblCount.setForeground(Color.BLUE);
              GridBagConstraints gbc_lblCount = new GridBagConstraints();
              gbc_lblCount.anchor = GridBagConstraints.WEST;
              gbc_lblCount.insets = new Insets(0, 0, 5, 5);
              gbc_lblCount.gridx = 1;
              gbc_lblCount.gridy = 0;
              pnlRightUp.add(lblCount, gbc_lblCount);
              JComboBox tfKey = new JComboBox();
              GridBagConstraints gbc_tfKey = new GridBagConstraints();
              gbc_tfKey.fill = GridBagConstraints.HORIZONTAL;
              gbc_tfKey.insets = new Insets(0, 0, 5, 5);
              gbc_tfKey.gridx = 2;
              gbc_tfKey.gridy = 0;
              pnlRightUp.add(tfKey, gbc_tfKey);
              JLabel label_1 = new JLabel("\u6761");
              GridBagConstraints gbc_label_1 = new GridBagConstraints();
              gbc_label_1.anchor = GridBagConstraints.WEST;
              gbc_label_1.insets = new Insets(0, 0, 5, 5);
              gbc_label_1.gridx = 2;
              gbc_label_1.gridy = 0;
              pnlRightUp.add(label_1, gbc_label_1);
              JButton btnSearch = new JButton("\u641C\u7D22");
              GridBagConstraints gbc_btnSearch = new GridBagConstraints();
              gbc_btnSearch.anchor = GridBagConstraints.NORTH;
              gbc_btnSearch.fill = GridBagConstraints.HORIZONTAL;
              gbc_btnSearch.insets = new Insets(0, 0, 5, 5);
              gbc_btnSearch.gridx = 3;
              gbc_btnSearch.gridy = 0;
              pnlRightUp.add(btnSearch, gbc_btnSearch);
              JButton btnType = new JButton("\u7C7B\u522B\u7EF4\u62A4");
              GridBagConstraints gbc_btnType = new GridBagConstraints();
              gbc_btnType.anchor = GridBagConstraints.NORTH;
              gbc_btnType.fill = GridBagConstraints.HORIZONTAL;
              gbc_btnType.insets = new Insets(0, 0, 5, 5);
              gbc_btnType.gridx = 4;
              gbc_btnType.gridy = 0;
              pnlRightUp.add(btnType, gbc_btnType);
              JButton button_2 = new JButton("\u91CD\u65B0\u6253\u5F00\u7A97\u53E3");
              GridBagConstraints gbc_button_2 = new GridBagConstraints();
              gbc_button_2.anchor = GridBagConstraints.NORTHWEST;
              gbc_button_2.insets = new Insets(0, 0, 5, 0);
              gbc_button_2.gridx = 5;
              gbc_button_2.gridy = 0;
              pnlRightUp.add(button_2, gbc_button_2);
              JScrollPane spData = new JScrollPane();
              GridBagConstraints gbc_spData = new GridBagConstraints();
              gbc_spData.fill = GridBagConstraints.BOTH;
              gbc_spData.gridwidth = 6;
              gbc_spData.gridx = 0;
              gbc_spData.gridy = 1;
              gbc_spData.weightx=1;
              gbc_spData.weighty=1;
              pnlRightUp.add(spData, gbc_spData);
              table = new JTable();
              spData.setViewportView(table);
              JScrollPane scrollPane = new JScrollPane();
              splRight.setRightComponent(scrollPane);
              JTextArea taContent = new JTextArea();
              scrollPane.setViewportView(taContent);
              splRight.setDividerLocation(400);
              JScrollPane scrollPane_1 = new JScrollPane();
              splAll.setLeftComponent(scrollPane_1);
              JList lstType = new JList();
              scrollPane_1.setViewportView(lstType);
              splAll.setDividerLocation(180);
         public static void  createWin(){
              EventQueue.invokeLater(new Runnable() {
                   public void run() {
                        try {
                             try {
                               UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                           } catch (ClassNotFoundException e) {
                               e.printStackTrace();
                           } catch (InstantiationException e) {
                               e.printStackTrace();
                           } catch (IllegalAccessException e) {
                               e.printStackTrace();
                           } catch (UnsupportedLookAndFeelException e) {
                               e.printStackTrace();
                             FrmMain frame = new FrmMain();
                             frame.setVisible(true);
                        } catch (Exception e) {
                             e.printStackTrace();
    }thanks.

    I found the reason. the code below defines the jtable height as 363 pixels,so the divider couldn't make the upper part less than 363 pixels. I don't know why divider cound't but draging win could. Gridbaglayout is so complex.
    gbl_pnlRightUp.rowHeights = new int[]{23, 363, 0};if I use BorderLayout and put jtable into center in the upper part of splitpane, everything is ok. But if I had to use gridbaglayout,what was I gonna do?

  • Adding components using GridBagLayout?

    I am adding different components to a JPanel using GridBagLayout as my layout manager. After the JPanel is displayed I need to add additional components to the JPanel. After the components are added I call validate() to update the JPanel. However, after the new components are added, it seems like it changes the constraints in the previous components because they are not displayed correctly. I was wondering why this occurs after I call validate().
    Thanks,
    Michael

    Remember GBL uses components to calculate column widths/heights, etc. So if you are added wider or taller components after the container is shown and re validating the GBL will take new components into account and you'll see some changes.
    This is just a swag but you might try adding the components and calling setVisible to show or hide them -- no guarantees, but it might be worth a try.
    Cheers
    DB

  • How can I display and use the full RAW file?

    Hi,
    my camera (Canon S95) has a sensor with 4:3 aspect ratio and thus saves all RAW files in this format. Additionally, the camera can automatically create JPGs with a cropped ratio (e.g. 3:2 or 16:9). This is very helpful because you can see the target format already on the camera screen (with black bars on top and bottom), which helps the composition. However, when processing the photos on the big screen afterwards, it often also helps the photo to adjust the ratio a little bit and therefore use the additional information saved in the bigger 4:3 RAW file. This works very well with many of the freely available software tools.
    The problem found in Lightroom is now that it only shows the RAW photo in the cropped format and up to know I have found no way to display or use the full RAW format. So my question is: Which settings do I have to change to use the full format? What do I need to change?
    Searching a little bit on the web I found many other photographes having the exactly same problem with many different cameras. However none of them reported to have a solution for this. Still I am pretty sure that there must be a solution, since otherwise this would be a really heavy bug within Lightroom and I cannot imagine that Adobe would leave this matter unsolved.
    So I would really appreciate if someone could help me with this.
    Many Thanks
    Martin

    Hi Jao, Victoria, Lee Jay,
    Thanks for clearification. Do you have additional information about when this fix will be available and whether at least some popular old cameras will be supported?
    What I do not get is why Adobe would need to redo all existing cameras. I think this is a more general issue, where Lightroom misinterpretes the exif data which includes both the exif image height/width as well as the cropped image height/width. Intepreting this information correctly, any software should be able to display both - the full image and the cropped area (as shown by many cheap or free software tools). In the internet I found another workaround for the issue in Lightroom, which is undermining this point: When setting the cropped image height/width to the numbers of exif image height/width manually (e.g. with exif tools), Lightroom actually is able to display the full 4:3 picture.
    So this bug should be easily fixed for all cameras and I have no clue why Adobe still has no fixed it with Lightroom already available in version 4.2.
    Cheers
    Martin

  • Is there a way to select which display to use??

    Hi,
    I think my problem is OS dependent but i'm still gonna ask...
    Code related to this problem is:
      Process runner;
      Runtime t = Runtime.getRuntime();
      runner = t.exec("<path-to-office>\powerpnt.exe /s '<path-to-show>\show.ppt'");
      //  The program in line above is not nessecary  powerpoint it can be also Acrobat or web browser!!
      // (basicly  anythig which can be run on full-screen mode from command line)
    The Problemo:
    I have a computer (running on Win XP) which has two (or more) displays attached (Matrox G550),
    do i have a chance to detect amount of displays and if there is more than one display, can i somehow
    select in Runtime which display to use to show results of code above?
    Matrox solution was "when you run program once in certain display , it should be opened in same
    display next time", well... what if i shoud use 2 powerpoints in same time to have x kind of ppt in one
    screen and y kind in second screen wich has totally different kind of info what screen x does?
    If it's possible with JFrame to decide wich screen to use, i'm almost shure that i can change program to
    use pictures instead of external programs.
    -jori

    Hmm, I don't know how you would do this with out going native, but for Java frames you can use the following links.
    http://java.sun.com/j2se/1.4.2/docs/api/java/awt/GraphicsDevice.html
    http://openide.netbeans.org/multi-monitors.html

  • Deleting a row from a JTable using AbstractTableModel

    Hi,
    Can someone please help me on how should i go about deleting a row in a jtable using the AbstractTableModel. Here i know how to delete it by using vector as one of the elements in the table. But i want to know how to delete it using an Object[][] as the row field.
    Thanks for the help

    Hi,
    I'm in desperate position for this please help

  • TS1456 My 4th Gen iPod Nano isn't displaying a "Use iTunes to restore" message, but iTunes is displaying a restore message when I connect it. I have original music that I can't back up on my iPod. Is there any way that I can fix the iPod without restoring

    My 4th Gen iPod Nano isn't displaying a "Use iTunes to restore" message, but iTunes is displaying a restore message when I connect it. I have original music that I can't back up on my iPod. Is there any way that I can fix the iPod without restoring it?

    It's not designed to work like this. When you sync, the iPod stores some information that basically says 'this iPod belongs to computer xyz'. Apple did this to prevent copyright issues (syncing someone else's music).
    If you really want to do this, you'll have to at least tie both iTunes installations to the same account. Maybe have them sync with each other.

  • I have an Apple Powerbook G4, and my monitor doesn't function. I have an external display Monitor, however it's stuck in extended screen mode. How do I get it to mirror or duplicate the display without use of the on-board?

    As i had said, I have an Apple Powerbook G4, and my monitor doesn't function. I have an external display Monitor, however it's stuck in extended screen mode. How do I get it to mirror or duplicate the display without use of the on-board? Is there a Fn key combo i'm missing or is the issue more serious then i realize? any and all help and hints would be greatly apprichiated, thanks in advance.
    -Powerbook User

    The PowerBooks have an F-key that toggles mirrored and extended mode. My PB is loaned out right now but I think it was f7. The keycap has an icon on two overlapping rectangles, as I recall.
    EDIT: Yes! Found a pdf of the PB manual it shows F7 is the toggle:

  • I'm trying to set up a dual monitor for my new iMac. I'm using a second display I used with my old G5. My iMac recognizes the second monitor but the monitor won't turn on. Power button doesn't do anything on the monitor itself.

    I'm trying to set up a dual monitor for my new iMac. I'm using a second display I used with my old G5. My iMac recognizes the second monitor but the monitor won't turn on. Power button doesn't do anything on the monitor itself.

    If it won't turn on then the monitor is dead (power supply?, video circuits?).  Not worth repairing.
    If you have a new iMac then it has thunderbolt.  So exactly what is that monitor you are trying to connect?  For TB you can connect a mini-displayport monitor.   Probably (not 100% sure with TB) can use dvi or vga too if you have the appropriate adapter.

  • Need menu bar on BOTH displays when using external monitor

    How can I have the menu bar on BOTH displays without using the "Mirror Display" mode???
    I bought a Thunderbolt and use it with my MBA. It works fine overall but this is still like having one display instead of two. A real downer!!
    There are 2 modes:
    Mirror Displays: (identical screen: why waste valuable screen realestate?)
    "Normal" mode: where it gives you access to the 2 monitors independently (you can move apps. windows and locate them on any screen you want).
    In the "Normal" mode, you can move the menu bar from one display to the other but it does not resolve the problem. We need TWO menu bars, which work identical and can be used on whatever display the mouse cursor happens to be.
    Currently, let's say I have applications A & B displaying on MBA, applications C & D displaying on TB, and the Menu Bar on TB. It is a nightmare to work!!!! Anytime I want to work on A or B I have to move the mouse side way to get to the MBA, then to use the menu, I can't even move up into the TB all the way to the menu bar: I have to move through the side onto the TB then up to the menu bar, select, down through the TB, side way to the MBA, and on and on and on....
    Anybody knows how to duplicate a functional menu bar without Mirror Display?
    Anyway of simplifying this nightmare?
    Thanks

    I asked the same question a few days ago, got some other options then ...
    https://discussions.apple.com/message/16953617#16953617
    Many many things to try ...

  • How to disable 'display pdf (using Acrobat Pro X) in browser'?  Note:  The option is unavailable to un-check box.

    How to disable 'display pdf (using Acrobat Pro X) in browser'?  Note:  The option is unavailable to un-check box.

    Hi URT301,
    Please see this document: PDF Ownership when Reader X is Installed with Acrobat. You'll find several solutions to this problem in the FAQ section.
    Please let us know how it goes.
    Best,
    Sara

Maybe you are looking for

  • Xorg 1.5rc6 screws up urxvt in xmonad

    I have the testing repository enabled and i have an nVidia card so i upgraded my xorg-server, but when I restarted X and opened up an instance of urxvt it came out all funny, it isn't tiled and it doesn't get focus, but i can type in it. Does anyone

  • Can't download files on Android from Server 2012 Essentials Remote Web Access

    I have two servers, one with Windows Server 2012 Essentials, and the other SBS 2011.  Employees like using Remote Web Access to log in from anywhere and have access to shared folders.  It works perfect on a Desktop computer, but when they try to use

  • Hard drive crash: Repurchasing Music?

    Hey guys, im new here, but over the summer I had a major hard drve issue and lost nearly 1 TB of files, pictures, video, AND MUSIC. And now, I can see the soundtracks I bought in iTunes, but since the downloadedalbums are gone, i can't listen to them

  • Fnd_user last_logon_date query

    Looking through the applsys.fnd_user table on our R12.1.1 EBS system, I see that the last_logon_date field on the table often has lots of entries where the last_logon_date is e.g. 01-APR-2011 05:57:36. For those records, the last_updated_by is set to

  • How do you merge separate itunes accounts?

    I have 3 separate itunes accounts with balances (credit) on them. How do i put all the money into one?