Search:

Type: Posts; User: liron50

Page 1 of 2 1 2

Search: Search took 0.22 seconds.

  1. Replies
    0
    Views
    408

    GridBag Layout fill/anchor properties

    Hi,
    I want to define that the component in the GridBagLayout won't expand itself. Just remain in it's standard size

    Currently I'm setting anchor = NORTH, fill = BOTH. Assume it should changed,...
  2. Replies
    1
    Views
    204

    Re: Constraint Exception for specific record

    Update.
    I removed the constraint and recreate it.
    No the update is working ok.

    Don't know what was the problem, only in the first place I didn't create the constraint, I just wrote the Java...
  3. Replies
    1
    Views
    204

    Constraint Exception for specific record

    Hi.
    I have simple table of Employee.
    one of the field in Employee is Manager, which is reference to the table itself. And there is constraint that validate it.

    Weird thing is that only for...
  4. Replies
    1
    Views
    200

    db_derby. clone database

    hi.

    I have created local DB with db_derby, and wrote java application code that connect to DB.

    Now I'm trying to copy the DB, so I can run tests with application without the risk have...
  5. Replies
    4
    Views
    201

    Re: Problem with JComboBox

    I added a few comments, hope it can help...

    I guess your suggestion will work, but it more complicated in the application, where the panel contain some other information.
    Still can't understand...
  6. Replies
    4
    Views
    201

    Re: Problem with JComboBox

    Yes.Exactly. I don't see why it isn't changing when selecting other value in combo.
    It does changed when pressing the button.

    I didn't wrote comments since it's only custom code for restoring the...
  7. Replies
    4
    Views
    201

    Problem with JComboBox

    Hello,
    I'm straggling few hours with this issue....

    I wrote simple code snippet to demonstrate the problem.

    Have button that set the value on JComboBox, and the JComboBox can also be changed...
  8. Replies
    4
    Views
    336

    [SOLVED] Re: Convert Formatted String to Integer

    Hi,
    Thanks I used the parse method, and it seems working.

    long newlong= longFormat.parse(strLong).longValue();
  9. Replies
    4
    Views
    336

    [SOLVED] Re: Convert Formatted String to Integer

    Hi Norm,
    Can you be more specify?
    Is the conversion that I'm trying is not possible?
  10. Replies
    4
    Views
    336

    [SOLVED] Convert Formatted String to Integer

    Hi,
    Appreciate any help on this issue.
    If I use the class DecimalFormat to format long number, how can I convert it back to integer?




    DecimalFormat longFormat = new DecimalFormat("#,###"); ...
  11. Replies
    2
    Views
    735

    Re: Highligh row in JTabel

    Hi,

    Currently I'm not changing those property at all.
    I try set them in all combination - TRUE/TRUE, TRUE/FALSE, FALSE/TRUE, FALSE/ FALSE, and doesn't seem to have effect.

    however if I comment...
  12. Replies
    2
    Views
    735

    Highligh row in JTabel

    hi,

    I'm using JTabel and AbstractTableModel to show data from DB.
    At the first version I simply show the data, and in this case when I click single row, this row was highlighted (the whole row)....
  13. Replies
    4
    Views
    1,293

    Re: preparedStatement.executeBatch failed

    OK. thanks.
  14. Replies
    4
    Views
    1,293

    Re: preparedStatement.executeBatch failed

    Hi,
    thanks for reply indeed this was the problem.

    but why do have to set auto commit false in order to work with bulk?
  15. Replies
    4
    Views
    1,293

    preparedStatement.executeBatch failed

    Hello,
    I'm having problem with this function and I think I'm doing something basically wrong.

    I want to insert some records(200+) to DB in bulk. I don't get any errors or exception in the process...
  16. Replies
    17
    Views
    1,850

    Re: Hiding\Showing parts of the frame

    Again it's work.
    But if the components that I set his visible to false is JPanel it's enough to set it's visible, if it's JScrollPane I also need to call pack();

    you can run the code example and...
  17. Replies
    17
    Views
    1,850

    Re: Hiding\Showing parts of the frame

    Yes,

    only in case of setting the visibility of JScrollPane I have to call method pack() of the frame, to see the change.
  18. Replies
    17
    Views
    1,850

    Re: Hiding\Showing parts of the frame

    oo my, just now I understand why it's happen,
    because when I do it in the second way:
    add(new JScrollPane(southPanel), BorderLayout.SOUTH);

    I actually had the scrollPane to the frame, and after...
  19. Replies
    17
    Views
    1,850

    Re: Hiding\Showing parts of the frame

    But you did help...
    thanks again
  20. Replies
    17
    Views
    1,850

    Re: Hiding\Showing parts of the frame

    by the way, it's acting the same also with GridBagLayout.
  21. Replies
    17
    Views
    1,850

    Re: Hiding\Showing parts of the frame

    I found where the problem.
    I wrote little program with 5 panel, and 5 buttons that each button make panel hide\show and indeed the panel expand as I want.

    But when I add the panels with...
  22. Replies
    17
    Views
    1,850

    Re: Hiding\Showing parts of the frame

    I don't sure,
    I am using currently GridBagLayout. but before that I try to use BorderLayout and that also won't help.
    After I set the visibly for component into false, his place become empty.
  23. Replies
    17
    Views
    1,850

    Re: Hiding\Showing parts of the frame

    what I'm trying is similar to the functionality in the eclipse environment.
    if, for example I have four windows opening (like the first picture - the explorer the code, the javadoc and the task list...
  24. Replies
    17
    Views
    1,850

    Re: Hiding\Showing parts of the frame

    but I want that the other components will re size and fill the space,
    I don't want that the frame will be smaller.
    if I will calculate it, I will need to take into account all possibilities and...
  25. Replies
    17
    Views
    1,850

    Hiding\Showing parts of the frame

    I have JFrame with some components, and I'm trying to supply methods for
    hiding\showing each component.
    I set the visible of the component to false - witch make him indeed invisible,
    and them I...
Results 1 to 25 of 26
Page 1 of 2 1 2