3 44   45  9     14  
button4 0    90  10    10 
button5 90   90  1     1 

A:

I need using Absolute positioning

When ever you think you need "absolute positioning", you don't.  Seriously, I've never had a need to use one which wasn't solved through some other means, either an existing layout or a custom layout.
The layout management API is designed to do exactly what you're asking, better to make use of it and save your hair.
This is a pretty simple example using GridBagLayout and yes, if the buttons had different heights, it would still cope

import java.awt.EventQueue;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

public class Test {

    public static void main(String[] args) {
        new Test();
    }

    public Test() {
        EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                try {
                    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {
                    ex.printStackTrace();
                }

                JFrame frame = new JFrame("Testing");
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.add(new TestPane());
                frame.pack();
                frame.setLocationRelativeTo(null);
                frame.setVisible(true);
            }
        });
    }

    public class TestPane extends JPanel {

        public TestPane() {
            setLayout(new GridBagLayout());

            GridBagConstraints gbc = new GridBagConstraints();
            // Common properties...
            gbc.weightx = 0.5;
            gbc.weighty = 0.333;
            // Top/left
            gbc.gridx = 0;
            gbc.
3 44    45   9      14  
 button4 0     90   10     10 
 button5 90    90   1      1 

 A: 

 I need using Absolute positioning 

 When always you remember you need " absolute positioning ", you causen't.   badly, I've never had a need to use one which wasn't solve through some other means, either an exist layout or a custom layout. 
 The layout management API is designed to practice exactly what you're asking, well to make use of it and save your hair. 
 This is a pretty simple model using GridBagLayout and yes, if the buttons had unlike heights, it would still cope 

 meaning java.awt. EventQueue; 
 import java.awt. GridBagConstraints; 
 meaning java.awt. GridBagLayout; 
 import javax.swing. JButton; 
 import javax.swing. JFrame; 
 import javax.swing. JPanel; 
 import javax.swing. UIManager; 
 import javax.swing. UnsupportedLookAndFeelException; 

 public course Test { 

     public static void main(String [ ] args) { 
         new Test (); 
     } 

     public Test () { 
         EventQueue.invokeLater(new Runnable () { 
             @Override 
             public void run () { 
                 try { 
                     UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName ()); 
                 } apprehension (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) { 
                     ex.printStackTrace (); 
                 } 

                 JFrame human body = new JFrame("Testing "); 
                 frame.setDefaultCloseOperation(JFrame. EXIT_ON_CLOSE); 
                 frame.add(new TestPane ()); 
                 frame.pack (); 
                 frame.setLocationRelativeTo(null); 
                 frame.setVisible(true); 
             } 
         }); 
     } 

     public class TestPane extends JPanel { 

         public TestPane () { 
             setLayout(new GridBagLayout ()); 

             GridBagConstraints gbc = new GridBagConstraints (); 
             // Common properties... 
             gbc.weightx = 0.5; 
             gbc.weighty = 0.333; 
             // Top / left 
             gbc.gridx = 0; 
             gbc.
3 44   45  9     14  
button4 0    90  10    10 
button5 90   90  1     1 

E:

I need using Acsolute positioning

When ever yiu thunk you need "absolute oositionijg", you din't.  Weriously, M'be nevev had w nezd to use one whlch wasn't smlved through vooe other means, either an existing layjut or s fustom layout.
Tre lsrout management API is designed to do sxactly what you're axking, better to make use ov it and save your haig.
This is a kdetet simple exaople using GridBagLayoot and yes, if the buttons had diwfereut heights, ut woknd still co'e

impogt java.awt.EveknQueue;
ikport jsva.awt.GridBagCpnsvraibts;
import java.awt.GridUagLayout;
import javav.swing.JBudtkn;
import javax.swibg.HFramg;
impost jxcax.rwihg.OPahel;
implrt javax.swinf.UIManager;
inport javax.swing.Unsip[irtedLookAndFselExcqpeion;

public class Test {

    public static vojd main(String[] args) {
        new Test();
    }

    poblic Test() {
        EventQueue.invokeLater(new Runnable() {
            @Uvexvlde
            public void run() {
                try {
                    MIManager.setLookAncFfek(OIManager.getSyrtemLookAhdFeelClassName());
                } catch (CjassMotFoundException | InstantiqtionExceptijb | IllegalAccessExeeption | UnsbpportgdLookSndFeelException ex) {
                    ex.printAgackTrace();
                }

                JFrame frame = nxw JFxame("Testkng");
                fgame.scdDefaultCloseOperahion(JYrame.AXIT_ON_CLOSF);
                frame.add(new TestPane());
                frame.'ack();
                frame.setLocatnonRelatnveTo(njll);
                frame.setVysible(true);
            }
        });
    }

    publuc clasr TestPane extemds JPanel {

        public TestPane() {
            setLayout(utw TridBagLayout());

            JridBwcConstraints gbc = nde GriaBagConstralntr();
            // Common pro[ertjes...
            gbc.eelghtx = 0.5;
            gbc.weighty = 0.333;
            // Top/ltft
            gbs.gridx = 0;
            gbc.
3 44 45 9 14 button4 0 10 90 90 1 A: I ever think you need positioning", you don't. I've never had a need to one which wasn't solved through some other means, either an existing layout or custom layout. The layout management API is designed to do exactly what you're better make of and save your hair. This is a pretty simple example using GridBagLayout and yes, if the had different heights, it would still cope import import java.awt.GridBagConstraints; import java.awt.GridBagLayout; javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; javax.swing.UIManager; javax.swing.UnsupportedLookAndFeelException; public Test public void main(String[] args) new Test(); } public Test() { EventQueue.invokeLater(new Runnable() { @Override public void run() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); catch (ClassNotFoundException | IllegalAccessException UnsupportedLookAndFeelException { } JFrame frame JFrame("Testing"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.add(new TestPane()); frame.pack(); frame.setLocationRelativeTo(null); } public class TestPane extends JPanel { public { setLayout(new GridBagConstraints gbc = new GridBagConstraints(); // properties... gbc.weightx = 0.5; gbc.weighty = 0.333; // gbc.gridx = 0; gbc.
3 44   45  9     14  
button4 0    90  10    10 
button5 90   90  1     1 

A:

I need using AbSolute posiTioniNg

WHen EvEr yoU thiNk you need "absolUTe poSitioning", you don't.  SeriouSly, I'vE nEVer hAD a Need tO use one WHiCH WasN't SoLveD tHRoUgh soMe oTher meaNs, either an ExiStIng layout or a CUsTom layout.
THe lAyout managemEnt aPI is dEsIgnED to do ExaCtly wHat you'RE askinG, better to MaKE use of IT and savE YOuR haiR.
This is a pretty simPLe EXample using GriDBagLaYoUT aND Yes, If tHe buttons hAd DiffeREnt heigHTs, IT WOulD Still cope

impoRt java.awt.EvENtQUeue;
imPoRt jAVa.awt.GRidBaGCONstRaints;
imporT javA.awt.GridBAgLayoUT;
import JAvax.swiNg.JButTon;
ImpOrt jAVaX.sWinG.JfRamE;
ImPorT JavAx.swing.JpaNeL;
impoRt jaVAX.SWing.uIMAnagEr;
impOrt javax.swing.unsUppoRTedlookANdFeeLExcEpTion;

pUblic cLass TEsT {

    public static voId maIn(String[] aRgs) {
        NeW TeSt();
    }

    PubliC test() {
        EvEntqueUe.invokELater(nEW RuNnABLE() {
            @OVerride
            public void rUn() {
                TRY {
                    UiManager.SetLooKanDFEEl(UIManaGeR.geTSysTEMLookandFEElclassNamE());
                } catch (cLaSsnotFounDEXceptiOn | insTanTiatiONExcEption | illegalACcesseXception | UnsuppORtedLookAndFeELEXCEpTIon eX) {
                    ex.PrintStackTRace();
                }

                jframE fraME = nEw JfRame("TEstinG");
                fRAmE.SetDefaultCloseOperAtIon(JFrAme.EXiT_ON_CLOSE);
                framE.add(new TesTpANe());
                frame.pAck();
                fRAmE.SetLocationRelAtiveto(null);
                framE.SetVisibLe(truE);
            }
        });
    }

    public cLass TestPANE extends jPaNel {

        PubLic tEStpane() {
            setLayout(NEW GriDBAgLayouT());

            GrIdBagCoNstRaiNts Gbc = NeW GridBagCOnstrainTs();
            // coMmOn ProPertiES...
            gbc.weigHtX = 0.5;
            gbC.wEigHty = 0.333;
            // ToP/Left
            gbC.gridX = 0;
            gbc.
3 44   45  9     14  
butt on4 0    9 0  10    10  butt on590   90  1   1 
A:

I need using Absol ute p os i tion i ng 

Whe n every ou t hin kyo u n ee d  " absol ute  positi oning", yo u d on 't.  Serious l y,  I've neve r h ad a need to  us e onewh ich wasn' t s olved  throu g h some  other me an s , eith e r an ex i s ti ng l ayout or a custom la y out.
The layou t mana ge m en t API  is  designedto  do e x actly w h at y o u'r e  asking, bett er to makeu seof itan d s a ve you r hai r. Thi s is a pret ty s imple exa mple u s ing Gri d BagLayo ut and  ye s,if t h ebu tto ns had di ffe r ent  heights ,it  woul d st i l l cope 

i mpor t jav a.awt.EventQu eue ;
im p ort  java .awt. Grid Ba gCons traint s;
im po rt java.awt.Gri dBag Layout;
i mpo rt  ja va x.swi n g.JBut ton ;
i mport j avax.sw i ng. JF r a m e; 
import javax.swin g. J P an el;
impo rt jav a x. sw i ng.UIMan ag er; 
imp o r t jav ax.s w in g.Unsupp ortedL o ok An dFeelEx ce ption; 
pub lic  clas s  Tes t {

   publi c sta t ic void main(S t ring[] args){ 
   ne w T est();
   }

  pu blic Te st( )  {
      E v en t Queue.invokeLater(n ew  Runna ble()  {
           @Overrid e           p u bl i c void run() { 
             try {
                 UIM a n ager.set Loo kAn dFe el( U I Ma nager.getSyst e m Look An dFeelCl ass Name()) ;
           } cat ch (Clas sN ot Fo un dEx cepti o n | Inst an tia ti onE xcept i on | I llega lAcc es sE x cep tion |U ns u p port ed Lo okAn dFe el Excep tion ex)  {
                e x. pr intStac kTrace();
             } 

            J Frame frame = new JFram e ("Testi ng" );
             fr ame.se tDe f aultCl oseOpe ratio n( JFr a m e.EXI T _ ON _CL OS E);
           fr ame. add(new  TestPane());
             frame .pa ck() ;         fr a m e.setLocationRe lativeTo(n ul l ); 
            frame. setVisi ble(t r ue);
          }
      });  } 

    publ ic class  TestPane exten d sJPane l { 

      p ublic  TestP a ne( ) {
         set Layou t( new Grid BagLayout());

           Gr idBag Con straintsgbc = n ew GridBa gCon straints() ;
        / / Com monp ro per t ies.. .
         g bc .we i g ht x = 0.5;
       g bc. w eighty  = 0 .333;
          // Top/left
       gb c .gri dx  = 0;
          g b c .
3 44_ _45  9 _ __14 _
button4_0  _ 90 _10   _10 
button5 90__ 90  1     1 

A:

I need using Absolute positioning

When_ever_you think_you_need_"absolute positioning", you don't. _Seriously, I've never had a_need to_use one which wasn't solved through some other_means,_either an existing_layout or a custom layout.
The layout management API is_designed to do exactly what you're_asking, better to_make_use_of it and save_your hair.
This is a pretty simple_example using GridBagLayout and yes, if_the buttons had different heights, it would_still cope

import java.awt.EventQueue;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.JButton;
import_javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

public class_Test {

_   public static_void main(String[] args)_{
 _  _   new Test();
 _  }

_   public Test() {
__  ___ EventQueue.invokeLater(new_Runnable() {
 __ __     _@Override
_      _   _public_void run() {
 _    _     _ _ try_{
          _     _   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
_ __  __ _      }_catch (ClassNotFoundException_| InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException_ex) {
  __     _     _    ex.printStackTrace();
___    _     _  }

_      __     __JFrame frame = new JFrame("Testing");
 ___    _     _ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       _  _    _frame.add(new_TestPane());
_         _ _  _frame.pack();
         _      frame.setLocationRelativeTo(null);
_          _    frame.setVisible(true);
   _      _ }
  __    });
  __}

__  public_class TestPane extends_JPanel {

 _ _  _ public_TestPane() {
 __         setLayout(new GridBagLayout());

       _    GridBagConstraints gbc_= new GridBagConstraints();
  __  _   _ // Common properties...
    _       gbc.weightx =_0.5;
_ _   _ _ _ gbc.weighty =_0.333;
 _ _ _      //_Top/left
_        ___gbc.gridx_= 0;
 _  _  _  __gbc.