Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Question about the NTS Authentication Service

783956Aug 21 2010 — edited Aug 21 2010
Good morning,

While reading some Oracle related articles on the web, I found the following:

>
NTS Authentication Service must be disabled in a default installation.

Recent versions of Oracle feature SQLNET Authentication Services, but most times (especially but not only with Personal Oracle), those services are not installed. Nevertheless, the Oracle installer enables their use. This is a bug in the Oracle installer.

In the plain text file sqlnet.ora (located in the same directory as TNSNAMES.ORA, i.e. ORACLE_HOME\net80\admin or ORACLE_HOME\network\admin), you may find the following line:
SQLNET.AUTHENTICATION_SERVICES= (NTS)

Remove that line or prefix it with a comment sign, so that it read like this:

# SQLNET.AUTHENTICATION_SERVICES= (NTS)

Save that file. You may need to restart Oracle if it runs on the same machine. Restarting the entire machine may take longer, but it is easier to do.

PLEASE NOTE: There may be Oracle installations where the NTS Authentication Service is required. But for such installations, you can expect that the local Oracle administrator knows that it is required.
>

The question is: How can I determine if the NTS authentication service is actually needed ?

Thank you for your help,

John.
This post has been answered by Aman.... on Aug 21 2010
Jump to Answer

Comments

Alan.M
Hi,
since JSplitPane extends JComponent so it will be able to listen to mouse; simply add a mouse listener and invoke what method you want on the listener ( mouse click, moved etc..)
JSplitPane split = new JSplitPane();
		split.addMouseListener(new MouseAdapter() {
			public void mouseClicked(MouseEvent e) {}
			  // call your method here 
		});
Regards,
Alan Mehio
London, UK
843806
Hi Alan,

Thanks for the swift reply. This is exactly what I thought and tried, however no events are being sent when I click on the Divider. Can you try and see if yours is giving you events for the divider clicks?

Regards,

Bob.
camickr
Try adding the MouseListener to the divider:
BasicSplitPaneUI ui = (BasicSplitPaneUI)splitPane.getUI();
ui.getDivider().addMouseListener(...);
843806
Thanks for that, it works great.

On a side issue is there any chance that the casting to BasicSplitPaneUI may fail?
843807
I do it this way:
// frame class fields
protected int splitPaneDefaultDividerLocation = -1;
protected JSplitPane splitPane;

// inside method for initialization of frame components,
// after splitPane is created and added to the frame content pane

    SplitPaneUI spui = splitPane.getUI();
    if (spui instanceof BasicSplitPaneUI) {
      // Setting a mouse listener directly on split pane does not work, because no events are being received.
      ((BasicSplitPaneUI) spui).getDivider().addMouseListener(new MouseAdapter() {
        public void mouseClicked(MouseEvent e) {
          if (e.getClickCount() > 1) {
            if (splitPane.getDividerLocation() != splitPaneDefaultDividerLocation) {
              splitPane.setDividerLocation(splitPaneDefaultDividerLocation);
            } else {
              splitPane.setDividerLocation(0);
            }
          }
        }
      });
    }

// splitPane.getDividerLocation() returns last value passed to splitPane.setDividerLocation()
// so at this point it returns -1 and cannot be used

    pack(); // Layout the components.
    splitPaneDefaultDividerLocation = splitPane.getUI().getDividerLocation(splitPane);
PhHein
Welcome to the forum. Please don't post in threads that are long dead and don't hijack other threads. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem.

I'm locking this thread now.
1 - 6
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 18 2010
Added on Aug 21 2010
16 comments
5,128 views