Question : Java, drag and drop feature with customized icon

Hi: I am going to make a Java application as GUI application. My target is make a sequence diagram. I am going to use Netbean. I want to implement a drag and drop feature, why the user could select a particular icon from palette and draw the selected icon in the panel. The feature is similar to Netbean its own design view. In the design view, one could select button, textfield. Then move it and resize it. I need similar feature in my application. Are there some article I could read to implement above feature?

Answer : Java, drag and drop feature with customized icon

That is a small tweak.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
Sub BKMCreatePerSection2()
    Dim rng As Range
    Dim Sec As Section
    Dim i As Integer
    Dim Suffix() As String
    Dim rngBookmark As Range
    
    Suffix = Split("DE,EN,ES,FR,IT", ",")
 
    For Each Sec In ActiveDocument.Sections
        Set rng = Sec.Range
        With rng.Find
            .Format = True
            .Style = ActiveDocument.Styles(wdStyleHeading2)
            Set rngBookmark = Sec.Range
            rngBookmark.MoveEnd wdCharacter, -1
            If .Execute Then
                ActiveDocument.Bookmarks.Add "Section_Bookmark_" & Suffix(i), rngBookmark
                i = i + 1
            End If
        End With
    Next Sec
        
End Sub
Random Solutions  
 
programming4us programming4us