Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8020625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:44:23+00:00 2026-06-04T21:44:23+00:00

Is there any framework or tool to develop a fancy Java application – an

  • 0

Is there any framework or tool to develop a fancy Java application – an user interface with a nice drag & drop?

For example like this one from Mac OS:
http://appzapper.com/

enter image description here

It does not need to have a Mac OS look and feel.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T21:44:27+00:00Added an answer on June 4, 2026 at 9:44 pm

    Enjoy the screenshot by just enjoying it 🙂

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class DragHereIcon implements Icon {
      private int size = 80;
      private float a = 4f;
      private float b = 8f;
      private int r = 16;
      private int f = size/4;
      private Font font = new Font("Monospace", Font.PLAIN, size);
      private FontRenderContext frc = new FontRenderContext(null, true, true);
      private Shape s = new TextLayout("\u21E9", font, frc).getOutline(null);
      private Color linec = Color.GRAY;
      @Override public void paintIcon(Component c, Graphics g, int x, int y) {
        Graphics2D g2 = (Graphics2D)g.create();
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
        g2.translate(x, y);
    
        g2.setStroke(new BasicStroke(a));
        g2.setPaint(linec);
        g2.draw(new RoundRectangle2D.Float(a,a,size-2*a-1,size-2*a-1,r,r));
    
        g2.setStroke(new BasicStroke(b));
        g2.setColor(UIManager.getColor("Panel.background"));
        g2.drawLine(1*f,0*f,1*f,4*f);
        g2.drawLine(2*f,0*f,2*f,4*f);
        g2.drawLine(3*f,0*f,3*f,4*f);
        g2.drawLine(0*f,1*f,4*f,1*f);
        g2.drawLine(0*f,2*f,4*f,2*f);
        g2.drawLine(0*f,3*f,4*f,3*f);
    
        g2.setPaint(linec);
        Rectangle2D b = s.getBounds();
        Point2D.Double p = new Point2D.Double(
            b.getX() + b.getWidth()/2d, b.getY() + b.getHeight()/2d);
        AffineTransform toCenterAT = AffineTransform.getTranslateInstance(
            size/2d - p.getX(), size/2d - p.getY());
        g2.fill(toCenterAT.createTransformedShape(s));
        g2.translate(-x,-y);
        g2.dispose();
      }
      @Override public int getIconWidth()  {
        return size;
      }
      @Override public int getIconHeight() {
        return size;
      }
      public static JComponent makeUI() {
        JLabel label = new JLabel(new DragHereIcon());
        label.setText("<html>Drag <b>Stuff</b> Here");
        label.setVerticalTextPosition(SwingConstants.BOTTOM);
        label.setHorizontalTextPosition(SwingConstants.CENTER);
        label.setForeground(Color.GRAY);
        label.setFont(new Font("Monospace", Font.PLAIN, 24));
        JPanel p = new JPanel();
        p.add(label);
        p.setBorder(BorderFactory.createEmptyBorder(8,8,8,8));
        return p;
      }
      public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
          @Override public void run() {
            createAndShowGUI();
          }
        });
      }
      public static void createAndShowGUI() {
        JFrame f = new JFrame();
        f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        f.getContentPane().add(DragHereIcon.makeUI());
        f.setSize(320, 200);
        f.setLocationRelativeTo(null);
        f.setVisible(true);
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there any ORM tool/framework for mongoDB with java and also support maven, so
Is there any open source tool/framework that is written in Java that can be
Is there any tool to generate CRUD admin site from Entity Framework Model? Something
Is there any tool in CherryPy that provides equivalent/similar functionality as Django's Message Framework?
Is there any framework or tool to generate web services (WCF) access to all
Is there any tool where I can draw Entity Framework models and it generates
I want to create chat application in iPhone. Are there any framework(s) which support
is there any framework or tool that auto generate ORM (Object-Relational Mapping) layer for
Is there any framework I can Instal on windows azure and get a service
Is there any upnp framework for CF .NET? There is mono.upnp source but it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.