DNS timeout and Name Server timeout between two DC's

Hi All
My clients have a brand new domain built for them, with two domain controllers at separate sites, and one site is having some issues.
At one site (where DC2 is hosted), all users are having 5-10 minute log on delays - once in everything is running without issues. Site where DC1 is has zero issues - they run smoothly, get a nice quick login etc. All users are using redirected folders and
all have the same GPO's applying to them.
DC1 also has periodic issues communicating with DC2 - nslookup using DC2 gives "DNS request timed out. timeout was 2 seconds" on external AND internal queries, but then 5 minutes later will resolve perfectly. During the "DNS time out"
period, trying to resolve DC2 as a Name Server also gives the error "A timeout occurred during validation".
Not sure if these (slow logon and DNS/NameServer time out issues) issues are related but I am at a loss.
Reverse lookup zones are fully created and populated, entries aren't randomly deleting themselves. Replication between both DC's is working fine, no errors and SYSVOL/NETLOGON are sharing fine from both DC's. Occassionally restarting the DNS server services
on both servers will kick them back into talking - but only for around 30sec-1minute, after that they communicate periodically without problems and spend the rest of the time not resolving.
Any ideas floating around, as I am at a loss here. We haven't been able to join more than a few test users to DC2's site for fear of them all calling every day due to long log on periods.

Hi,
Are you pointing each DC/DNS to the other one as primary dns in tcp/ip properties? Can you post a dcdiag /a /f:dcdiag.log from the DC2?
Any warnings/errors in Application log on the client(s) facing issues after they get logged in ? Can you also confirm that users from site with DC2 are having DC at : set | find /I "LOGONSERVER" output?
Hope it helps.
Regards,
Calin
Hi Calin
The DC's were originally pointing at each other for the primary but others prior to posting here suggested that was not best practice anymore and said they should be the other way around - in any case, either direction doesn't resolve the issues.
The only application error the users are getting is :
The winlogon notification subscriber <SessionEnv> was unavailable to handle a notification event.
The winlogon notification subscriber <GPClient> took 84 second(s) to handle the notification event (Logon)
DCDIAG of DC2 :
Directory Server Diagnosis
Performing initial setup:
Trying to find home server...
Home Server = CAB1-DC-V01
* Identified AD Forest.
Done gathering initial info.
Doing initial required tests
Testing server: AUS\NDC1-DC-V01
Starting test: Connectivity
......................... NDC1-DC-V01 passed test Connectivity
Testing server: AUS\CAB1-DC-V01
Starting test: Connectivity
......................... CAB1-DC-V01 passed test Connectivity
Doing primary tests
Testing server: AUS\NDC1-DC-V01
Starting test: Advertising
......................... NDC1-DC-V01 passed test Advertising
Starting test: FrsEvent
......................... NDC1-DC-V01 passed test FrsEvent
Starting test: DFSREvent
......................... NDC1-DC-V01 passed test DFSREvent
Starting test: SysVolCheck
......................... NDC1-DC-V01 passed test SysVolCheck
Starting test: KccEvent
......................... NDC1-DC-V01 passed test KccEvent
Starting test: KnowsOfRoleHolders
......................... NDC1-DC-V01 passed test KnowsOfRoleHolders
Starting test: MachineAccount
......................... NDC1-DC-V01 passed test MachineAccount
Starting test: NCSecDesc
......................... NDC1-DC-V01 passed test NCSecDesc
Starting test: NetLogons
......................... NDC1-DC-V01 passed test NetLogons
Starting test: ObjectsReplicated
......................... NDC1-DC-V01 passed test ObjectsReplicated
Starting test: Replications
......................... NDC1-DC-V01 passed test Replications
Starting test: RidManager
......................... NDC1-DC-V01 passed test RidManager
Starting test: Services
......................... NDC1-DC-V01 passed test Services
Starting test: SystemLog
A warning event occurred. EventID: 0x80000109
Time Generated: 12/17/2014 08:25:05
Event String:
A pointer device did not report a valid unit of angular measurement.
A warning event occurred. EventID: 0x80000101
Time Generated: 12/17/2014 08:25:05
Event String:
A pointer device reported a bad angular physical range.
A warning event occurred. EventID: 0x80000102
Time Generated: 12/17/2014 08:25:05
Event String:
A pointer device reported a bad angular logical range.
A warning event occurred. EventID: 0x80000109
Time Generated: 12/17/2014 08:25:06
Event String:
A pointer device did not report a valid unit of angular measurement.
A warning event occurred. EventID: 0x80000101
Time Generated: 12/17/2014 08:25:06
Event String:
A pointer device reported a bad angular physical range.
A warning event occurred. EventID: 0x80000102
Time Generated: 12/17/2014 08:25:06
Event String:
A pointer device reported a bad angular logical range.
A warning event occurred. EventID: 0x80000109
Time Generated: 12/17/2014 08:47:55
Event String:
A pointer device did not report a valid unit of angular measurement.
A warning event occurred. EventID: 0x80000101
Time Generated: 12/17/2014 08:47:55
Event String:
A pointer device reported a bad angular physical range.
A warning event occurred. EventID: 0x80000102
Time Generated: 12/17/2014 08:47:55
Event String:
A pointer device reported a bad angular logical range.
A warning event occurred. EventID: 0x80000109
Time Generated: 12/17/2014 08:47:55
Event String:
A pointer device did not report a valid unit of angular measurement.
A warning event occurred. EventID: 0x80000101
Time Generated: 12/17/2014 08:47:55
Event String:
A pointer device reported a bad angular physical range.
A warning event occurred. EventID: 0x80000102
Time Generated: 12/17/2014 08:47:55
Event String:
A pointer device reported a bad angular logical range.
A warning event occurred. EventID: 0x80000109
Time Generated: 12/17/2014 08:47:55
Event String:
A pointer device did not report a valid unit of angular measurement.
A warning event occurred. EventID: 0x80000101
Time Generated: 12/17/2014 08:47:55
Event String:
A pointer device reported a bad angular physical range.
A warning event occurred. EventID: 0x80000102
Time Generated: 12/17/2014 08:47:55
Event String:
A pointer device reported a bad angular logical range.
......................... NDC1-DC-V01 failed test SystemLog
Starting test: VerifyReferences
......................... NDC1-DC-V01 passed test VerifyReferences
Testing server: AUS\CAB1-DC-V01
Starting test: Advertising
......................... CAB1-DC-V01 passed test Advertising
Starting test: FrsEvent
......................... CAB1-DC-V01 passed test FrsEvent
Starting test: DFSREvent
There are warning or error events within the last 24 hours after the
SYSVOL has been shared. Failing SYSVOL replication problems may cause
Group Policy problems.
......................... CAB1-DC-V01 passed test DFSREvent
Starting test: SysVolCheck
......................... CAB1-DC-V01 passed test SysVolCheck
Starting test: KccEvent
......................... CAB1-DC-V01 passed test KccEvent
Starting test: KnowsOfRoleHolders
......................... CAB1-DC-V01 passed test KnowsOfRoleHolders
Starting test: MachineAccount
......................... CAB1-DC-V01 passed test MachineAccount
Starting test: NCSecDesc
......................... CAB1-DC-V01 passed test NCSecDesc
Starting test: NetLogons
......................... CAB1-DC-V01 passed test NetLogons
Starting test: ObjectsReplicated
......................... CAB1-DC-V01 passed test ObjectsReplicated
Starting test: Replications
......................... CAB1-DC-V01 passed test Replications
Starting test: RidManager
......................... CAB1-DC-V01 passed test RidManager
Starting test: Services
......................... CAB1-DC-V01 passed test Services
Starting test: SystemLog
An error event occurred. EventID: 0x0000272C
Time Generated: 12/17/2014 08:30:22
Event String:
DCOM was unable to communicate with the computer 139.130.4.4 using any of the configured protocols; requested by PID 1810 (C:\Windows\system32\dcdiag.exe).
An error event occurred. EventID: 0x0000272C
Time Generated: 12/17/2014 08:30:43
Event String:
DCOM was unable to communicate with the computer 203.50.2.71 using any of the configured protocols; requested by PID 1810 (C:\Windows\system32\dcdiag.exe).
An error event occurred. EventID: 0x0000272C
Time Generated: 12/17/2014 08:31:05
Event String:
DCOM was unable to communicate with the computer 8.8.4.4 using any of the configured protocols; requested by PID 1810 (C:\Windows\system32\dcdiag.exe).
An error event occurred. EventID: 0x0000272C
Time Generated: 12/17/2014 08:31:27
Event String:
DCOM was unable to communicate with the computer 8.8.8.8 using any of the configured protocols; requested by PID 1810 (C:\Windows\system32\dcdiag.exe).
......................... CAB1-DC-V01 failed test SystemLog
Starting test: VerifyReferences
......................... CAB1-DC-V01 passed test VerifyReferences
Running partition tests on : DomainDnsZones
Starting test: CheckSDRefDom
......................... DomainDnsZones passed test CheckSDRefDom
Starting test: CrossRefValidation
......................... DomainDnsZones passed test
CrossRefValidation
Running partition tests on : aus
Starting test: CheckSDRefDom
......................... aus passed test CheckSDRefDom
Starting test: CrossRefValidation
......................... aus passed test CrossRefValidation
Running partition tests on : ForestDnsZones
Starting test: CheckSDRefDom
......................... ForestDnsZones passed test CheckSDRefDom
Starting test: CrossRefValidation
......................... ForestDnsZones passed test
CrossRefValidation
Running partition tests on : Schema
Starting test: CheckSDRefDom
......................... Schema passed test CheckSDRefDom
Starting test: CrossRefValidation
......................... Schema passed test CrossRefValidation
Running partition tests on : Configuration
Starting test: CheckSDRefDom
......................... Configuration passed test CheckSDRefDom
Starting test: CrossRefValidation
......................... Configuration passed test CrossRefValidation
Running enterprise tests on : swms.com
Starting test: LocatorCheck
......................... swms.com passed test LocatorCheck
Starting test: Intersite
Doing intersite inbound replication test on site AUS:
......................... swms.com passed test Intersite
SYSVOL is sharing OK, these errors are occurring when DC1 is performing backups and comes good a few seconds later)
The DNS failures are not on the NIC of each server they are the forwarders for the server, not sure why they are failing as DNS lookup is running fine and the IP's are resolving correctly within the forwarders.
set | find /I "LOGONSERVER"
C:\Users\Christopher.McCartne>set | find /I "LOGONSERVER"
LOGONSERVER=\\NDC1-DC-V01
NDC1 = DC1
CAB1 = DC2
The users are logging onto NDC1 currently as I did switch around their DNS servers to have DC1 as their primary to test if this resolved the logon times. It didn't so I've switched them back and will re-run the check to see which server is the logonserver.

Similar Messages

  • How can I make a server differ between two or more clients?

    How can I make a server differ between two or more clients?
    The clients can connect and talk to the server fine, but how can I make the server talk to one, two or all clients? i.e. what would be a good way to implement this?
    Currently, the server listens for connections like this:
    while (listening) {
    try {
    new ServerThread(this, serverSocket.accept()).start();
    I guess one way would be to add the ServerThreads to a Hashtable with the client ID as key, and then get the ServerThread with the proper client ID, but this seems unnecessary complicated. Any ideas?

    Complicated was perhaps the wrong word, I should have
    written something like it doesn't "feel" right. Or is
    this a common and good way to solve communication
    between a server and multiple clients?Thats pretty much how I do it. I normally use an array or ArrayList of Sockets instead of HashTable, with [0] being the first player etc.... Then you can communicate with exactly who you want. If you want to send bytes to all of them, just send the same thing to each socket individually (or is there a better way to do this?).

  • Is it possible to share 1 bluetooth keypad and 1 mouse pad between two computers in target mode?

    Is it possible to share 1 bluetooth keypad and 1 mouse pad between two computers in target mode? Grab a drink and let me tell you my story.
    I purchased two computers... an iMac 27" i7 3.4 16GB RAM and a Mac mini 2.3 i5 8 GB RAM. Both have Thunderbolt capability and are in fact connected by thunderbolt. I have 3 problems...
    1. My Mac mini WILL NOT recognize any bluetooth keyboard. Let me back up for clarification. I set my iMac up first. No problems there. I then went on to set up my mac mini. A couple of interesting things happened concering bluetooth activity. First thing is that the keypad, which was already paired with my iMac wouldn't be recognized by the mac mini, and yet my bluetooth mouse which was paired with my iMac became paired with my mac mini and thus wouldn't be recognized by my iMac anymore. I had to go to my back room and dig out my other bluetooth mouse so that my iMac would at least recognize my second mouse. So now I have two "mice"presently. One for the mac mini, the other for the iMac. Thankfully I also had a USB keypad for my mac mini. My bluetooth keypad is still paired with my iMac but won't pair with my mac mini, which brings me to another question....
    2. CAN 1 KEYPAD AND 1 MOUSE PAIR WITH TWO DIFFERENT COMPUTERS SO THAT WHEN I GO INTO TARGET MODE VIA THUNDERBOLT I CAN USE THE SAME KEYPAD AND MOUSE FOR BOTH COMPUTERS? Anybody have some thoughts on that problem?
    3. WHY IN THE WORLD IS MY MOUSE CURSOR DISAPPEARING EVERYTIME I EXIT TARGET MODE VIA PASSWORD AND COMMAND F2. I'm using target mode to access my mac mini. But when I exit target mode to get back into my iMac I'm looking at my iMac screen but I can't see the mouse pointer! I can move the pointer around even though I can't see it. Wierd. And this has apparently been going on for some time with other users for over a year. I am presently completely up to date on Lion updates. Both systems are running 10.7.4. Does anyone have a solution or heard a rumor of a solution coming soon regarding the invisible mouse cursor "curse". I hate having to restart my iMac everytime I exit out of target mode just so I can get my mouse cursor visible again.
    Food for thought.... Wouldn't it be really cool to have a target mode capability to see your other computers desktops in seperate window screens on your main display. You then could go back and forth from each window by just double clicking or by certain key commands. You could drag and drop from desktop to desktop. Tell me this is coming soon.
    Thanks

    There was a duplicate post of this question answered at:
    http://exchange.ni.com/servlet/ProcessRequest?RHIV​EID=101&RPAGEID=135&HExpertOnly=&HFORCEKWTID=8448:​5&HOID=50650000000800000065190000&UCATEGORY_0=_26_​%24_13_&UCATEGORY_0=_26_%24_13_&UCATEGORY_0=_26_%2​4_13_&UCATEGORY_S=0

  • 2008 R2 PDC with DNS, File and Print Server Roles

    Hi all,
    we have a brand new Canon iRA7260 setup on 2008 R2 print server, which is also our DC, DNS, DHCP and File Server with latest PCL5c drivers downloaded from Canon's website as recommended at that time by the canon technician who assembled the
    machine. All our laptops and desktops are running Windows 7 64-bit and after creating a GPO everyone got connected to the printer no problem, the printer has a static IP, same subnet as the print server and PDC, printer's port has been setup to RAW
    and to spool documents, driver isolation setup to default.
    All users are setup for secure print, so every print job they send to the printer stays on the printer until they walk up to the machine and release it by punching in a department's pin. Everything works great except for every morning a get a few complaints
    that the jobs sent to the printer did not appear in the secure print folder. There is no errors of any kind on workstations and all I see in the print job logs on the print server is that document been spooled, printed and deleted. The strange thing is that
    the size of the document that disappears is always shown as 0 bytes in size and 1 page long. And the whole process of spooling printing and deleting happens within 1 second according to logs. There is no errors or warnings in the log except for informational
    events.
    I just discovered that what actually fixes this issue for me is not even restarting the print spooler on the print server, but just login into the print server from my workstation via RDP with admin credentials. Once I login into the server remotely,
    every print job sent to the printer afterwards from every workstation in our office appears as usual in users secure print mailboxes. Users don't even have to reboot their work stations, everything just starts working as usual. There is no overnight activities
    on that server as all our staff leaves the offices by 8 p.m. the latest and the only thing that is running overnight is the Symantec's Backup Executive backup jobs. Is it possible that a back up job could somehow affect the print server/print driver settings
    or put it into a "sleep" mode so it would require a domain admin login to the server to bring it back into operational state?

    Hi, the print server had default permissions set after the role was installed. I just added domain users and authenticated users with print and view server rights. I don't think this is a problem though because Samsungs Brothers and Xerox printers
    are working. It looks like some process that runs at night on the print server disallows users to print to the Canon printer when they come in in the morning. Login remotely with admin credentials into the 2008 R2 that has print server role installed and this
    canon printer deployed via GPO fixes this immediately for all users. After the printer works fine until the last staff leaves the office. However when I come in in the morning everyone reports to me the same problem which again I'm able to fix by login with
    my domain admin credentials. Could this be due to some special permissions that canon drivers require to be added that I'm not aware of? Or could this be caused by the overnight Backup Executive 2010 R3 backup job that kicks in at 9 p.m. every night?
    Thanks

  • How a router can resolve dns without ip name-server command?

    Hello everyone,
    A question about the command "ip name-server *.*.*.*"
    If I didn't put in the DNS server, the router can still resolve the domain name. You can see the domain server is 255.255.255.255.
    Why does this happens?
    R4#ping www.cisco.com
    Translating "www.cisco.com"...domain server (255.255.255.255) [OK]
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 184.31.192.170, timeout is 2 seconds:
    Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
    R4#

    Hi,
    There is a name server inside the LAN. Before searhing in the DNS server, it checks the name server in the LAN to reduce the time for searching. The name server of the LAN is like a cache which stores the results coming from the DNS server.
    So, it is name server of the LAN which is resolving the IP address.
    Thank you.
    * please rate the helpful posts.

  • Allocating and delegating permissions in Exchange Server 2010 between two AD security group.

    People,
    Can anyone please assist me in where and how to assign the following two AD security group in Exchange Server 2010?
    IT Admin group (Full access and permission for all AD and Exchange related).
    IT Helpdesk group (can only create mailbox and modify the mailbox properties including AD distribution group and contacts).
    Because in Exchange Server 2007, everything can be managed easily through the AD security group that is created during the installation such as
    Exchange Organization Administrators group for full access for IT Admin team and Exchange Recipient Administrators group for managing the mailbox user for Help Desk team.
    /* Server Support Specialist */

    Hi,
    Based on my knowledge, Exchange 2010 has an Organization Management group instead of the Exchange Organization Administrators group. Use the Recipient Management group instead of the Exchange Recipient Administrators group. In your case, you can add the
    IT Admin group to the Organization Management group, add the IT Helpdesk group to the Recipient Management group.
    Hope this can be helpful to you.
    Best regards,  
    Amy Wang
    TechNet Community Support
    Thanks, Amy,
    But for some reason I cannot see those built in AD security group in my ADUC?
    So should I recreate it manually by right clicking on the AD user and Console ?
    /* Server Support Specialist */

  • Export and import imovie project between two mac- Help

    Hi,
    I am working on a imovie project in my Macbook and now want to transfer the unfinished project  to my friend's Macbook so he can edit and add some songs.
    What I did was click "Export Movie" and then save the movie to my destop- formated - name.m4v, draged the saved movie file to USB and transfer to my friend's Macbook. To import the file into iMovie in his labtop, I created a new project and just drag the file into the event library.
    It turned out that I imported a movie vedio instead of a project and I couldn't edit it like I did in my Mac. (add things inbetween clips, change photos, change sounds, music, transitioning etc)
    Is there any way in which I can transfer the iMovie project to another macbook, not appear as a vedio but will appear as a project when I actually continue work on it like I did in the original Macbook?
    Thank you.

    Moving Event's and Project's
    Hi
    Moving Event's and Project's
    Connection - Either connect one Mac in Target mode to the other via FireWire. Or use an external hard disk !
    (Target-Mode - Start one Mac e.g. laptop - BUT keep T-key down during full up-start - Now a FW-symbol is jumping around the screen and it will work as an external hard disk when connected to the other Mac)
    A. The External Hard Disk - MUST BE - Mac OS Extended (hfs) formatted to work for Video. UNIX/DOS/FAT32/Mac OS Exchange works for most other things but not for Video whatever program is used (iMovie or FinalCut)
    B. Should be a FireWire one as USB/USB2 performs badly to me and especially when filling up
    C. Do never Move or Alter any folder named
    • iMovie Event's - or -
    • iMovie Project's
    on DeskTop/Finder - as this will result in iMovie losing connections to them and repair can be anything from hard to impossibly
    D. Moving and Copying must be done within iMovie application and Events to Events - and - Project's to Project's.
    E. Moving Project's to Event's - Do not work for me - I have to export project as a QuickTime movie then Import this into Events.
    Event's window can show two faces
    Like this
    or like this
    from one hard disk Event - You can move it to the other hard disk
    You can not (at least not me) move Event to Project or other way around only
    Event to Event and Project to Project
    Yours Bengt W

  • Can My Dad and I Swap iPhones between two different accounts???

    Last week I purchased an iPhone 3g. Now I find out the 3gs is available. My dad saw my 3g and is going to purchase one when he switches from Verizon in August.
    I want the 3gs.
    He wants the 3g.
    Here is what we want to do. He wants to purchase the 3gs and swap it with my 3g. Is this possible? If so, what do I need to do? These are two different accounts - its not a family plan.
    Thanks!
    Message was edited by: Hardsheller

    Thanks, I did just that. They said since I'm a premier customer that I had a 30 day buyers remorse policy and they allowed me to upgrade for the difference I paid for the 3G (16GB) and the 3G S (32 GB)!

  • Drag and Drop Swing Components between two different Application Windows

    Hi!!!
    I tried the Dnd feature using the DnD api. It was a simple test, where I ahd two different app windows each made up of a JLabel. One I registered as drag component and the other as a drop component. the drop componenet(JLabel) does not have any text making it invisble to the eyes. When I drag the other JLabel to the drop window, the drop JLAbel takes the text value. I was successful so far.
    But can I do the same for any other Swing component in a scenario where when I drag the component, the component should have physically moved into the other window.
    any help on this with sample code will be greatly apprciated.
    Thanks in advance
    Suja

    Ok I found the answer to your problem. If you download the tutorial they have the code there it's in one folder. I hope this helps.
    http://java.sun.com/docs/books/tutorial/

  • How to reconcile EXcise duty recovered and Ex duty paid (Between two G/l a)

    Hi,
    I had two G/l accounts one is Excice duty recovered  and another one is Excise duty paid(Exp) .  Now i want to reconcile both the accounts.
    Is there any report to reconcile this...
    Your earliest action would be highly appreciable.
    Best regards,
    Veena

    dear all, i closed this problem by  putting the user exist "duty inexport" and pass the field suppress_calculation as "x"

  • How to display even and odd number ranges between two given inputs.

    Hi Every one,
    I am just started my career in sap abap and trying to find the solution for this.
    I am trying to display number range using select options, but I am getting an error "Memory low leave the transaction before taking a break".
    Example: when I give two number 2 and 10 , it should display set of all even and odd numbers in that range.
    Below is the code logic that I am using:
    data: a type i,
             b type i,
             c type i,
             d type i,
             num type i.
    select-options: in for num.
    a = inp-low.
    b=inp-high.
    c = inp-low mod 2.
    d = inp-high mod 2.
    while a <=b and c = 0.
    write: "even numbers:', a.
    b = a + 1.
    endwhile.
    while a <=b and c <> 0.
    write: "odd numbers:', b.
    b = a + 1.
    endwhile.
    Any help will be much appreciated.

    This is your logic...changed:
    data: a type i,
              b type i,
              c type i,
              d type i,
              num type i.
    data: even type i,
           odd  type i.
    select-options: in for num.
    a = in-low.
    b = in-high.
    c = a mod 2.
    if c is INITIAL. "It measn a is even
       even = a.
       odd  = a + 1.
    else.
       odd  = a.
       even = a + 1.
    endif.
    * Even
    a = even.
    while a <= b.
       write: / 'even numbers:', a.
    *  b = a + 1.
       a = a + 2. "The next even number
    endwhile.
    * Odd
    a = odd.
    while a <= b .
       write: / 'odd numbers:', a.
       a = a + 2. "The next odd number
    endwhile.

  • How to drag and drop an Image between two JPanels inside a Split Pane

    I'm tring to do that, and my actual problem is as follows:
    I drag the Image from the bottomPanel but I can't drop it in the topPanel, I'm using this classes:
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    import java.awt.dnd.*;
    import java.awt.datatransfer.*;
    import java.awt.image.*;
    public class MoveableComponentsContainer extends JSplitPane {     
         public DragSource dragSource;
         public DropTarget dropTarget;
    public JPanel topPanel = new JPanel();
    public JPanel bottomPanel = new JPanel();
         public int ancho;
    public int alto;
    public MoveableLabel lab1,lab2,lab3,lab4;
    public Icon ico1, ico2,ico3,ico4;
    private static BufferedImage buffImage = null; //buff image
         private static Point cursorPoint = new Point();
    public int getMaximumDividerLocation() {
    return ( ( int ) ( alto * .85 ) );
    public int getMinimumDividerLocation() {
    return( ( int ) ( alto * .85 ) );
         public MoveableComponentsContainer(int Weight, int Height ) {
    alto = Height;
    ancho = Weight;
    setOrientation( VERTICAL_SPLIT);
    setDividerSize(2);
    getMaximumDividerLocation();
    getMinimumDividerLocation();
    setPreferredSize(new Dimension( (int) ( Weight * .99 ), (int) ( Height * .94 ) ) );
    setDividerLocation( getMaximumDividerLocation() );
    System.out.println( " getDividerLocation() = " + getDividerLocation() );
    topPanel.setName("topPanel");
    bottomPanel.setName("bottomPanel");
    bottomPanel.setPreferredSize( new Dimension( (int) ( Weight * .99 ), (int) ( ( Height * .94 ) * .15 ) ) );
    bottomPanel.setMaximumSize( new Dimension( (int) ( Weight * .99 ), (int) ( ( Height * .94 ) * .15 ) ) );
    bottomPanel.setMinimumSize( new Dimension( (int) ( Weight * .99 ), (int) ( ( Height * .94 ) * .15 ) ) );
    topPanel. setPreferredSize( new Dimension( (int) ( Weight * .99 ), (int) ( ( Height * .94 ) * .85 ) ) );
    topPanel. setMaximumSize( new Dimension( (int) ( Weight * .99 ), (int) ( ( Height * .94 ) * .85 ) ) );
    topPanel. setMinimumSize( new Dimension( (int) ( Weight * .99 ), (int) ( ( Height * .94 ) * .85 ) ) );
    bottomPanel.setEnabled(true);
    bottomPanel.setVisible(true);
    bottomPanel.setBackground( new Color( 57,76,123 ) );
    topPanel. setEnabled(true);
    topPanel. setVisible(true);
    topPanel. setBackground( new Color( 57,76,123 ) );
    setBottomComponent( bottomPanel );
    setTopComponent( topPanel );
    setOneTouchExpandable( false );
    bottomPanel.setBorder(BorderFactory.createTitledBorder("Drag and Drop Test"));
              setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED, Color.white, Color.gray));
    bottomPanel.setLayout( new FlowLayout() );
    topPanel.setLayout(new FlowLayout());
              addMoveableComponents();
         private void addMoveableComponents() {
    ico1 = new ImageIcon( "/usr/local/installers/java/lll/DnD/switchm.gif");
    lab1 = new MoveableLabel("Centrales", ico1, topPanel );
    lab1.setName("labelOne");
    bottomPanel.add( lab1 );
              lab2 = new MoveableLabel("Destinos", ico1, topPanel);
    lab2.setName("labelTwo");
              bottomPanel.add( lab2 );
              lab3 = new MoveableLabel("Registros", ico1, topPanel );
    lab3.setName("labelThree");
              bottomPanel.add( lab3 );
              lab4 = new MoveableLabel("Parametros", ico1, topPanel);
    lab4.setName("labelFour");
              bottomPanel.add( lab4 );
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    import java.awt.dnd.*;
    import java.awt.datatransfer.*;
    public class MoveableLabel extends JLabel implements Transferable {
    final static int FILE = 0;
    final static int STRING = 1;
    final static int IMAGE = 2;
    DataFlavor flavors[] = { DataFlavor.javaFileListFlavor,
    DataFlavor.stringFlavor,
    DataFlavor.imageFlavor };
    public JPanel PanelDestino;
    public JPanel PanelOrigen;
    public DropTarget dropTarget;
    public DropTargetListener dropTargetLis;
         private static final Border border = BorderFactory.createLineBorder(Color.black, 1);
         public MoveableLabel(String text, Icon ic, JPanel DestPanel) {
              super( text, ic, TRAILING);
    PanelDestino = DestPanel;
              MouseEventForwarder forwarder = new MouseEventForwarder();
              addMouseListener(forwarder);
              addMouseMotionListener(forwarder);
              setBorder(border);
              setBounds(0,0,50,100);
              setOpaque(true);
    setTransferHandler(new TransferHandler("text"));
    setBackground( new Color( 57,76,123 ) );
    public synchronized DataFlavor[] getTransferDataFlavors() {
         return flavors;
    public boolean isDataFlavorSupported(DataFlavor flavor) {
    boolean b = false;
    b |= flavor.equals(flavors[ FILE ]);
    b |= flavor.equals(flavors[STRING]);
    b |= flavor.equals(flavors[ IMAGE]);
    return (b);
    public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, java.io.IOException {
    return this;
         final class MouseEventForwarder extends MouseInputAdapter {
              public void mousePressed(MouseEvent e) {
                   Container parent = getParent();
    Container brother = (Container)PanelDestino;
    System.out.println( "Parent 1 = " + parent.getName() );
    System.out.println( "Destino 1 = " + brother.getName() );
    JComponent c = (JComponent) e.getSource();
    System.out.println( "getsource() = " + c.getName() );
    TransferHandler th = c.getTransferHandler();
    th.exportAsDrag( c, e, TransferHandler.COPY_OR_MOVE );
    dropTarget = getDropTarget();
    System.out.println( "dropTarget.getComponent().getName() = " + dropTarget.getComponent().getName() );
    for ( int a=0; a < parent.getComponentCount(); a++ ) {
    parent.getComponent( a ).setEnabled( false );
    brother.setDropTarget( dropTarget );
    System.out.println( "dropTarget.getComponent().getName() = " + dropTarget.getComponent().getName() );
              public void mouseReleased(MouseEvent e) {
                   Container parent = getParent();
    Container brother = PanelDestino;
    System.out.println( "Parent 2 = " + parent.getName() );
    System.out.println( "Destino 2 = " + PanelDestino.getName() );
    parent.setEnabled( true );
    brother.setEnabled( false );
    for ( int a=0; a < parent.getComponentCount(); a++ ) {
    parent.getComponent( a ).setEnabled( true );
    import java.awt.*;
    import javax.swing.*;
    public class TestDragComponent extends JFrame {
         public TestDragComponent() {
    super("TestDragComponent");
    Toolkit tk = Toolkit.getDefaultToolkit();
    Dimension dm = new Dimension();
    dm = tk.getScreenSize();
    System.out.println(dm.height);
    System.out.println(dm.width );
    Container cntn = getContentPane();
    cntn.setFont(new Font("Helvetica", Font.PLAIN, 14));
    cntn.add(new MoveableComponentsContainer(dm.width,dm.height));
              pack();
              setVisible(true);
         public static void main(String[] args) {
              new TestDragComponent();

    Ok I found the answer to your problem. If you download the tutorial they have the code there it's in one folder. I hope this helps.
    http://java.sun.com/docs/books/tutorial/

  • RDP resolution and scaling level issues between two Win8.1 systems

    I'm trying to follow along with this blog post that describes RDB 8.1 resolution and scaling level updates:
    http://blogs.msdn.com/b/rds/archive/2013/12/16/resolution-and-scaling-level-updates-in-rdp-8-1.aspx
    I'm connecting from one Win8.1 Pro system to another and the scaling level control on the Display control panel, I'm getting an error message that says "The
    display settings can't be changed from a remote session". Both copies of Win8.1 are Pro editions and have had all updates installed.
    Shouldn't my install mean I've got RDB 8.1 with the latest video drivers and that I should
    be able to make these changes? Thanks.

    Hi Chris,
    To verify, if you open a dialog on the remote system, for example, System Properties, and open the same locally and place them side by side, are they the same size, fonts, etc?
    I need to do some testing to verify that auto scaling is not limited to Enterprise SKU.  If we do not get it solved in the next day or so then I may want you to do a screen share and show me what is happening so that I can investigate further.
    -TP

  • Is there a way that you can share and update the ical between two iPhones 4s?

    Is there a way that you can share and update the ICal on different Iphone 4S?

    I did that. It looks like everything I want to apply to the iphone from my computer looks good. When I perform an actual sync, what is on my iphone and what I have checked off on the computer are not the same.

  • Sharing photos from two iPhones and one photo library between two macs

    Does anyone have a best practice about how to share one photo library within a family?
    My wife and I each have iPhones (a 5s and a 6).  She has an MacBook Pro.  I have a MacBook Air.  We would each like to have access to any picture taken on either of our phones on either computer.  Is that possible?  Does it require duplicating photo libraries on each computer? 
    We also have a DSLR.  We would like to import picture from that camera into the same photo library.
    I purchased an external hard drive which I have attached to my time capsule.  I have created another photo library on that and I know how to select a specific library when opening iPhoto.  But then I don't have access to photos when I travel, unless there is some way for me to access the external drive remotely.
    Thanks for any help you can provide on some/all these fronts!

    The way to do it is to have one Library on an external disk formatted Mac OS X Extended, Journaled. But that disk must be directly connected to the computer,  not by wireless.
    Note that the upcoming Photos.app - due in 2015 and designed to replace iPhoto and Aperture - may offer other possibilities.

Maybe you are looking for

  • Fastest possible disk access in os9

    hi there as the topic says im interested in achieving the best possible disk speeds in os9 for use with old media programs. i have resurrected an old g4 450mhz sawtooth that im using to run some old music production programs im pretty sure that the d

  • Why do I get Flicker on screen with Linux Standalone Flash Player ?

    Hello, I have a problem with the standalone Linux Flash player. The thing is that when I have a video playing in background and over it I make some tweens, it flickers all the time and it is an annoying flicker. It happens only on Linux Flash Player

  • No matching record found 'G/L Accounts'

    Hello, When I try to copy an A/P Credit memo from an A/P invoice, the following error message appears: "No matching record found 'G/L Accounts' (OACT)[ODBC 2028]" This message appears only when I select some lines from the credit memo. If I choose al

  • How to reinstall Audition 3.0 in Windows 7?

    Hi, I have a multiple seat licence of Adobe Audition 3.0. When I installed this adobe audition 3.0 software on Windows 7 (32 bit), the wrong code was entered. Usually, when running Windows XP, I completely uninstall, reboot, reinstall, and we get the

  • Windows Live mail - Imported sent messages are incorrectly displaying destination address

    I imported Windows live mail messages from XP to 8.1... everything is ok except for the fact that the "Sent" messages are listed as sent to "the owners address" which is really the "source" address for all these old sent messages....Client needs thes