A SHERIFF has warned a Dunfermline teenager that he will lock him up if he does not complete a community payback order.

Callum Johnston hid in a bedroom when officers arrived to arrest him on a warrant and then lashed out to try to resist apprehension.

He also failed to attend court in January.

Depute fiscal Jade Doig told Dunfermline Sheriff Court that two officers had attended the address in June with an apprehension warrant for Johnston.

"His mum said she had not seen him," she said.

"They searched the house and saw the accused leaving a bedroom and told him he was under arrest.

"He tried to barge past officers out of the room."

One officer took his right wrist in an attempt to arrest him but this seems to have "enraged" him and he "tensed" up.

The police told him to calm down but Johnston continued to walk away and was struggling with the officers.

A violent struggle then ensued between officers and the accused for about 60 seconds, the court was told.

Again, when police tried to arrest him, he made an attempt to get up on his feet.

When Johnston was cautioned and charged at Dunfermline Police Station he responded: "F*** you".

One PC had a cut to his finger as a result of the struggle.

Johnston, 19, of William Street, previously admitted that on June 27, at Halkett Crescent, Dunfermline, he resisted, obstructed or hindered two police constables then in the execution of their duty and struggled violently, lashed out with his arms and legs and resisted the application of handcuffs, causing injury to one of the constables.

Also, on January 17, without reasonable excuse, he failed to appear at a diet at Dunfermline Sheriff Court having been given due notice.

Defence solicitor Stephen Morrison said: "He cannot remember why he did not attend (court) but he feels suitably embarrassed by that."

Mr Morrison explained that Johnston's previous convictions had all been at Justice of Peace level and that the warrant had been the result of a breach of a community payback order.

"He was taken by surprise by the arrival of the police," Mr Morrison said.

"He then hid in the room and has gone the completely wrong way about that.

"He has some sort of injury to his wrist and again had gone the completely wrong way about that because if he did not barge past, they may have dealt with him in a more sympathetic manner."

Sheriff James McDonald sentenced Johnston to 220 hours of unpaid work and 18 months of supervision.

He said: "If you do not complete this order I will lock you up."